Create AI videos in your agent.

MiniMax H3 video from $0.15 per 5-second clip at 720p Turbo.

Codex · Claude Code · OpenClaw · Muse

Paste this into your agent

Set up AI Video Maker from https://aivideomaker.ai/skill.
Connect my account using browser approval.
Verify setup without spending credits.

Free install · 50 credits with your first API key · No API subscription

Setup details

Agent instructions (Markdown)

From API key to your first video

Install, connect, then ask your agent.

1. Install the skill

Run in your project folder (macOS / Linux, Node.js 20+).

Codex · v2.1.0
curl -fsSL https://aivideomaker.ai/skills/install-2.1.0.mjs | node --input-type=module - codex

2. Connect your account

Ask your agent to run the connection command below. Open its approval link, sign in, and confirm the matching code.

Connect in your browser — no charge
AIVIDEO_AGENT_PLATFORM=codex node ".agents/skills/ai-video-maker/scripts/connect.mjs"

The helper waits for approval, saves the connection privately, and verifies your account and a sample quote automatically. No credits spent.

3. Ask your agent

Paste this prompt into your agent. The skill checks the price, generates the video, and returns the result.

Paste into your agent
Use AI Video Maker to create a 5-second 720p Turbo video of a candle on a wooden table. Check the price first. You may spend up to 15 API credits. Return the video link.

Advanced: manual API commands

Connect and check the price

The helper waits for approval, saves the connection privately, and verifies your account and a sample quote automatically. No credits spent.

Check setup and quote — no charge
AIVIDEO_AGENT_PLATFORM=codex node ".agents/skills/ai-video-maker/scripts/run-workflow.mjs" --action doctor && \
AIVIDEO_AGENT_PLATFORM=codex node ".agents/skills/ai-video-maker/scripts/run-workflow.mjs" --action quote --model minimax --payload '{"content":"A cinematic candle on a wooden table","duration":5,"resolution":"720p","tier":"turbo","aspectRatio":"16:9"}'

Generate your first video

This sample uses 15 credits (5 seconds, 720p Turbo). Run only after checking the quote and balance. Reuse the idempotency key for retries; change it for each new video.

Generate — maximum 15 credits
AIVIDEO_AGENT_PLATFORM=codex node ".agents/skills/ai-video-maker/scripts/run-workflow.mjs" --model minimax --payload '{"content":"A cinematic candle on a wooden table","duration":5,"resolution":"720p","tier":"turbo","aspectRatio":"16:9"}' \
  --maxCredits 15 --idempotencyKey my-first-video-001

The skill waits for completion and returns the task ID and video URL. Save the video within 24 hours. If polling times out, resume with the returned task ID; do not create another task.

See it in action

MiniMax H3 · 5-second video with native audio

API pricing · effective September 5, 2026

$0.03 per generated second at 720p Turbo

720p Turbo uses 3 API credits per second. Your first API key includes 50 credits—enough for three 5-second clips, with 5 credits left.

5-second clip

$0.15

15 credits · 720p Turbo

10-second clip

$0.30

30 credits · 720p Turbo

100 × 5-second clips

$15.00

1,500 credits · 720p Turbo

One API credit has a $0.01 list price. MiniMax H3 costs $0.03–$0.05 per generated second depending on resolution and tier. Quotes show the exact charge before submission.

Add API credits without a subscription

Buy a one-time credit pack for API generation. No recurring API or website subscription is required.

STARTER CREDIT PACK

$29

one-time

  • 2,900 API credits
  • 193 5-second 720p Turbo videos
  • No subscription required for API use

VALUE CREDIT PACK

Most popular

$59

one-time

  • 5,900 API credits
  • 393 5-second 720p Turbo videos
  • No subscription required for API use

MAX CREDIT PACK

$129

one-time

  • 12,900 API credits
  • 860 5-second 720p Turbo videos
  • No subscription required for API use

API credits also work with supported advanced tools. Some long-duration HD features in the website app still require an active website subscription.

Frequently asked questions

How much does a video cost?

MiniMax H3 uses 3–5 API credits per second, depending on resolution and mode. Each credit has a $0.01 list price. Check the quote before generating to see the exact cost.

Do I need a subscription?

No. API generation uses API credits, which you can buy without a subscription. A website subscription does not include unlimited API use.

Will retrying charge me twice?

When you retry the same request with the same Idempotency-Key value, the API returns the existing task instead of charging again. The skill handles this for you.

What if generation fails or takes too long?

Credits are refunded when the provider reports a failed generation. If your wait times out, the video may still be processing: check the existing task instead of submitting it again.

More details: Read the API docs or contact support from your account.