An ecommerce client with 400 SKUs has little use for one hero brand film. They need dozens of fresh, product-specific ads whenever inventory shifts, a seasonal promo drops or the top sellers change. Doing that by hand in a studio UI turns a healthy creative retainer into hours of manual labor.
Connect your catalog feed to Mantinea's public REST API (https://app.mantinea.com/api/v1) and signed webhooks, and SKU updates turn into product feed video ads automatically, with credit quotes up front and client approval links before anything reaches an ad account.
Capabilities and prices below are from Mantinea's public docs and its 24 November 2026 price list. Check the OpenAPI 3.1 spec on the API and MCP help page before deploying.
The architecture: feed delta to approved creative
Rather than pushing your whole catalog through every night, build an event-driven loop with five stages:
- Detect feed changes: Watch your Shopify export, PIM or Google Merchant feed for new SKUs, price drops or restocked bestsellers.
- Sync product context: Pull product copy and images (or let Brand Brain crawl up to 40 pages of the storefront; a site crawl is 80 credits).
- Quote first with
estimate_only: Price every planned ad before you spend a credit. - Submit in batches (with idempotency keys): Queue up to 50 jobs per batch and keep paid starts under 60 a minute.
- Receive webhooks and route to review: Listen for completion events, run finishing steps (captions, Brand finish or resizes), and push share links or review requests to your team.
Step 1: filter the feed so you protect client margins
Raw product feeds are noisy. A 30-second talking-actor video ($4.50 at list, 15 credits/s) for a low-margin accessory with three units left in stock loses money before the ad even runs.
Put three filters in your feed worker before it calls Mantinea:
- Inventory and margin floor: Only trigger video generation when stock and gross margin justify ad spend.
- Format tiering by SKU priority:
- Hero SKUs: 30-second standard talking-actor ad (Omni or Pro actor at 15 credits/s = 450 credits), or presets like Product in hand (~166 credits) or Unboxing POV (~227 credits).
- Long-tail / seasonal SKUs: Narrated voiceover video at 3 credits/s (90 credits, $0.90 per 30s) with product shots, or Nano Banana 2 static images (10 credits/image; background removal 2 credits).
- Change hash: Store a hash of the title, price, promo badge and hero image URL, so a change in the stock count alone doesn't trigger a re-render.
Step 2: quote the batch before spending (estimate_only)
Every paid endpoint in Mantinea accepts estimate_only. Before a catalog run, have your worker run the batch in estimate mode and add up the credits:
- Say tonight's feed delta flags 20 restocked hero SKUs for a 15-second talking-actor promo (225 credits each = 4,500 credits), plus captions (2 credits each = 40 credits) and one 1:1 resize each (1 credit each = 20 credits).
- Your service sees the exact total, 4,560 credits ($45.60 at list, less on Growth/Pro/Scale plans and yearly billing), before it queues a single render.
- If the quote is over the client's weekly creative cap, pause and send an approval message to Slack.
For more on how estimates and credit reserves work, read estimate_only explained.
Step 3: batch submission, rate limits, and idempotency
Once the quote is approved, submit jobs with a generate-scoped API key:
- Batching: Mantinea supports batches of up to 50 jobs, which keeps HTTP overhead low on multi-SKU drops.
- Rate limits: Stay within 60 paid starts per minute and 600 requests per minute per key. For a catalog launch of 180 SKUs, drip batches at about 45 to 50 starts a minute.
- Idempotency keys: Build a deterministic key from your feed event, such as
sku-10492:promo-bfcm:v1, and reuse it on timeouts or429backoffs so a retry can't render the same SKU twice.
Step 4: handle signed webhooks cleanly
Once jobs start, don't tie up workers polling for minutes. Register a webhook URL in Mantinea to get signed notifications when a job or workflow run succeeds, fails or is canceled.
Three production rules for the webhook handler:
- Verify the signature: Check the
X-Autonomous-Signatureheader (an older product name still used in developer surfaces) against your webhook secret before you trust the payload. - Deduplicate and acknowledge fast: Mantinea retries unacknowledged deliveries at 1 min, 5 min, 30 min, 2 h, 6 h and 12 h. Return a
200quickly and push the payload onto your internal queue. - Handle refunds and post-processing: Failed or canceled jobs refund their credits automatically. On
succeeded, the handler can trigger a video quality check, burn captions (2 credits) or apply Brand finish (captions + corner logo + end card for 2 credits per started minute), resize to 9:16 / 1:1 / 16:9 / 4:5 (1 credit each), and open a review item through the API.
Step 5: route finished ads to client handoff, not straight to spend
The automation failure agency owners fear most is an unapproved creative landing in a live ad set. Mantinea has reviews and approvals on the public API as well as in the web app, and its ad-platform integrations always publish ads paused after approval.
Your last webhook step should post the review link (with password and expiry controls if you're sharing externally) to the client's Slack channel or the account manager's queue. Reviewers leave timecode comments on the frame, and you can re-cut just the changed line with Edit video, or regenerate from comments, before export. The agency approval workflow guide covers how to structure that handoff.
Why this works for ecommerce retainers
Mantinea includes its API, webhooks, Brand Brain, unlimited seats and credit rollover on every plan, from $29/mo (Starter) and $79/mo (Growth) up, so a small ecommerce team and a large agency can run the same feed-to-video pipeline without an enterprise API surcharge. Start with a 10-SKU test on the 14-day free trial (1,000 credits, no card), check every webhook signature, and scale up once the approval handoff runs smoothly.