Tools
Ai Video Maker
AI video generation skill for Claude Code, Codex, Cursor and OpenClaw. MiniMax H3, Seedance 2.0, Wan 3.0 and HappyHorse text-to-video and image-to-video, with a quote before every spend and a credit cap.
README
# AI Video Maker — agent skill
**The video skill your agent can afford: quote first, spend-capped, $0.15 per clip.**
Let Claude Code, Codex, Cursor, or OpenClaw generate MiniMax H3 videos. The agent checks the exact price before it spends, stays under a credit cap you approve, and never double-charges on a retry.

<sub>Generated with this skill: MiniMax H3, 720p Turbo, 5 s, 15 credits ($0.15).</sub>
```sh
npx skills add panpandas/ai-video-maker-plugin
```
Free to install · Node.js 22.20+ for `npx skills` · 5-second 720p clip = 15 credits ($0.15) · 50 free credits on your first API key · no subscription
---
## Install
The one-liner above detects your agents and asks where to install. Without an interactive terminal (for example, when an agent runs the command), name the host and add `-y`, as below. To target one host directly:
| Host | Install | Skill lands in |
| --- | --- | --- |
| **Claude Code** | `npx skills add panpandas/ai-video-maker-plugin -a claude-code -y` | `.claude/skills/ai-video-maker` |
| **Codex** | `npx skills add panpandas/ai-video-maker-plugin -a codex -y` | `.agents/skills/ai-video-maker` |
| **Cursor** | `npx skills add panpandas/ai-video-maker-plugin -a cursor -y` | `.agents/skills/ai-video-maker` |
| **OpenClaw** | `npx skills add panpandas/ai-video-maker-plugin -a openclaw -g -y` | `~/.openclaw/skills/ai-video-maker` |
For Claude Code, Codex and Cursor, add `-g` to install for your user instead of the current project. OpenClaw loads skills from `~/.openclaw/skills`, so its row already uses `-g`.
**Official installer (alternative).** For Codex, Claude Code, and OpenClaw, AI Video Maker also publishes a versioned installer:
```sh
curl -fsSL https://aivideomaker.ai/skills/install-2.1.4.mjs | node --input-type=module - claude # or: codex | openclaw
```
**Cursor plugin.** This repo is also a Cursor plugin (`.cursor-plugin/plugin.json`). For local use, copy the repo into `~/.cursor/plugins/local/ai-video-maker/`, then run **Developer: Reload Window** and confirm the skill appears under **Customize**.
**ClawHub.** The skill is also listed on [ClawHub](https://clawhub.ai/husu/skills/ai-video-maker).
You may need to start a new agent session before it picks up a newly installed skill.
## Connect your account (no API key in chat)
Paste this into your agent:
```text
Set up AI Video Maker from https://aivideomaker.ai/skill.
Connect my account using browser approval.
Verify setup without spending credits.
```
The agent runs `scripts/connect.mjs`, which prints a **Connect AI Video Maker** link and a comparison code. Open the link, sign in, and approve the matching code. The helper then saves the credential privately outside your project and verifies your account and a sample quote. **No credits are spent.**
- You never paste an API key into chat, code, URLs, or logs.
- No browser available? Run `node <skill-dir>/scripts/connect.mjs --manual` in your own terminal for hidden key entry (keys are created at [aivideomaker.ai › API keys](https://aivideomaker.ai/app/settings/account/api-keys)).
- `AIVIDEO_API_KEY` in the agent's secret environment also works and takes precedence.
- If the agent's command stops before you approve, ask it to run connect again: it resumes the same link and code. Agents that cannot keep a process running can use `connect.mjs --start` to print the link and exit, then run connect again without `--start` after you approve to finish saving the key.
- If the agent cannot write its private folder `~/.aivideo-maker` (for example, inside a sandbox), connect stops before showing a link and says what to allow, so no approval is wasted.
## Make your first video
```text
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.
```
More prompts to try (adapted from [`references/examples.md`](skills/ai-video-maker/references/examples.md)):
```text
Quote a 5-second 16:9 MiniMax H3 video of a cinematic sunset over a futuristic city skyline. Don't generate until I approve.
```
```text
Animate this product photo into a 5-second 720p clip: <image URL>. Show me the quote first and cap it at 15 credits.
```
```text
My last generation timed out. Resume task <task_id> and give me the video link. Don't create a new task.
```
The agent returns the task ID, credits charged, and a playable URL. **Output files are kept for 24 hours**, so download them promptly.
## Why this skill: spend guardrails
Letting an agent call a paid API is risky: it can loop, retry, or pick the expensive setting. This skill treats every generation as a billable action:
- **Quote before spend.** `doctor` (setup + balance) and `quote` are non-billable. The agent shows credits and USD before submitting.
- **Hard spending cap.** Generation runs with `--maxCredits <approved limit>`, which is enforced locally and by the API (`X-Max-Credits`). If the quote is higher than the cap, the request is rejected before you're billed.
- **No double charges.** Every submit carries an idempotency key. Retrying the same request returns the original task instead of charging again.
- **Resumable, not repeated.** A polling timeout exits with the existing task ID, and the agent resumes that task rather than creating a new paid one.
- **Refunds on failure.** Credits are refunded when the provider reports a failed generation.
- **Key-level controls.** Per-key daily credit, request-rate, and low-balance limits.
- **Setup is not consent.** Installing or connecting the skill never authorizes a generation.
## Pricing
One API credit = $0.01 list price. Installing the skill is free.
| MiniMax H3 mode | Credits / sec | USD / sec | 5-second clip |
| --- | ---: | ---: | ---: |
| 720p Turbo (default) | 3 | $0.03 | $0.15 |
| 720p Base | 4 | $0.04 | $0.20 |
| 1080p Turbo | 4 | $0.04 | $0.20 |
| 1080p Base | 5 | $0.05 | $0.25 |
- Your first API key gets **50 introductory credits**, enough for three 5-second 720p Turbo clips.
- Credit packs are one-time purchases with **no subscription**. For example, $129 buys 12,900 credits (860 five-second 720p Turbo clips). See [current packs](https://aivideomaker.ai/skill).
- The server quote is authoritative for every request.
## Models
| Model | Identifier | Inputs |
| --- | --- | --- |
| MiniMax H3 (default) | `minimax` | Text, image, start/end frames, references (image, video, audio) |
| Seedance 2.0 | `seedance20` | Text, image, video references; optional audio references |
| Wan 3.0 | `wan30` | Text or image |
| HappyHorse 1.1 | `happyhorse` | Text, image, multiple image references |
The pricing table above covers MiniMax H3. For other models, use `quote` to get the exact charge. See [`references/api-reference.md`](skills/ai-video-maker/references/api-reference.md) for parameters.
## Under the hood
```sh
node "$SKILL_ROOT/scripts/run-workflow.mjs" --action doctor # setup + balance, free
node "$SKILL_ROOT/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"}' # free
node "$SKILL_ROOT/scripts/run-workflow.mjs" --model minimax --maxCredits 15 \
--payload '{"content":"A cinematic candle on a wooden table","duration":5,"resolution":"720p","tier":"turbo","aspectRatio":"16:9"}' # billable, capped
node "$SKILL_ROOT/scripts/run-workflow.mjs" --action getStatus --taskId <task_id> # resume
```
Add `--platform <codex|claude|openclaw>` to name your agent; it replaces the `AIVIDEO_AGENT_PLATFORM=...` prefix, which does not work in PowerShell or cmd.
Exit codes: `0` success, `1` validation/API/job failure, `2` polling timeout with a resumable task ID.
## Provenance and testing
The files in `skills/ai-video-maker/` are copied byte-for-byte from the official [v2.1.4 archive](https://aivideomaker.ai/skills/ai-video-maker-2.1.4.tgz) and verified against its [published SHA-256](https://aivideomaker.ai/skills/ai-video-maker-2.1.4.tgz.sha256). File hashes are in [`provenance.json`](provenance.json). Validation scope, results, and checks you can reproduce yourself are in [TESTING.md](TESTING.md).
## Links
- [Product page and pricing](https://aivideomaker.ai/skill)
- [Agent setup instructions (skill.md)](https://aivideomaker.ai/skill.md)
- [API quickstart](https://aivideomaker.ai/docs/api/quickstart)
- [ClawHub listing](https://clawhub.ai/husu/skills/ai-video-maker)
- Support: support@aivideomaker.ai
## License
[MIT-0](LICENSE)
tools
Comments
Sign in to leave a comment