/skills:clone-video-adfrom skills
Clones a video ad end-to-end for a different product using the Novoads API. Analyzes source video style, pacing, dialogue, and tone, then renders a new MP4 adapted for the user's product.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Clone an existing video ad for a different product. You analyze the source frame by frame,
transcribe the dialogue, extract the visual style and beat structure, then generate a new
video adapted for the user's product: omni-flash where someone talks on camera, seedance-2.0 for the rest.
How this differs from analyze-video:
prompt-library/.Steps 1 to 3 are the same analysis in both. The only charge in that half is the transcript in step 2, billed by the minute with a one-minute minimum, and nothing on a re-read of the same source. Everything from step 9 on is the real spend.
shared/ is missing from diskreferences/solo-install.md — what a solo install lacks (craft.md, caption-video, the Omni guide, the
b-roll scripts, check-novoads-env.sh, MASTER_CONTEXT.md) and how to fetch each. Skip it
inside the full pack.
This skill links outward more than any other here, and its two biggest targets fan out again (22 and 10 further links). A file reached through another file gets skimmed, not read, so open these four directly, in order. Everything else is lookup.
../novoads-api/prompting/prompt-library/seedance-2.md — fields, grid, prompt craft, what
the estimate flags. Before composing a prompt, not when one fails. A source that talks: also A scene where someone talks in ../../shared/skills/gemini-omni-flash/prompting/guide.md.seedance-2-ugc.md talking-head,
-feature-walkthrough demo, -premium-reveal / -product-hero product-only,
-studio-lookbook polished. Same directory as (2).../../shared/references/craft.md § 1 — the transcribe-verify doctrine step 12 rests on.../novoads-api/SKILL.md is the contract, not a step: open it when a response shape or an
error code needs settling.
The analysis half is nearly untouched: frames and the beat structure are local work on the
user's file, and the transcript is one cheap API call instead of a local install (step 2).
The generation half has three differences worth knowing before you promise anything. All three were established with free 400 probes that reject
before any charge, and re-verified field-for-field against the deployed spec 2.12.0
(2026-08-06):
| The old shape | Here |
|---|---|
| Chain clip 1 → clip 2 → clip 3 as reference videos, so each clip inherits the last | Chaining a clip's output in is not how a series holds. referenceVideos is 400 (root): Unrecognized key; since API 2.35.0 the Seedance variants take mp4 references in referenceVideoAssetIds (see novoads-api), but this skill does not rely on them. What holds a series together is passing the same image assetIds to every clip plus repeating the actor tag verbatim — see step 5 |
audioEnabled: true to switch speech on, false for a silent clone | audioEnabled exists here now (added in spec 2.2.0 on two Seedance variants; now on the three Seedance variants, kling-v3-pro (API 2.38.0) and wan-3.0 (API 2.53.0), and 400 Unrecognized key on omni-flash and veo-3.1). It defaults to true, so a clone with dialogue needs nothing. Send false only for a deliberately silent clone — and still write the silence into the prose, because the flag mutes the render while the prose is what stops the model staging a talking shot. It does not change the price, and POST /v1/estimates refuses the field |
Upload the source audio as referenceAudios to clone the voice | There is no voice cloning on this API (referenceAudios is 400 Unrecognized key; the Seedance referenceAudioAssetIds field from API 2.35.0 takes an mp3 reference, and nothing in this pack has verified it matches a voice). Describe the voice in the prompt — age, accent, pace, energy — and accept that it is a different person's voice. Do not offer the user a voice match you cannot deliver |
Also gone, in the same probe: endFrame, projectId (this
API has products, not projects), duration (it is durationSeconds) and referenceImages
(it is referenceAssetIds).
resolution was on that list and has come back. It is a real field on seedance-2.0 — 480p, 720p, 1080p, 4k, default 720p (verified live against spec 2.12.0, 2026-08-06). A clone should normally match the source's tier, which for a social ad is 720p; going above it is a spend decision (1080p ≈2x the base, 4k ≈5x) that gets priced with POST /v1/estimates and approved like any other. 480p costs less than 720p since the 2026-08-07 family reprice: today ≈two-thirds on seedance-2.0 and under half on seedance-2.5 (it measured exactly half on both on 2026-08-12, and the schedules have moved since), so it is a real draft tier, worth offering when a clone is a rehearsal rather than the deliverable. (The older line here, that it cost the same and bought nothing, described the pre-reprice deployment.) A clone rendered as a series pays the multiplier on every clip — check the tier before you fan out. On seedance-2.0-mini send it only where GET /v1/models lists more than one tier (API 2.34.0 on; before it Mini rendered 720p only and the key was a 400).
And one the old shape got wrong in the other direction: aspect ratio is not
9:16-or-16:9. Seedance takes 16:9 9:16 1:1 4:3 3:4 21:9 — probed live, 1:1
and 4:3 both pass validation — so a square or landscape source clones at its own ratio
instead of being letterboxed into a vertical frame.
which ffmpeg || echo "MISSING — run: brew install ffmpeg"
./scripts/check-novoads-env.sh
ffmpeg and a working key are the whole list. extract-frames.sh needs ffmpeg; the
transcript comes from POST /v1/transcripts (step 2) and needs nothing installed. The env
check has to return 200 before step 9, and it is worth running first: discovering a bad key
after the user has approved a dialogue script is a bad look.
whisper is optional, and only for working offline — see the fallback in step 2. Do not ask the user to install it before starting. A clean machine can clone an ad.
REST key required. A Novoads MCP connector is not a substitute. If
NOVOADS_API_KEYis missing or still the placeholder, stop before any generation work and tell the user: "Before continuing, create an API key at https://novoads.ai/dashboard/settings?tab=api and paste it into.env." That holds even whenmcp__novoads__*tools are connected and authenticated in the session. Never callmcp__novoads__*tools from this repo's workflows: they are a different surface with different tools and behavior. Repo installs verify with./scripts/check-novoads-env.sh; a solo install checksNOVOADS_API_KEYin the environment.
Pack version. Every /v1 response carries X-Novoads-Pack-Version; mention a newer pack at https://github.com/novoads/agent-skills only when that header names a version NEWER than this file's metadata.packVersion — equal or older is nothing to say, and it is never a reason to stop.
If no source video was handed over, do not ask "which ad?". That puts the work back on
the user at the moment they asked us to do it. Run spy-competitor-ads and say what you are
about to do in one line, with a price and a way out:
No clip attached. I'll sweep Arcads, Creatify and Icon for their video ads and clone the strongest. N credits for the sweeps; I'll price the render before it runs. Say "stop", or drop your own clip instead.
Four things that line carries, and nothing else:
mediaType: "video", and it is not the user's choice. A static sweep returns creatives
this skill cannot open, so the mode is fixed here and stated rather than asked. Asking is a
question with one correct answer.POST /v1/estimates in this session, never a number from
memory or from this file — and quoted as sweeps, not as the run. A video render costs
multiples of a sweep, and step 9 is where that number gets its own gate. A line that implies
the sweep total is the whole cost is wrong even when every figure in it is real.Then act. It is a proposal with a veto, not a question and not a menu. spy-competitor-ads
returns file paths and a ranked top three; take the top one unless the user picked otherwise,
and carry on into step 1 with that file.
If the sweep comes back empty, say so in one line and stop. It is a charged, correct result — that brand has no fetchable video ads running — not a reason to re-sweep or to widen the mode.
| Input | Required | Notes |
|---|---|---|
| Source video | yes | The ad to clone. .mp4, .mov, .webm. Handed over, or swept for above |
| Product photo | strongly recommended | Becomes startImageAssetId or @Image1 in referenceAssetIds. Without one, see "no photo" below — the answer is not "let Seedance invent it" |
| Product / offer description | if no photo | Features, audience, selling points. Used to rewrite the dialogue and the product references, and to generate a still if they want one |
| A photo of the person | for a series | It holds one face across clips, and a talking part over 15 seconds (over 10 when its inputs keep it there) is a series. None to hand: make a casting picture of a new person of the source's type with POST /v1/images, priced and shown for a yes, before any clip uses it |
| Brand voice | optional | Check MASTER_CONTEXT.md first. If its brand blocks are empty, ask for tone and audience |
Check references/ at the repo root before asking. references/products/ for product
shots, references/influencers/ for people, references/aesthetics/ for style boards. If
the photo is already there, offer to use it. These folders ship empty — a .gitkeep is not
a product shot, so an empty listing means "ask", not "there is nothing to use".
No photo? Three routes, in this order — and the last one is the expensive one.
POST /v1/images: one call (a slow render answers running: poll GET /v1/generations/{jobId} for its outputAssetId), priced through
POST /v1/estimates and consented to like any other spend. Its response carries an
assetId that goes straight into referenceAssetIds (step 10). This is the right
answer for a concept product, a product that does not exist yet, or a user who simply
has no usable shot. It does not eat a render slot: images have their own concurrency
ceiling, counted apart from POST /v1/videos in both directions, so sourcing a still
never delays a clip and clips in flight never delay the still.If they hand over only a video and say "clone this for my product", ask for a photo or a description before going any further. Cloning a style onto a product you cannot see is guesswork the user pays for.
Reuse the analyze-video script. Do not duplicate it.
bash "skills/analyze-video/scripts/extract-frames.sh" \
"<source_video_path>" "/tmp/clone-video-ad-analysis" <num_frames>
| Source duration | Frames |
|---|---|
| Under 10s | 8 |
| 10–20s | 12 |
| 20–30s | 16 |
| Over 30s | 20 |
| The user asks for extreme precision, at any duration | 40–100 |
The script takes any count as its third argument — evenly spaced, no cap — so the top row costs context, not credits. Use it when the ask is explicitly for a frame-by-frame read.
Outputs: frame_001.jpg … frame_NNN.jpg, audio.wav (16 kHz mono), and metadata.txt
with duration, resolution and fps. Read the duration — step 5 branches on it.
The words come from the API. Upload the source and transcribe it — two calls, nothing installed:
# 1. mint an upload slot for the SOURCE video (measure the bytes, never estimate them)
curl -sS -X POST https://api.novoads.ai/v1/uploads \
-H "Authorization: Bearer $NOVOADS_API_KEY" -H "Content-Type: application/json" \
-d "{\"contentType\":\"video/mp4\",\"sizeBytes\":$(stat -f%z source.mp4)}"
# 2. PUT the bytes with EXACTLY the returned headers, then:
curl -sS -X POST https://api.novoads.ai/v1/transcripts \
-H "Authorization: Bearer $NOVOADS_API_KEY" -H "Content-Type: application/json" \
-d '{"assetId":"<the source assetId>"}'
POST /v1/uploads takes video/mp4, video/quicktime and video/webm: the three
formats step 0 accepts. The transcript comes back in the same response, not polled for:
text, words[] with start/end, segments[], an srt, and the detected language.
Uploading the source is for READING it, never for rendering from it. See the boundary
in step 10 — the source's assetId must never reach referenceAssetIds,
startImageAssetId, or any other generation input.
Record the full transcript, the per-segment timestamps and text, the total word count, and
the language. The language matters twice: it is what you send as language, and it is what
you write the adapted prompt in. The segments[] are beat candidates — they are cut at
the source's own pauses, which is where step 3's beat map usually wants its boundaries.
Two things worth knowing:
metadata.txt. No conversion.creditsCharged: 0, served from storage. Do
not cache it by hand to avoid a charge that will not happen.Offline fallback — whisper. Only when there is no key or no network:
import whisper
result = whisper.load_model("base").transcribe("/tmp/clone-video-ad-analysis/audio.wav")
Two traps this pack has already paid for, the same ones broll-overlay documents:
whisper-cli with no model downloaded returns an EMPTY transcript rather than an
error. Homebrew installs the binary with a test stub, so the failure is silent and reads
exactly like an ad whose every line went missing. pip3 install openai-whisper plus a
model download — the binary alone is not enough.A silent source. audio.wav is left unwritten when there is no audio stream:
extract-frames.sh catches ffmpeg's failure, prints No audio stream found (silent video)
and exits 0, so the missing file is the only signal you get. On the API path the same
thing surfaces as a transcript with no words.
test -f /tmp/clone-video-ad-analysis/audio.wav || echo "silent source — skip to step 3"
If no speech is detected — or there was no audio stream to begin with — note it and skip
the dialogue work in step 7. The clone is a visual-style clone, and it has to declare its
own silence twice: audioEnabled: false on the call and the silence written into the
prompt text (steps 6 and 8).
There is a hosted alternative, and it is not the default. POST /v1/analyses returns the
same class of read (hook boundary and the observable signal behind it, beat timeline,
on-screen text, casting, layer zones labelled by where their pixels come from) in one
synchronous call, one flat fee per call, priced through POST /v1/estimates with
{"kind":"analysis"} first like every other spend. The pass below costs nothing, covers the
whole runtime, and you already have the frames on disk from step 1, so it stays the front
door. Reach for /analyses when ffmpeg is not installed, when the clone needs zone labels
rather than prose (sourceType tells you which zones are generated footage and which are
overlay, which is the one thing a frame read guesses at), or when this pass has already
failed. Two things to say out loud if you offer it: it is a charge, and it defaults to the
first 20 seconds, so a 40-second source needs maxSeconds raised or it reads the hook only.
Read all the extracted frames. For each, note:
Structure and pacing — how many beats, what the arc is (hook → demo → verdict? reveal → detail → CTA?), how long each beat lasts against the segment timestamps.
Camera and framing — POV (selfie, handheld, tripod, propped phone, over-the-shoulder), framing per beat (wide, medium, close-up, macro), movement (static, pan, dolly, handheld shake), and any signature move: "leans into camera", "tilts the product toward the lens".
Edit style — transition type, visual rhythm, recurring motifs ("every other beat is an extreme close-up").
Dialogue and script structure — hook format, speech pattern (casual or formal, filler words, trailing thoughts, mid-sentence cuts), how many spoken lines, how many silent beats, CTA style.
Tone and energy — emotion words, the energy arc, the speaker's relationship to the viewer: friend, expert, skeptic, fan.
Lighting and technical quality — light source and direction, camera class, deliberate flaws, audio character.
Product references — how the product is physically shown, which claims are called out, what labels and text are visible on screen.
What makes this ad distinctive — the 2–3 traits that make it recognisable. These are the ones that MUST transfer; everything else is negotiable.
This analysis stays in the conversation. It is not saved as a template file — that is analyze-video's job.
Show the breakdown before doing anything else, and derive the payload from it out loud, so the user can correct a wrong reading before it costs anything:
📋 Source video analysis
Duration: 13.6s | Beats: 4 | Dialogue: 31 words (en) | Style: skeptic-converted UGC
Beat map:
[00:00–00:03] HOOK — close-up, deadpan, "opening line"
[00:03–00:07] SHOW — tilts product to camera, "feature call-out"
[00:07–00:10] DEMO — (silent) applies the product, close-up on texture
[00:10–00:13] VERDICT — back to medium, "closing line + CTA"
Defining traits (must transfer):
1. [trait] — because [what it does for the ad]
2. [trait] — because […]
3. [trait] — because […]
What transfers to your product:
✅ Beat structure, pacing, camera angles, edit style, tone, energy
✅ Dialogue pattern, adapted to your product
✅ Lighting and technical-quality cues
What gets swapped:
🔄 [source product] → your product
🔄 [source claim] → your claim
🔄 [source brand mention] → your brand
What that means for the call:
• 13.6s, someone talks → omni-flash, split where the line splits: 8s + 6s, the silent DEMO its own clip between (nobody talks, or it stays on Seedance: one clip, durationSeconds: 14)
• vertical source → aspectRatio: "9:16"
• speech detected (en) → language: "en", dialogue gate applies
• product photo given → referenceAssetIds: ["@Image1 = your product"]
Proceed with the adaptation? (yes / adjust)
Wait for the answer. This is a reading of their video, not an approval to spend.
┌─ Does someone talk on camera in this scene?
│ YES → omni-flash: 4, 6, 8, 10, 12 or 15 s a clip (12 and 15 from text, 1 to 3 pictures or a
│ first frame alone; read durationsSeconds on GET /v1/models), the shortest that holds its line (step 6). A longer part splits where the line splits.
│ Stays on seedance-2.0: square, productSwap, animated characters, a model they name.
│ NO, or it stays → that part ≤ 15 s: one clip, durationSeconds = its length, an integer in 4–15.
│ Longer: two routes, and the USER picks. See "Over 15 seconds on Seedance" below.
│ Do not default to either.
│
├─ Do you have a product image — theirs, or one you generated?
│ YES → upload it (or reuse the assetId POST /v1/images already returned), then pick
│ one mode:
│ startImageAssetId — the ad opens ON the product, held up or on a surface.
│ It animates that photo as the literal first frame (omni-flash: firstFrameAssetId, where the server publishes it).
│ referenceAssetIds — the ad builds a scene the product was never photographed
│ in. It composites the references instead, and the prompt
│ addresses them as @Image1, @Image2 … by array position.
│ Never both: a body carrying both is a 400 that says they are separate modes.
│ NO → offer POST /v1/images before falling back to prose (step 0). Prose-only means
│ Seedance invents a design, renders it, charges for it, and re-invents it on
│ every clip of a series.
│
├─ Is it a series (the >15s route the user picked, or a talking part split across clips)?
│ YES → referenceAssetIds, and pass the SAME ids to every clip:
│ @Image1 = the product, @Image2 = the person if one is on screen.
│ Repeat the actor tag verbatim in every clip. Never "the same woman".
│ NO → either mode.
│
└─ Does the source speak?
YES → the line is rendered and lip-synced in this same call. Gate 1 (step 7) applies.
NO → BOTH halves: send audioEnabled: false, AND declare the silence in the prompt
prose ("silent b-roll, no spoken dialogue"). The flag mutes the render; the
prose is what stops the model staging a talking shot. See step 8.
Over 15 seconds on Seedance is a choice, not a default. A source that stays on Seedance and runs past its ceiling has two routes, and which one is right depends on what the user is buying. Present both with the tradeoff and let them pick — do not choose one and mention the other in passing.
| Route | What survives | What it costs |
|---|---|---|
| One-shot compression — the beats become jump cuts inside a single ≤15s render | Continuous voice, no stitching, one charge | The clone no longer matches the source's runtime or pacing, and those are transferable traits too |
| Multi-clip series — split at beat boundaries taken from the beat map, never from arithmetic | The source's runtime and pacing | More spend, in step with its total seconds (a 30s series is about twice a 15s render): a charge per clip, and any resolution tier paid per clip |
The evidence that one-shot is viable is #13's measured A/B — one render carrying its beats
internally came back at roughly half the spend of a stitched arm whose voice was absent for
half its runtime. Cite that as viability, not superiority. The stitched arm anchored
each clip with startImageAssetId, a different mechanism from the shared-referenceAssetIds
series described below, so it does not measure this route at all.
A series is held by references, not by chaining. The old pattern — render clip 1, feed
its output in as clip 2's reference video — drifts (skills/claymation-ad/references/formulas.md), so this skill passes the same image references to every clip.
The assetId can be reused across calls and models, so it costs one upload for the whole series.
Re-uploading the same bytes only mints a second id for the same picture.
Fire the clips of a series concurrently, not sequentially — nothing downstream depends
on an earlier clip's output any more. Ten generations per organization may be in flight at
once; an eleventh comes back 429 with details.reason of concurrency_limit, which is
solved by waiting for a slot and not by backing off harder.
Offer the mini draft, for seedance-2.0 scenes (none for omni-flash: it would show neither its look nor its voice). seedance-2.0-mini is the same grid and the same prompt at about a
fifth of the price, back in 2–3 minutes instead of 3–8. Its fields are the same except
resolution: send it only where GET /v1/models lists more than one tier (API 2.34.0 on;
before it Mini rendered 720p only and the key was a 400). A clone is exactly the case
for it: the first render is where you find out whether your reading of the source survived
into the prompt. Draft on mini, re-price with model set to the final tier, and show both
numbers side by side. SKILL.md makes the tier an explicit question, asked once per
workflow.
Ask how many variations, and which kind — here, not at generation time. Default 1. Two different things share the word: the same script rendered N times (identical payload but for a new key on each, seed-level variety only) or N script variants (distinct dialogue adaptations on one beat structure). A clone usually wants the second. Ask it now, because everything downstream needs the answer: step 6 writes N scripts, step 7 gates them together, and step 9 prices each one before the single yes. Asking at step 11 means the user approved a spend for one prompt and is then handed three.
Tell the user which mode you picked and why.
The creative core. Working from step 3:
Dialogue adaptation (if the source speaks):
omni-flash, about 2.8 words a second after its first second: 8 words in 4 s, 14 in 6, 19 in 8, 25 in 10, 30 in 12 and 39 in 15 (12 and 15 from text, 1 to 3 pictures or a first frame alone), and a longer line splits across clips at a sentence's end.
On Seedance, 2.0 words per second measured (~13 chars/sec with spaces), so a D-second clip holds about 2.0 × (D − 0.5) words.Visual adaptation:
Prompt composition. A talking scene on omni-flash: read A scene where someone talks in its guide, and the talking-head formula below for the person, setting and flaws. Otherwise read seedance-2.md before
composing, and the closest formula for structure —
seedance-2-ugc.md for a talking-head source,
seedance-2-feature-walkthrough.md for
a fast demo, seedance-2-premium-reveal.md
or seedance-2-product-hero.md for a
product-only source, seedance-2-studio-lookbook.md
for a polished voiceover source. Cloning onto a different model reads that model's own grid first, never a Seedance formula carried across: veo-3-1.md when the user names Veo — it takes no referenceAssetIds, so a clone carrying both the actor and the product stays on Seedance. A source whose hook speaks from frame one goes on omni-flash like any talking scene, its opening checked (the novoads-api skill's §7) and trimmed if it opens quiet; where it stays on seedance-2.0: a reference or a start frame (measured at about 0.5s of leading silence, where a render with neither front-loads 3–5s of it), the eye-contact-break beat dropped from the prompt, and the same check. sora-2, which measured no leading silence, was removed from the API in 2026-09; sora-2.md is kept as history. ugc-selfie-style.md is the cross-model UGC guide: its Core principles transfer, its per-model formulas do not.
If the mode is a one-shot compression, read seedance-2-ugc-v2.md as well — for structure and mode only. Take the beats-inside-one-render mechanics from v2 and the prompt craft from v1, which is the scope that file's own contract sets — and say which came from which when you present the prompt, so a wrong borrow is visible before it renders. Your source beat map wins over its beat doctrine. v2 defaults to one-shot and tells you to keep silent beats out of the base; a clone is not writing a base video, it is reproducing one. If the source has a silent beat, the clone has a silent beat, and v2 does not get a vote on that.
Then:
Label: value pairs comes back rendered as literal text
on screen.[00:00], [00:05] — for multi-beat pacing, one main action per block.@Image1 wherever the prompt points at a reference, matching the array order you will
send. A token past the end of the array is refused before the charge. If the mode is
startImageAssetId, use no tokens.@Image1 remains visually unchanged in every
shot, keep the outfit unchanged across all cuts.then /
and then / followed by renders as a smear — split it into two shots.cinematic, professional, stunning, 8k, studio,
perfect. Nothing on the API rejects them and the estimate names only three: this is craft advice, and the
reason to drop them is the render. Describe the real thing instead: the light source,
the surface, the flaw.omni-flash the frame may stay in English with only the quoted line in that language: the Omni guide). Nothing on
the API pushes back on a Spanish or Portuguese prompt.Duration: a talking scene on omni-flash: the shortest of the lengths GET /v1/models lists (4, 6, 8, 10, 12 or 15 today) that holds its line. Elsewhere: that part ≤ 15s → match it, rounded to an integer in 4–15. Longer → whichever
route the user picked in step 5: one ≤15s render for a compression, or one duration per clip
for a series. Never re-decide it here. Validate against the spoken word count; SKILL.md
carries the table.
Mandatory for any clone that speaks. The line inside the double quotes is what the actor says out loud in the finished file, and it cannot be changed afterwards without paying for the render again. Use the format from SKILL.md:
📝 Dialogue script (please confirm before I generate)
1. [HOOK] "adapted line matching the source's hook pattern"
2. [SHOW] "adapted feature call-out for the user's product"
3. [DEMO] (silent beat — physical demonstration, no dialogue)
4. [VERDICT] "adapted closing line / CTA"
Total spoken words: ~N | Target duration: Xs | language: en | Fits at natural pace: ✅
Approve this dialogue? (yes / edit / rewrite)
Rules:
audioEnabled: false on the call and the silence
written into the prompt prose. Neither one covers for the other.Three decisions:
language — declared, not controlling. The prompt is what decides the spoken
language: the render says whatever the quoted line says, and nothing rejects a body
whose language disagrees with it. Default the field from the language the transcript
returned (step 2), state
it in the gate above, and then actually write the dialogue in that language — the field
records the ad for later reporting, it does not translate anything.audioEnabled: false in the POST /v1/videos body, and the
silence written into the prompt prose (silent b-roll, no spoken dialogue). The flag
mutes the render; the prose is what stops the model staging a talking shot. Prose alone
pays for a generated voice track you then discard. Quoting on-screen text in the prompt
is not enough either — the model reads a quoted string as a line to speak, which is the
opposite of what you asked for. The flag is Seedance-only, and POST /v1/estimates
refuses it: muting is not a discount.Never state a credit cost from memory, and never generate before showing a number that
came from a live call in this session. There are no rate tables in this repo, in
MASTER_CONTEXT.md, or in the logs.
curl -sS -X POST https://api.novoads.ai/v1/estimates \
-H "Authorization: Bearer $NOVOADS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"video","model":"omni-flash","durationSeconds":10,"language":"en","prompt":"<the adapted prompt>"}'
Add "resolution":"1080p" to that body when the clone is going above the model's default —
see the bullet below.
Returns credits, balance, sufficient and a warnings array, plus shortBy and
topUpUrl when it is short. The body is strict and takes these six fields (and productSwap on a swap): kind,
prompt, model, durationSeconds, language, resolution — checked field-for-field
against CreateEstimateRequestVideo in spec 2.12.0 (2026-08-06). aspectRatio,
audioEnabled, the asset fields and productId are a 400 here.
model explicitly. It defaults to seedance-2.0, and mini is about a fifth of the price —
pricing the wrong tier is a quote that disagrees with the invoice.resolution whenever the tier is above the default. It is the second price
axis: the high tiers are their own credit schedules, not a surcharge on the low one.
Leave it out and you quote 720p and invoice whatever you actually render. On
seedance-2.0-mini send it only where GET /v1/models lists more than one tier (API 2.34.0 on).language is recorded, not priced. It does not change what the model is sent and it
does not move the number — the spoken language comes from the quoted line in your prompt.
Send it anyway: it is what makes "how do our Spanish ads perform?" answerable later.warnings are advice, never a verdict. Nothing here can refuse or reprice a
call, so a weak clone prices, charges and renders exactly like a good one. They are
substring matches and they do false-positive — read each against the prompt, and say
so when you override one. Step 6's checklist is what actually stands between the two. On omni-flash, omni_line_too_long (API 2.60.2) says the quoted words run past the clip.balance, and quote shortBy and topUpUrl when they
come back. sufficient is a snapshot, not a reservation.Show the number, the count, the total and the balance, and say that a stitched ad's join is one more charge, priced once its clips exist. Get one yes covering the whole set. Then generate.
GET /v1/products → read .items[] (not .products — verified live 2026-08-05) →
productId. Default to the product named in MASTER_CONTEXT.md
under "My workspace"; with exactly one product, save it there; with none, omit the field
— it is optional. There is no folder or project ritual to run: folders are read-only on
this API and there are no projects at all.
Upload each reference once:
curl -sS -X POST https://api.novoads.ai/v1/uploads \
-H "Authorization: Bearer $NOVOADS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contentType":"image/jpeg","sizeBytes":248193}'
Returns assetId, uploadUrl, method and headers. PUT the raw bytes to uploadUrl
with exactly those headers:
curl -sS -X PUT "$UPLOAD_URL" \
-H "Content-Type: image/jpeg" \
-H "Content-Length: 248193" \
--data-binary @product.jpg
Both are signed into the URL: image/jpeg; charset=utf-8 is a 403, and so is a
Content-Length that does not match the bytes. Measure sizeBytes, do not estimate it.
A still you generated is already an asset — do not upload it again. POST /v1/images
returns assetId beside url on every image (deployed spec 2.11.0). Pass that id
straight into referenceAssetIds or startImageAssetId. Downloading the bytes and
pushing them back through POST /v1/uploads only mints a second id for the same
picture and adds a hop. The url expires in 3600 seconds, so
chain from the assetId, never from the URL.
Keep the assetId. It can be reused across calls and models — the whole
series, the mini draft and the final render all reuse it. The 900-second expiry belongs
to the presigned upload URL, not to the id.
If a reference's longest side is under 1024 px, upscale with Lanczos to 1080 px on the long side and re-encode as RGB JPEG at quality 90–95. (No minimum is documented for this API; the practice carries over from a sibling API and is unverified here.)
The source ad: upload it to READ it, never to RENDER from it.
POST /v1/uploads takes video, and step 2 uses that on purpose — the source is uploaded so
POST /v1/transcripts can read its words. That is the whole extent of it. The source's
assetId must never appear in referenceAssetIds, in startImageAssetId, or in any other
generation input. It is input to your eyes and to the transcriber; it is never input to
the model that renders.
This is not a convention you have to remember — the API enforces it before any
charge. A source video's id in referenceAssetIds comes back:
400 invalid_input — referenceAssetIds accepts image uploads only; <id> is not one.
Video and audio references are not available on this endpoint.
referenceAssetIds takes images only: image/jpeg, image/png, image/webp. Since API 2.35.0
the Seedance variants take mp4 and mp3 references in their own fields (referenceVideoAssetIds, referenceAudioAssetIds; see novoads-api), and there the same 400's hint points at those two fields instead of the second line above; either way, a clone here is never built by feeding the original in.
What carries a source's style into a clone is your reading of it, written into the prompt.
curl -sS -X POST https://api.novoads.ai/v1/videos \
-H "Authorization: Bearer $NOVOADS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "omni-flash", "idempotencyKey": "<a new one per render>",
"prompt": "<the adapted prompt>",
"durationSeconds": 10,
"aspectRatio": "9:16",
"language": "en",
"referenceAssetIds": ["<product assetId>"],
"productId": "<uuid>"
}'
startImageAssetId (on omni-flash, firstFrameAssetId, where the server publishes it) instead of referenceAssetIds when that is the mode. Never both.
202 with jobId, status, creditsCharged and model. No warnings here —
but the estimate does return them (verified live 2026-08-05). Collect the craft advice at
gate 2; there is no second chance at submit time.aspectRatio and durationSeconds explicitly. With referenceAssetIds, or no picture, Seedance defaults to 16:9; with startImageAssetId and no aspectRatio the photo's shape decides (the nearest of its six), and sent, it holds. Either way, when the photo is not the video's shape, AI adds background around the whole photo to fit, the photo itself kept whole, which changes no price and no estimate; a photo seen for the first time can add up to about 25 seconds before the answer. For a plain soft border instead, send pictureFit: "border" with the photo (on this call only: the estimate refuses it); the border also stands in when the AI cannot run in time. Seedance's duration defaults to 5 seconds (10 on mini). Neither default is what a cloned ad wants.resolution into this body whenever the estimate carried it. The estimate
priced the tier; this call is what renders it. Quote 1080p at gate 2 and then omit the
key here and the user approved one video and receives another — billed at the 720p
schedule, which is the quiet half of the same bug. audioEnabled is the mirror case: it
belongs only here, because POST /v1/estimates refuses it.logs/novoads-api.jsonl with
the timestamp, endpoint, model, jobId, productId and the request config: duration,
aspect ratio, language, reference count, prompt word count. Never the prompt text,
never the key, never a presigned URL. The log is observability, never a pricing source.curl -sS https://api.novoads.ai/v1/generations/$JOB_ID \
-H "Authorization: Bearer $NOVOADS_API_KEY"
succeeded, failed, blocked or canceled
— not until succeeded. A loop waiting only for success never returns on a job that
already died. queued means charged and submitted but not yet rendering; it is normal.seedance-2.0 is usually 3 to 8 minutes, most often
around 5. seedance-2.0-mini is 2 to 3. omni-flash has no measured wait: say it is unknown.creditsCharged
over from the 202; if that is lost, read it off the job. Never reconstruct it from a rate.Download through /watch, which 302s to a URL signed at request time, so it never hands
you an expired link:
curl -sSL -o clone-01.mp4 https://api.novoads.ai/v1/generations/$JOB_ID/watch \
-H "Authorization: Bearer $NOVOADS_API_KEY"
While the job is unfinished that endpoint is a 409 naming the current status.
Then:
Save under outputs/<descriptive-subfolder>/ — outputs/clone-northbrook-balm/, not the
job id — and name the files for what they are.
Copy the source video in beside them, as source-<what-it-is>.mp4. A copy, not a
symlink and not the path it arrived on. A clone is only evidence next to the thing it
cloned, and every other resting place for the source is temporary: /tmp is swept, a
downloads folder is cleared, a competitor's URL rots. Measured 2026-08-06 — a finished
three-variant run was reopened four days later with its three ads intact and its source
gone, which left no way to show the clone had been faithful to anything.
Transcribe every finished clip and diff it against the approved script. (Doctrine: shared/references/craft.md § 1.) One
POST /v1/transcripts per clip, billed by the minute with a one-minute minimum, and it is the only thing that catches
a spoken line that drifted. A reference image pins the label; nothing pins the
audio, and the two fail independently. Measured 2026-08-06 across three clones of one
source: the on-screen label was glyph-perfect in all three while the brand name was spoken
as "Magnesium", "Magnesium" and "Magneum" — never once as written — and one clip swapped
L-theanine for L-Thiamine, a different compound, in a script that had already
passed the dialogue gate. Digits survived intact ("310 milligrams" rendered correctly).
succeeded and charged for it.Open the folder so they can watch immediately: open "<dir>" on macOS, xdg-open on
Linux, explorer on Windows. Try open first and fall back silently.
Open the source video beside them, then present the clones as a numbered list. The comparison that decides whether this worked is against the original, not among the variants — and after item 2 the source is sitting in the same folder.
For a series, or a talking part split across clips, offer to stitch through POST /v1/assemblies (the
novoads-api skill's Splitting a long script; a silent beat or a held reaction inside a talking clip needs cutPauses: false), or with ffmpeg using absolute paths where every clip came from one model and has sound:
printf "file '%s'\n" "$(pwd)/clip1.mp4" "$(pwd)/clip2.mp4" "$(pwd)/clip3.mp4" > /tmp/stitch-list.txt
ffmpeg -y -f concat -safe 0 -i /tmp/stitch-list.txt -c copy stitched-clone.mp4
Clips from different models, or one with no sound: -c copy exits 0 with the sound broken, so re-encode (same section). Hand back both the stitched file and the clips, and have them listen at each join of the stitched file.
Report the total spend by summing the creditsCharged values the API returned — those,
never a number you calculated from a rate.
If a job came back failed or blocked, say which, quote the error it carries, and give its reasonCode where it has one. Then the failure table below.
Next steps worth offering: iterate the one beat that missed rather than re-firing the whole
set, hand the file to the meta-ad-builder skill to publish it as a Meta creative, or burn
captions on out of band with the caption-video skill — that one
makes no Novoads call and costs no credits.
Full detail in reference.md. A talking scene on omni-flash has its own narrower grid: durationSeconds one of the lengths GET /v1/models lists (4, 6, 8, 10, 12 or 15 today; 12 and 15 from text, 1 to 3 pictures or a first frame alone), aspectRatio 9:16 or 16:9, no audioEnabled, and startImageAssetId is a reference there, not a first frame.
| Constraint | What it means here |
|---|---|
startImageAssetId XOR referenceAssetIds | Separate modes on the model. A body with both is a 400 whose message says exactly that. Nothing is charged |
referenceAssetIds ≤ 9, images only | Ten is Too big: expected array to have <=9 items. A video asset id is refused here; from API 2.35.0 Seedance video and audio go in referenceVideoAssetIds and referenceAudioAssetIds |
No referenceVideos, no referenceAudios, no endFrame, no projectId | All 400 Unrecognized key. Nothing is charged, and no clone workflow can depend on them |
resolution on seedance-2.0: 480p 720p 1080p 4k, default 720p | Real, and re-verified against spec 2.12.0 (2026-08-06). It multiplies the bill — 1080p ≈2x the base, 4k ≈5x, and a series pays it per clip. Price the tier at POST /v1/estimates; 480p is ≈two-thirds of the base (before the 2026-08-07 reprice it cost the same), so it is a real draft tier. 400 Unrecognized key on kling-v3-pro, whose body has no such field (as it was on seedance-2.0-mini and veo-3.1 before API 2.34.0, which gives mini 480p/720p and Veo 720p/1080p: read resolutions from GET /v1/models), and a 400 on omni-flash wherever GET /v1/models lists only 720p for it (where it lists more, Omni has its own tiers, 4k included only when listed) |
audioEnabled — the Seedance variants, kling-v3-pro and wan-3.0, optional, default true | Send false for a silent clone. 400 Unrecognized key on omni-flash and veo-3.1, and on POST /estimates for every model |
durationSeconds 4–15, integer | Out-of-grid values are rejected, never rounded. Default is 5, and 10 on mini |
aspectRatio 16:9 9:16 1:1 4:3 3:4 21:9 | With referenceAssetIds, or no photo, the default is 16:9: set it, or a vertical clone ships landscape. With startImageAssetId and no aspectRatio the photo's shape decides (the nearest of the six); sent, it holds. Either way, when the photo is not the video's shape, AI adds background around the whole photo to fit, the photo itself kept whole |
| Prompt within the model's cap | Enforced on the estimate too, against whichever model you name |
| Audio is rendered from the prompt | The spoken line is lip-synced in this same call at no extra cost, which is why gate 1 exists. audioEnabled: false mutes the render; it does not give you a separate audio track to direct |
Prompt rules are advisory and live on /estimates only | The estimate returns a warnings array of {rule, message} craft advice; POST /videos does not. None of it can refuse or reprice a call, so a weak prompt still renders and bills exactly like a strong one. The warnings are substring matches and do false-positive — read them, judge each against the prompt, and say so when you override one |
Moderation is 422 content_policy | The only refusal of a prompt for what it says, and the estimate skips it, so a clean quote can still be blocked. Nothing is charged |
| Ten generations in flight per organization | An eleventh is 429 with details.reason: concurrency_limit. Wait for a slot; backing off harder does nothing |
idempotencyKey on every video call (API 2.52.0) | The same key within 24 hours returns the first job and its charge, whatever the new body says, so reuse a key only to retry the identical call, and send a new key for every new or corrected render; without a key, a 500 is never blindly retried: see below |
Branch on error.code, never on the message. Every error is
{"error":{"code":…,"message":…,"requestId":…,"details":…}}, and requestId is what to
quote when reporting a problem.
| Status / code | What happened | What to do |
|---|---|---|
400 invalid_input | The request is malformed — an unknown key, an out-of-grid duration, a prompt over the model's ceiling. details.issues names each bad field. Never a judgement on the writing | Fix the field. Nothing was charged. Do not go looking for a prompt rule: none of them can 400 |
400 naming the two modes | startImageAssetId and referenceAssetIds were both sent | Pick one. Start frame to animate a photo, references to composite a scene |
401 unauthorized | Missing, malformed or revoked key | ./scripts/check-novoads-env.sh, then a new key at https://novoads.ai/dashboard/settings?tab=api |
402 insufficient_credits | details carries required and available | Tell the user the gap. Do not retry |
403 forbidden | details.reason is plan_required or subscription_inactive — the key is fine, the plan is not | Say which one it is; they are different fixes |
409 conflict | /watch on a job that has not finished, or POST /v1/videos with the same idempotencyKey while its first submission is still being accepted (a start picture can hold it up to 30 seconds, after up to about 25 seconds for the AI's background on a picture seen for the first time) | /watch: keep polling. The submit: nothing was charged a second time; send it again in a moment with the same key and the first submission comes back. Still 409 after two minutes: find its job with GET /v1/generations |
422 content_policy | Moderation blocked the prompt. Nothing was charged | Rewrite the flagged idea or stop. Do not resend the same payload |
429 rate_limited | Several causes; branch on details.reason | concurrency_limit → wait for a slot. key_limit (60/min) and organization_limit (180/min) → honour Retry-After. client_limit → pre-auth ceiling |
500 internal_error | Possibly charged | Do not retry blindly. GET /v1/generations first: if the job is there, poll it instead of resubmitting |
502 provider_failed | The model provider failed | Credits are refunded automatically |
503 unavailable with details.reason start_picture_busy | The server was too busy to prepare the start or end picture within 30 seconds, after up to about 25 seconds for the AI's background on a picture seen for the first time. Nothing is wrong with the request and nothing was charged | Wait the seconds in Retry-After (also error.details.retryAfterSeconds), then send the same request again with the same idempotencyKey, which it gave back |
An omni-flash job ends blocked, or failed with reasonCode moderation | Google's safety check stopped it. Its credits came back: leave it out of the total | That scene goes to seedance-2.5: same prompt and pictures, same length and shape (firstFrameAssetId as startImageAssetId, no lastFrameAssetId or seed, and a prompt over its 4,000-character ceiling cut down first), a new idempotencyKey, priced with POST /v1/estimates and shown for a yes first. Say its voice can differ. Refused there too: rewrite or stop. No other failure goes there |
Any other job with status: failed or blocked | Read reasonCode and the error on the job | Credits are already refunded: leave it out of the total. moderation: rewrite. vendor_error, vendor_timeout or no reasonCode: send it once more with a new idempotencyKey; failed again, stop and say so. Any other reason: see Status lifecycle in the novoads-api skill's reference.md |
| The clone looks nothing like the source | The reading was wrong, not the render | Go back to the beat map with the user before spending again. Change one element per iteration — framing, or pacing, or the anchor — never three |
| The label came back garbled | Seedance preserves logos and destroys printed text | Say in the prompt that the label stays sharp and unchanged, and check the reference photo actually shows it sharp |
| The clip says the wrong brand name | The reference image pinned the label, not the voice. There is no audio equivalent of a reference asset, so a coined name resolves to the nearest ordinary word — and the render still returns succeeded and still charges | Catch it with the transcript diff in step 12.3, never by ear on one playback. Respell the name phonetically inside the quoted line and re-render that clip only, under a new idempotencyKey. The label being perfect tells you nothing about the audio |
| Source longer than 15s | Not a failure | A talking source splits (step 5). One that stays on Seedance: present the two routes and let the user pick; do not split on your own initiative |
The formula library and the API contract are listed once, in Read order at the top — this section does not repeat them. What is only here:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-ad-cloning, novoads-api, ad-creation, video-generation
18 skills in this plugin
/analyze-videoAnalyze a reference video and reverse-engineer its style into a reusable Seedance 2.0 prompting template for the Novoads API. The output is a new formula file — like seedance-2-ugc.md — that captures the video's structure, pacing, camera work, edit style and tone so it can be recreated with any product, any person, in any setting. Use this whenever someone provides a video they want to use as a style reference, says "I want to make videos like this", "deconstruct this video", "turn this into a template", "analyze this style", or drops a video file and wants to recreate that format repeatedly.
/broll-overlayOverlays silent b-roll cutaway clips onto a finished base video — the base audio keeps running underneath while the picture cuts away and returns, and the final duration always equals the base duration. Use when the user asks to add b-roll, add cutaways, or overlay clips on a video: "add b-roll to this", "cut away to a product shot here", "overlay these clips on my UGC ad". Entered from an approved base video plus its transcript, which comes from POST /v1/transcripts and needs no local install; it never generates the base itself and it never extends a video./caption-videoBurn timed, styled captions into a finished video on the local machine, without re-rendering the source. This is the manual fallback to the API's captioning endpoint, POST /v1/captions, which stays the default path: come here when the style the user wants is outside the API's presets, or when the source was rendered with audio disabled and the API refuses it. Transcribes the audio with Whisper, groups words into reading phrases, renders the captions in a real browser via HyperFrames, and composites them over the source with ffmpeg using a real alpha channel. Use when the user has an MP4 with speech and asks to add captions, subtitles, burned-in text, TikTok-style captions or word-by-word text to it, and the API path has been ruled out. Runs out of band, so it costs no credits and works on any video file whoever generated it. Not for generating video (use the video skills) and not for a separate .srt/.vtt sidecar file.npx claudepluginhub novoads/agent-skills --plugin skillsOther plugins' skills for the same job