商品图 → 9:16 广告
检查商品图,需要时先扩成竖版,用两三种运镜出草稿,再把你选中的用 Fast 重新生成。
可以这样说“用这张商品图做一条 9:16 广告,先报价。”
一个技能包,教会你的智能体三个 Pershot 工作流:商品图变 9:16 广告、口播种草视频、表格批量出片。每个任务都先报价,等你确认后才花积分。
连接你自己的 AI 智能体对所有账户开放,不需要 Key。开发者 API Key 按申请开通,供你用代码自动处理自己的业务。
每个工作流都先用 Mini 在 480p 低成本出草稿,只把你选中的那一版交给 Fast 以 720p 重新生成。
检查商品图,需要时先扩成竖版,用两三种运镜出草稿,再把你选中的用 Fast 重新生成。
可以这样说“用这张商品图做一条 9:16 广告,先报价。”
一个虚构人物(绝不用真人)拿着产品,用自己的声音说出你的台词,拍成手机视频的样子。
可以这样说“给我们的精华做一条 10 秒口播,台词:吸收很快。”
逐行检查,给整张表报价,带总额上限按批次提交,再按 SKU 导出结果。
可以这样说“这是 products.csv,每行一条 5 秒视频,先出草稿。”
每个工作流都一样:先报价,再确认,最后生成。技能包会列出实际要跑的任务花多少积分、折合多少美元,等你同意;每个任务都带价格上限和幂等键,重试不会重复扣费。
同一个 zip 到处都能用:里面是一个技能文件夹,SKILL.md 在文件夹根目录。
下载 zip,解压到个人技能目录;想和团队共用,就解压到仓库的 .claude/skills。
mkdir -p ~/.claude/skills
unzip ~/Downloads/pershot-video.zip -d ~/.claude/skills/连接 MCP 服务,然后在 Claude Code 里输入 /mcp 登录。花的是你的创作余额。
claude mcp add --transport http pershot https://mcp.pershot.app/mcp直接说你想要什么视频,Claude 会自动调用技能;也可以按名字调用。
/pershot-video 用 ./product.png 做一条 9:16 广告,先报价在设置的“功能”里打开“代码执行和文件创建”。
打开“自定义”里的“技能”,点 +,选择创建技能、上传技能,选中这个 zip。
把 MCP 服务添加为自定义连接器。用同一个账户登录 Claude Code 时,上传的技能也会同步过去。
把 zip 解压到 ~/.agents/skills,或仓库里的 .agents/skills。
mkdir -p ~/.agents/skills
unzip ~/Downloads/pershot-video.zip -d ~/.agents/skills/连接 MCP 服务,再用 codex mcp login 登录。花的是你的创作余额。
codex mcp add pershot --url https://mcp.pershot.app/mcp
codex mcp login pershot如果技能没出现,重启 Codex;输入 $ 加技能名即可调用。更习惯 AGENTS.md?zip 里附了一份,可以直接合并进你的文件。
$pershot-video 用 product.png 做一条 9:16 广告,先报价都是能读、能改的 Markdown 文件。你品牌自己的提示词规范,可以直接写进 SKILL.md。
pershot-video/SKILL.mdpershot-video/AGENTS.mdpershot-video/LICENSEpershot-video/agents/openai.yamlpershot-video/reference/api.mdpershot-video/reference/mcp.mdpershot-video/workflows/product-to-ad.mdpershot-video/workflows/spreadsheet-batch.mdpershot-video/workflows/ugc-talking-ad.md---
name: pershot-video
description: Make short videos with Pershot (Seedance 2.0 Mini and Fast, Qwen-Image) on the user's own account, through its MCP tools or /v1 API. Use when the user wants a 9:16 ad from a product image, a UGC-style talking ad, or a batch of videos from a spreadsheet. Always quotes the price and waits for the user's yes before spending credits.
license: MIT
---
# Pershot video workflows
You help the user make short videos with Pershot: Seedance 2.0 Mini for cheap drafts, Seedance 2.0 Fast for finals, and Qwen-Image for stills and first frames. You work on the user's own Pershot account, as the user's own AI agent, and spend their creative balance like the studio does. Credits are the user's money: 1 credit = US$0.01.
## Rules that always apply
1. **Quote, confirm, generate.** Never call a spending tool or endpoint until you have shown the user the quoted credits and dollars for exactly what you will run, and they said yes. A yes covers only what you showed.
2. **Cap every job.** Pass the `quote_id` you showed (valid 10 minutes) or a `max_credits` equal to the confirmed amount. Never raise a cap without asking.
3. **One idempotency key per job.** Make a fresh key for each new job. On a retry after a timeout or network error, send the same key again: it returns the same job and never charges twice.
4. **Draft cheap, finish once.** Draft variants on Mini at 480p; run the one the user picks on Fast at 720p.
5. **Sign in as the user's agent, and keep it secret.** Over MCP the client signs in for you. With a shell, sign in by device login: the user confirms a short code in their browser and you receive a sign-in of your own on their account, which spends their creative balance like the studio ([reference/api.md](reference/api.md), "Sign in: device login"). Keep that sign-in in the `API_KEY` environment variable. Never write a sign-in, a connection code or a key into a prompt, a file, a commit or the chat. Developer API keys (`sk_…`) are by application; never ask the user for one, and use one only if the user already put it in `API_KEY`.
6. **Stop when money runs out.** On `insufficient_credits`, stop. The user has two balances that never cover each other, and `details.account` names the short one: `creative` (the studio, MCP, connection codes and device login) or `api` (a developer API key, by application). Ask the user to top up that balance at https://pershot.app/app/billing, or to raise the cap when `details.limit` is not `balance`. Never switch credentials, models or quality silently to fit a budget.
7. **Respect people and brands.** Faces of real people, celebrities and other companies' brands need the user's permission. If the quote's pre-check says `warn` or `block`, tell the user before anything runs. A refused job (`content_rejected`) is not charged.
8. **Hand over results promptly.** Result links are signed and expire after 24 hours. Give the links and tell the user to download what they keep.
## Connect
- **MCP (preferred):** the server at https://mcp.pershot.app/mcp. Tools: `list_models`, `get_model`, `get_pricing`, `quote`, `plan_auto`, `plan_image_auto`, `use_preset`, `create_upload`, `generate_video`, `generate_image`, `get_job`, `wait_for_job`, `cancel_job`, `get_balance`. Only `generate_video` and `generate_image` spend credits. Setup and details: [reference/mcp.md](reference/mcp.md).
- **HTTP API:** base https://api.pershot.app/v1, header `Authorization: Bearer $API_KEY` with the device-login sign-in, which spends the user's creative balance. The credential decides which balance pays: a developer API key (`sk_…`, by application) would spend the separate developer API balance instead. Endpoints and examples: [reference/api.md](reference/api.md). OpenAPI: https://pershot.app/api/v1/openapi.json
## The loop, every time
1. **Plan** the job with the user: model, resolution, duration, aspect ratio, how many variants.
2. **Quote** it: MCP `quote` (pass the prompt too, for the content pre-check) or `POST /v1/quotes`.
3. **Show** "N credits (≈ $X)" per job and the total, plus any pre-check note. Ask for a yes.
4. **Generate** with the `quote_id` (or `max_credits`) and a new idempotency key.
5. **Wait**: MCP `wait_for_job` (up to 60 s per call, repeat) or poll `GET /v1/jobs/{id}` every few seconds. `unknown` means the outcome is being checked with the model: keep waiting, do not resubmit.
6. **Report** status, credits charged and the result links. A job that makes no video (it failed, or the model refused it) or whose result a safety check blocked has its credits refunded automatically. A video that is made is charged, even if the user does not like it: offer another take, quoted and confirmed like the first. If a file is broken, the user reports it in the studio, and it is refunded after a check.
## Workflows
- Product image → 9:16 ad: [workflows/product-to-ad.md](workflows/product-to-ad.md)
- UGC talking ad: [workflows/ugc-talking-ad.md](workflows/ugc-talking-ad.md)
- Spreadsheet batch: [workflows/spreadsheet-batch.md](workflows/spreadsheet-batch.md)
## Writing prompts
- Three layers, in this order: subject and action; camera (one move, with speed, height and lens); light and style.
- More than one beat: a timeline, "0–2 s: … 2–5 s: …", covering the whole duration.
- Images: refer to them as @image1, @image2 and say what each is for ("keep the label from @image1").
- End with one short "Avoid:" line. Put spoken lines in quotes and say who speaks.
- Full guide: https://pershot.app/guides/seedance-prompting
## Limits to plan around
- Video: 4 to 15 whole seconds; 480p or 720p; 16:9, 9:16 or 1:1; audio on or off at the same price.
- Images: 1K or 2K; edit models need `image_url`; generate models reject it.
- Up to 9 reference images (API); images up to 10 MB (JPEG, PNG, WebP).
- Seedance first frames and reference images: 300 to 6000 px on each side, width ÷ height 0.4 to 2.5. An upload outside that is refused before anything is charged; resize or extend it first.
- Every limit per model, who checks it and what happens past it: the table at the end of [reference/api.md](reference/api.md), or `limits` in `GET https://api.pershot.app/v1/models`.
- 60 requests a minute per key; a few jobs run at once per account, the rest wait in the queue.
不包含:API Key、令牌、回调密钥或任何账户信息。技能包直接用你的 MCP 连接,或者用设备码登录拿到的登录凭据,存在环境变量 API_KEY 里。
不会。每个任务都先报价,列出积分和美元,等你确认。确认的金额会作为这个任务的上限,花费不会超过你同意的数。
草稿用 Seedance 2.0 Mini(480p),成片用 Seedance 2.0 Fast(720p);需要时用 Image Mini 或 Image Fast 扩图或整理商品图。
可以。都是普通的 Markdown 文件,工作流可以改,可以加你自己的提示词规范,不需要的部分直接删掉。
能。有命令行时,它用设备码登录你自己的账户,直接调用 /v1 接口,花你的创作余额。开发者 API Key 需申请开通,花的是单独的开发者 API 余额。每个请求都写在 reference/api.md 里。
放在你的 MCP 连接里,或者你电脑的环境变量里,绝不写进技能文件。技能包也要求智能体不打印、不保存它。不需要 API Key。