miniapi-video Skill
通过 MiniAPI 从 Claude Code、Codex 或任意 agent 生成 AI 视频、图片和音频,一个预付费密钥通用于所有模型。支持 Seedance 2.5、Seedance 2.0、Seedance 2.0 Mini、Kling 3.0、Happy Horse、Wan 3.0 Prime 等。文生视频、图生视频、参考图生视频、文生图、文字转语音。始终先报价(免费),花钱前先询问。当用户要求做视频、让图片动起来、生成片段、做图、配音,或想要更便宜的 Seedance、Wan 或 Kling API 时使用。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
MiniAPI video, image and audio
MiniAPI is one prepaid API key for video, image and audio models at https://api.minicut.ai.
A model marked coming soon in models has a price but takes no jobs yet; pick another.
Prices are per second or per image, set before the job runs. A job that fails is not charged.
Credits never expire.
Helper script (Node 18+, nothing to install): node scripts/miniapi.mjs , run from this skill's folder.
Step 0. Key
- If
MINIAPI_KEYis not set, tell the user in one line: create a key at
https://api.minicut.ai/console/keys?utm_source=skills-sh&utm_medium=skill&utm_campaign=miniapi-video ,
add funds ($10 minimum), then export MINIAPI_KEY=mapi_live_.... Wait for them.
- Never print the key. Never write it into a file in the project.
Step 1. Pick the model
Run node scripts/miniapi.mjs models for every id with its starting price.
Run node scripts/miniapi.mjs model for that model's parameters, limits and prices.
Use only parameters listed on that model's page. A parameter the model does not take is refused with 422.
Defaults when the user does not name one:
| Job | Model id | Why |
|---|---|---|
| Video, best quality | seedance-2.5 | 4 to 30 s, up to 1080p, references, sound on by default |
| Video, cheap draft | seedance-2.0-mini | from $0.054 / s |
| Image | read models and pick the image model the user names, else the cheapest image model | |
Step 2. Quote, then ask
- Build the JSON body from the model page.
- Run
node scripts/miniapi.mjs quote ''. A quote is free and runs nothing. - Show the user the PRICE line and ask for a yes. Never submit without it.
- One yes covers one job. A retry or a second clip is a new quote and a new yes.
Step 3. Run
node scripts/miniapi.mjs run '' --yes --out
It quotes again, submits, waits, downloads the file into and prints SAVED and CHARGED .
Show the user the saved path. For a picture, open it. For a clip, give the path.
Errors
| Exit | Meaning | Do |
|---|---|---|
| 3 | no key | Step 0 |
| 4 | balance too low | tell the user the price and the add-funds link it printed |
| 5 | MiniAPI refused the body | read the message, fix the field from the model page, quote again |
| 7 | the job failed | not charged. Say so, and offer one changed retry with a new quote |
Example
User: "make a 5 second clip of a red fox running through snow at dawn, 720p"
node scripts/miniapi.mjs quote seedance-2.5 '{"prompt":"a red fox runs through snow at dawn","resolution":"720p","duration":5}'
# PRICE 1.750000 USD ... Quote is free. Nothing ran.
# (ask the user, wait for yes)
node scripts/miniapi.mjs run seedance-2.5 '{"prompt":"a red fox runs through snow at dawn","resolution":"720p","duration":5}' --yes --out clips
Docs: https://api.minicut.ai/docs . Every model as Markdown: https://api.minicut.ai/llms.txt