/skills:nano-banana-image-adfrom skills
Generates standalone Meta image-ad creatives via Novoads API using the Nano Banana Pro model. Handles prompting, safety suffixes, and edge-safe layouts for photoreal, lifestyle, and product-shot ad styles.
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; scripts run unread.
Generate one or more standalone Meta ad image creatives via Novoads' POST /v1/images
with model: "nano-banana-pro". Hands the image paths off to your Meta-ad-builder skill —
this skill does not upload to Meta itself.
shared/ files are not on diskThen this skill was installed on its own from skills.sh and the rest of the pack stayed behind.
Fetch each missing file from https://raw.githubusercontent.com/novoads/agent-skills/main/<path>,
where <path> is one of shared/skills/image-ad-prompting/OVERVIEW.md,
shared/skills/image-ad-prompting/prompting/prompt-library.md,
shared/skills/image-ad-prompting/prompting/safety-suffixes.md and
shared/skills/nano-banana-image-ad/prompting/guide.md. Or take everything at once with
git clone https://github.com/novoads/agent-skills.git. That install has no
scripts/check-novoads-env.sh either, so set NOVOADS_API_KEY in the environment yourself and
let the first call report the key.
Paths below are from the repo root. This skill is copied into .claude/skills/ and
.cursor/skills/ by sync-skill.sh, so a relative link out of it would break in those
copies — read these from the repo you are working in.
shared/skills/image-ad-prompting/OVERVIEW.md — the ecosystem hub: which skill, which model, what the family does and doesn't do.shared/skills/nano-banana-image-ad/prompting/guide.md — model-specific prompting (what Nano Banana Pro is good/bad at, when to switch to gpt-image-2).shared/skills/image-ad-prompting/prompting/prompt-library.md — 40 validated templates with per-model notes.shared/skills/image-ad-prompting/prompting/safety-suffixes.md — the 3 always-on guards.skills/nano-banana-image-ad/scripts/generate_image.py — the helper script (Python stdlib only).For anything about the API itself that this file does not answer — error codes, rate limits,
concurrency, the upload contract — the novoads-api skill's reference.md is the authority.
nano-banana-pro. It is the only Nano Banana on this API — there is no nano-banana-2, no nano-banana-edit, no legacy nano-banana. The script refuses anything else. If the user asks for gpt-image-2, point them at chatgpt-image-ad.NO_CHROME_SUFFIX is always on (override only with --allow-chrome).--no-safe-zone is explicit.referenceAssetIds caps at 14 on nano-banana-pro (spec 2.7.0; gpt-image-2 takes 4). The script enforces it — and 2-4 well-chosen references usually beat many.--pin-block; its brand is only a hand-written name.) Image models invent brand-shaped content on any surface the prompt leaves unspecified, and state it as fact. Measured on the sibling model over a 34-template run (2026-08-04): the product label was faithful in all 34 because a reference pinned it, while unpinned marks failed three ways — an invented back-of-can panel carrying a sourcing claim nobody wrote, a Hydro Flask logo on a prop thermos, and a drifted publication wordmark. This model's 14-reference headroom makes the rule cheap to follow: pin the product, the logo, and any third-party mark the concept needs. For product surfaces the ad does not show, say so explicitly ("front label only; no invented label copy, no barcode"). Unpinned means invented. Pass it as --pin-block "<one-line product description>" rather than writing the clause by hand: the script wraps the shared library's standard 346-character guard around your description, counts it against this model's prompt cap (50,000 characters, the largest on the API, deployed spec 2.16.0, verified 2026-08-08), and refuses pre-network naming the pin block's share if it does not fit. Hand-written pin blocks ran ~700 characters and used to be the single largest cause of a refused prompt, back when the cap was 4,000 on every model. At 50,000 that pressure is gone, and the reason to pass --pin-block is that the standard guard is the wording that was measured to work.POST /v1/estimates in this session — never from memory, never from logs/novoads-api.jsonl, never from MASTER_CONTEXT.md. There are no credit numbers written down anywhere in this repo, on purpose. Nano Banana Pro costs more per image than gpt-image-2, so the model choice is worth surfacing when you show the quote..env containing NOVOADS_API_KEY (novo_ + 64 hex, created at https://novoads.ai/dashboard/settings?tab=api). Verify with ./scripts/check-novoads-env.sh.PRODUCT_ID in .env so generated assets are filed under a specific product. Omit it and the job lands in your default product. productId is organizational only — it does not influence what is generated.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.
https://api.novoads.ai (or NOVOADS_BASE_URL). That is the host only — callers append /v1/....Authorization: Bearer $NOVOADS_API_KEY.POST /v1/images: the call blocks for the render (typically 60–90 seconds) and returns the finished images. A render still going after about 105 seconds answers status: "running" with no images instead (API 2.39.0): poll GET /v1/generations/{jobId} to a terminal status and read outputUrl and outputAssetId there, with images[] on a job of several. Never resubmit it; that job is already paid.POST /v1/uploads with {contentType, sizeBytes} returns {assetId, uploadUrl, method, headers, expiresInSeconds, maxBytes}. PUT the raw bytes to uploadUrl echoing the returned headers byte for byte — Content-Type and Content-Length are both part of the signature, so storage returns 403 if either differs. The resulting assetId can be reused across calls: upload a character or product shot once and pass the same id on later calls. That is what makes cross-run identity consistency cheap here.| Field | Value |
|---|---|
model | nano-banana-pro |
prompt | the image prompt — the always-on suffixes count against the model's cap |
aspectRatio | 1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9 — defaults to 1:1, so always set it |
referenceAssetIds | up to 14, order preserved, addressable positionally from the prompt |
numImages | 1–4, one call, charged per image |
productId | optional, organizational only |
idempotencyKey | sent by the script, a new one per call and the same on that call's resends, and printed before the call: the same key within 24 hours answers with the first call's job instead of rendering and charging again, and after 24 hours draws and charges again. --idempotency-key <key> sends a printed key again from a new run, for the same call only, since it answers with the first picture whatever the prompt now says: a QA retry or a corrected prompt runs without it |
This model takes the full ratio set — including 3:2, 3:4, 4:3 and 5:4, which
gpt-image-2 does not. That is the one hard reason to route a bespoke prompt here regardless
of style.
N variants is one call, not N calls. Send numImages: 4 and four images come back in
images[]. Do not fan out four parallel requests — that burns four of your twelve image
slots to get the same result at the same price.
There is no edit mode on THIS model. The Nano Banana inpainting flows the older skill
had do not exist on this API — no nano-banana-edit, no mask, no img2img — and
nano-banana-pro does not publish sourceAssetId. Editing an existing image is a
GPT-model capability (all five): route it to chatgpt-image-ad rather than
approximating it here with a reference-led regeneration.
| Input | Notes |
|---|---|
| Seed prompt | The creative direction in their words. You will rewrite it (see Phase 3). |
| Aspect ratio | One of the ten above. Reject anything else. |
| Reference image(s) | Optional but strongly recommended for a specific product, character or brand mark. Up to 14. |
Variant count N | Default 1. Cap at 4. Each one is charged. |
.env exists with NOVOADS_API_KEY../scripts/check-novoads-env.sh prints OK (a 401 is a bad key; a 403 with details.reason: plan_required is a good key on an account without API access — different fixes).Collect: seed prompt, reference paths (up to 14), variant count, aspect ratio.
Present choices per shared/skills/image-ad-prompting/OVERVIEW.md § Presenting choices to
the user, which is one decision at a time and never this four-item brief up front.
Read shared/skills/image-ad-prompting/prompting/prompt-library.md. If the user's brief
matches a template, check the Model notes block — only proceed if nano-banana is marked
clean, preferred, or strong. If gpt-image-2 is preferred, suggest switching skills.
Fill {placeholders} and show the user the rewritten prompt. Ask for approval before generating.
For fresh prompts (no template match), follow the structure in
shared/skills/nano-banana-image-ad/prompting/guide.md § Phase 3b — lean on Nano Banana
strengths (named reference roles, lighting specifics, material specifics).
curl -sS -X POST "$NOVOADS_BASE_URL/v1/estimates" \
-H "Authorization: Bearer $NOVOADS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"kind":"image","model":"nano-banana-pro","prompt":"<final prompt>","numImages":<N>}'
It charges nothing, and it is the only legitimate source of a price. Name the model in the estimate body — the
image models' schedules differ by more than 3×, so pricing the wrong one is a quote that
disagrees with the invoice. Show the user credits, and whether sufficient is true against
their balance. If it is false, say so and stop — the response carries shortBy and
topUpUrl. Wait for an explicit yes before Phase 5.
Three things to know about this call:
warnings. POST /v1/estimates returns the same advisory warnings array of craft notes on a kind: "image" call as it does on video, with rules of its own — banned_polish and blank_label both observed live on deployed spec 2.19.0 (verified live 2026-08-12). The older note here, that an image estimate came back with no warnings key at all, described the 2026-08-04 deployment and is retired. They are still advisory: none refuses the call, none changes credits, and they match substrings, so read each one, judge it against what your prompt actually says, and state your reasoning if you override it — never paste a suggested fix into a prompt it does not fit, and never drop one silently. The rewrite rules in Phase 3 remain the real check; this is a second opinion that costs nothing on a call you were making anyway.kind, prompt, model, numImages; the arm also takes language and resolution (it moves the price; the script has no size flag and renders the default 2K, so send it only for a direct POST /v1/images at that size). Sending aspectRatio or referenceAssetIds is a 400 Unrecognized key: the estimate never sees them, and neither affects the price.POST /v1/images does (50,000 here, the roomiest on the API; 32,000 on each GPT model, 10,000 on each Seedream 5 model and 5,000 on seedream-5.5), so an over-long image prompt is refused at the estimate, at no charge. It does not run moderation either, so a prompt it blessed can still come back 422 content_policy.Estimate the final prompt, the one the script will send with the safety suffixes appended, or the quote will be short by roughly 1,500 characters' worth of prompt.
./skills/nano-banana-image-ad/scripts/generate_image.py \
--prompt "<rewritten>" \
--aspect-ratio <ratio> \
--n <N> \
--image-ref <product.png> \
[--image-ref <character.png>] \
[--image-ref <style.png>] \
--out ./generated \
--env-file .env
--image-ref uploads the file on every invocation. For a batch that reuses one product
photo — or the same character shot, which is what holds a face steady across runs — upload
it once and pass --ref-asset-id <assetId> instead: same reference, no repeat upload. The
two are interchangeable and share the 14-reference cap.
Each line on stdout is one JSON image (variant, path, job_id, width, height,
prompt, aspect_ratio, model, credits_charged).
Log the call to logs/novoads-api.jsonl per logs/README.md — images are written once,
complete (the script waits out a slow render, so nothing is left to poll). Record creditsCharged from the response,
never an estimate. Observability only, never a pricing source.
For each image, read it and inspect for:
chatgpt-image-ad)--image-ref to mitigate)assetId for the character reference on every call: the same picture on every call is what keeps a face consistentIf defective: regenerate with a revised prompt explicitly correcting the issue (see
shared/skills/nano-banana-image-ad/prompting/guide.md § Retry mode). Cap at 2 retries.
Each retry is a fresh charge — there is no free re-roll — so no re-confirmation is needed
within the cap, but report the extra credits at the end of the run. After the cap, stop and
show the best attempt.
Show all paths to the user. Ask "Use all / use these specific ones / regenerate / cancel."
Open the output folder (open on macOS, xdg-open on Linux) so the user sees the results
without hunting for them.
Selected images are ready for the meta-ad-builder skill. Print the paths. Optionally
write them to ./generated/run-<ts>.jsonl for downstream consumption.
meta-ad-builder skill.chatgpt-image-ad.chatgpt-image-ad, which edits from a prompt through sourceAssetId.novoads-api skill.clone-image-ad.| What you see | What it means |
|---|---|
400 invalid_input with details.issues | A malformed field. Most often more than 14 referenceAssetIds — that is this model's cap, and 4 is gpt-image-2's, so do not carry the sibling's number here — a numImages above 4, or a prompt over this model's 50,000 characters. The refusal reads Too big: expected array to have <=14 items. Nothing was charged. |
401 unauthorized | Missing, malformed or revoked key. Send the user to 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 says which: plan_required, subscription_inactive, or API access off for the account. |
409 conflict with details.idempotencyKey | A call with this key is still being made, and it is charged once at most. The script asks again with the same key after the Retry-After, else 15 s, for up to 120 s in all, and the first call's answer comes back once it is made; a 429 or 503 met in that time waits the same way. Still 409 after that: its answer was not recorded and that key keeps answering 409 for its 24 hours. Find the job where the stop says: GET /v1/generations?kind=image&limit=50&updatedSince= a minute before the time its key line gave (a day more for a key given with --idempotency-key), and every further page (offset while hasMore), a job created since then whose promptPreview, its prompt's first 120 characters, begins as this prompt does, and where several do, the one whose whole prompt in GET /v1/generations/{jobId} does. Poll it to its end: one still in progress may still be drawing, or may be waiting for the API to fail it and refund it, usually within about 30 minutes of the charge and at the latest about 2 hours after it, and no such job since then means nothing was charged. Once that job has failed or is not there, run it again without --idempotency-key: a new key, charged once. Sooner, the picture may stand charged twice. |
422 content_policy | Moderation blocked it. The estimate does not run moderation, so this can land on a prompt the estimate priced cleanly. Nothing was charged. Rewrite or stop. |
429 rate_limited | Branch on details.reason. key_limit / organization_limit / client_limit are paced by slowing down; image_concurrency_limit is not — only waiting frees a slot; credit_balance_busy means other paid calls of the organization held the credit balance at that moment (Retry-After: 2). Honor Retry-After. Nothing was charged, so the script waits it out (at most 60 s, the rest of a per-minute window) and sends the call once more by itself, with the same idempotencyKey; a second 429 stops it with the server's message. After the key's 409, a 429 waits like the 409 and does not use that one resend. |
403 on the presigned PUT | The signed headers weren't echoed byte for byte. Send the headers object from POST /v1/uploads exactly as returned. |
500 internal_error | The call may have landed. The script sends it once more with the same idempotencyKey, which answers with the first call's job if it was made, never a second charge, and does the same after a timeout, a dropped connection or another 5xx. If that fails too, do not run it again blindly: run it again within 24 hours with --idempotency-key and the key it printed, which answers with that call's job if it was made, or draws it if it was not, charged once either way, or, where that call failed with its charge standing, 409 until its 24 hours pass, and the run then stops with where to find its job. Or look first where the stop says (GET /v1/generations?kind=image&limit=50&updatedSince=, every page, matched on promptPreview and createdAt, each match read whole): no such job since then means nothing was charged. After 24 hours the key draws and charges again, so look first. A run without the flag sends a new key: a second picture, charged again, if the first was made. |
502 provider_failed | The model provider failed. Credits are refunded automatically. On reasonCode vendor_error, vendor_timeout or none, the script sends it once more by itself with the same key: a new draw, charged once if it works, since a 502 whose credits all came back gives its key back; where they did not all come back, the key answers 409 and the script takes the 409 row's path, never a second charge. On moderation or an input_image_* code it stops, since the same picture fails the same way. It prints reasonCode where the job has one: read it before you send anything again (Status lifecycle in the novoads-api skill's reference.md). |
503 unavailable | Nothing was charged (on details.reason image_capacity the credits were taken and given back at once). The script sends the call once more, with the same idempotencyKey, after the Retry-After (at most 60 s), else 2 s; a second 503 stops it with the server's message. |
skills/nano-banana-image-ad/SKILL.md — this fileskills/nano-banana-image-ad/scripts/generate_image.py — the nano-banana-pro caller (upload + generate + download)shared/skills/image-ad-prompting/OVERVIEW.md — ecosystem hub, read firstshared/skills/nano-banana-image-ad/prompting/guide.md — model-specific prompting, retry playbookshared/skills/image-ad-prompting/prompting/prompt-library.md — 40 validated templatesclone-image-ad skill — reverse-engineers an existing ad into a reusable library entrychatgpt-image-ad skill — sibling for typography-heavy / UI-mimicry templatesnovoads-api skill — the API contract underneath all of thisWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub novoads/agent-skills --plugin skills18 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./change-voiceReplaces the voice in a video or audio file with one from the Novoads voice catalog, over the REST API. Converts the SPEECH in the source to a voice you pick, keeps the original timing so lip-sync survives, and returns audio that gets muxed back over the untouched picture locally. Casts by MEASURING the source voice against auditioned candidates instead of reading labels, refuses a source with no speech before anything is charged, fences sound effects and music so they survive from the original track, and verifies the finished file by transcribing it. Use when an actor's voice sounds robotic, flat, thin or simply wrong, and for "change the voice", "voice swap", "swap the voice on this ad", "re-voice my ad", "the actor's voice sounds bad", "make him sound human", "different voice for this video", "speech to speech", "same video better voice". Not for narrating a silent clip (that is a voice-over), not translation, and it changes neither pronunciation nor accent./chatgpt-image-adGenerate one or more standalone Meta image-ad creatives via ChatGPT Image 2 (gpt-image-2) through the Novoads API. Locks the model, auto-strips platform chrome, enforces edge-safe layouts and glyph-safety inside body text. Use when the user asks for a "gpt-image-2 ad", "ChatGPT Image ad", "Image 2 ad creative", "make a static image ad with GPT", or anchors on a need for typography-heavy / dense-text / UI-mimicry ad creatives (chat threads, comparison tables, fake search results, iOS dialogs, Slack snapshots, ChatGPT-conversation ads, Apple Notes lists). Does NOT trigger on Nano Banana cues — use nano-banana-image-ad for those./claymation-adBuilds a hand-sculpted stop-motion CLAY ad on the Novoads REST API as a STORYBOARD: five to eight beats, each rendered from its own key frame, a storyteller narration laid into the gaps, a music bed, captions burned on, assembled locally with ffmpeg. Carries the genre's arc (named protagonist, inciting moment, social beat, quiet despair, sculpted clay infographic, discovery, transformation, resolution card), and also recreates a found clay ad by reading the reference video locally with ffmpeg and Whisper. Use for ANY clay or stop-motion ask at ANY length: "claymation ad", "stop-motion ad", "clay ad", "a quick clay ad", "plasticine characters", "make an ad like this clay one", or a reference video with sculpted clay characters in it. There is no one-call tier here, so ffmpeg is required. Not for the smooth 3D animated look (use pixar-ad, which covers every Pixar-style length), talking-head UGC (novoads-api), or a static image ad.Other plugins' skills for the same job