Una sola skill insegna al tuo agente tre flussi di lavoro di Pershot: da un'immagine prodotto a un annuncio 9:16, un annuncio parlato in stile UGC e un lotto da un foglio di calcolo. Fa un preventivo per ogni lavoro e aspetta il tuo sì prima di spendere anche un solo credito.
Collegare il tuo agente IA è aperto a tutti gli account e non serve una chiave. Le chiavi API sviluppatori, per automatizzare il tuo lavoro dal codice, sono su richiesta.
0103
Tre flussi di lavorouna regola
Ogni flusso prepara bozze economiche con Mini a 480p e genera con Fast a 720p solo la versione che scegli.
01
Immagine prodotto → annuncio 9:16
Controlla la foto, propone di estenderla a un formato verticale, prepara in bozza due o tre movimenti di camera, poi crea con Fast una nuova ripresa di quello che scegli.
Prova a chiedere“Fai un annuncio 9:16 da questa foto prodotto. Prima dimmi il prezzo.”
02
Annuncio parlato UGC
Una persona generica, mai una reale, tiene in mano il prodotto e dice la tua battuta con la sua voce, ripresa come un video fatto col telefono.
Prova a chiedere“Un annuncio parlato di 10 secondi per il nostro siero. La battuta: si assorbe in fretta.”
03
Lotto da foglio di calcolo
Controlla ogni riga, fa il preventivo dell'intero foglio, lo invia come lotto con un tetto totale ed esporta i risultati per SKU.
Prova a chiedere“Ecco products.csv. Una clip da 5 secondi per riga, prima le bozze.”
In ogni flusso: preventivo, conferma, generazione. La skill mostra crediti e dollari esattamente per ciò che verrà eseguito, aspetta il tuo sì e invia ogni lavoro con un tetto di prezzo e una chiave di idempotenza, così un nuovo tentativo non addebita mai due volte.
0203
Installalain un minuto
Lo stesso zip funziona ovunque: contiene una cartella della skill con SKILL.md nella radice.
01
Scarica lo zip ed estrailo nella tua cartella personale delle skill, oppure in .claude/skills in un repository per condividerla con il tuo team.
Se la skill non compare, riavvia Codex, poi digita $ e il nome della skill per richiamarla. Preferisci AGENTS.md? Lo zip ne include uno da incollare nel tuo.
Codex
$pershot-video fai un annuncio 9:16 da product.png. Prima dimmi il prezzo
Markdown semplice che puoi leggere e modificare. Le regole di prompt del tuo marchio possono andare direttamente in SKILL.md.
pershot-video/SKILL.md
La skill: regole, il ciclo preventivo-conferma-generazione e le basi dei prompt
pershot-video/AGENTS.md
Le stesse regole in un unico file di istruzioni, per Codex
pershot-video/LICENSE
Testo della licenza MIT
pershot-video/agents/openai.yaml
Nome visualizzato in Codex e il server MCP che usa
pershot-video/reference/api.md
Ogni chiamata /v1 che fanno i flussi, con esempi
pershot-video/reference/mcp.md
Gli strumenti MCP, quali spendono crediti e come collegarsi
pershot-video/workflows/product-to-ad.md
Immagine prodotto → annuncio 9:16
pershot-video/workflows/spreadsheet-batch.md
Lotto da foglio di calcolo
pershot-video/workflows/ugc-talking-ad.md
Annuncio parlato UGC
Anteprima
---
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.
Non ci sono: chiavi API, token, segreti dei webhook o dati dell'account. La skill usa la tua connessione MCP, oppure l'accesso ottenuto tramite dispositivo e conservato nella variabile d'ambiente API_KEY.
Domandesulla skill
La skill può spendere crediti da sola?
No. Fa un preventivo per ogni lavoro, ti mostra crediti e dollari e aspetta il tuo sì. Poi ogni lavoro porta quell'importo come tetto, così non può mai costare più di quanto hai approvato.
Quali modelli usa?
Seedance 2.0 Mini per le bozze a 480p e Seedance 2.0 Fast per le versioni finali a 720p, più Image Mini o Image Fast per estendere o ripulire una foto prodotto.
Posso modificarla?
Sì. È Markdown semplice. Cambia i flussi, aggiungi le tue regole di prompt o elimina quello che non ti serve.
Funziona senza MCP?
Sì. Con una shell chiama direttamente l'API /v1, con l'accesso tramite dispositivo al tuo account, e usa il tuo saldo creativo. Le chiavi API sviluppatori sono su richiesta e spendono il saldo API sviluppatori, che è separato. reference/api.md mostra ogni richiesta.
Dove va il mio accesso?
Nella tua connessione MCP o in una variabile d'ambiente sul tuo computer. Mai nei file della skill, e la skill dice all'agente di non stamparlo né salvarlo mai. Non serve una chiave API.