AI UGC Review
Workflows and teams

Developers: Generate Ads From Code With the Mantinea API, Priced Before Every Call

Use Mantinea's AI video ad API from code: scoped keys, estimate_only quotes on every paid call, idempotent starts, long-poll status and signed webhooks.

Some links in this article are affiliate links. If you sign up or buy through them, we may earn a commission at no extra cost to you. How we make money.

The first question a finance lead asks about any generation API is "what will this cost us?" With a usage-billed API you often learn the answer when the invoice arrives. Mantinea's public API lets you ask first: every paid call accepts estimate_only, so your code can get the price, compare it to a budget, and only then start the job.

Below: how the API is laid out, how to build a "quote, then commit" pattern into your client, and what the platform gives you for retries and status. Details come from Mantinea's public docs and the 24 November 2026 price list. Exact paths and schemas live in the OpenAPI 3.1 spec, so generate your client from that rather than copying routes from a blog.

The shape of the API

  • Base URL: https://app.mantinea.com/api/v1.
  • Spec: OpenAPI 3.1, which means you can generate a typed client. See the OpenAPI client guide.
  • Keys: scoped to read, generate or admin. A service that only checks job status gets a read key.
  • Limits: 600 requests or 60 paid starts per minute per key.
  • Batching: up to 50 jobs per batch call.
  • Status: long-poll a job for up to 50 seconds per request, or receive signed webhooks.
  • Pricing: 1 credit = $0.01, the same price in the app, the API and the MCP server.

The API is on every plan, including Starter at $29 a month. If you've priced alternatives, you'll notice the difference: Arcads keeps its API for plans from $550 a month, and Creatify sells API access as a separate $99 to $299 monthly subscription, per their pages read on 12 November 2026.

The pattern: quote, check, commit

Wrap every paid operation in a function that runs twice: once with estimate_only: true, once for real. In TypeScript-flavored pseudocode:

async function runPriced(op: string, body: object, maxCredits: number, key: string) {
  const quote = await api.post(op, { ...body, estimate_only: true });
  if (quote.credits > maxCredits) {
    throw new BudgetError(op, quote.credits, maxCredits);
  }
  return api.post(op, body, { headers: { "Idempotency-Key": key } });
}

Check the spec for the exact response field and header names; the logic is what carries over:

  1. The estimate doesn't start a job. It returns the credit cost of the job as configured.
  2. Your code owns the budget, so put the ceiling in config per client or per environment.
  3. The real call reserves the quote. You then pay for what actually ran, never more than the reserve. Failed or canceled jobs are refunded automatically.

What the numbers look like

Some list prices to sanity-check your estimates against:

JobRate30-second example
Talking actor (standard or Pro actor)15 credits/s450 credits, about $4.50
Lip-sync route40 credits/s1,200 credits, $12
Narrated (voiceover, no face)3 credits/s90 credits, $0.90
Captions2 credits per job2 credits
Resize to another ratio1 credit1 credit

One subtlety: the "Auto" route reserves at 40 credits per second and you pay for the route that actually ran. If your budget check compares the quote to a tight ceiling, Auto may trip it even when the final bill is lower. Either pick the route explicitly or set the ceiling with Auto's reserve in mind. estimate_only explained covers reserves in more detail.

Retries without double renders

When a network drops or a worker times out, a naive retry starts a second paid render. The API supports idempotency keys: send the same key on a retry and you get the original job back instead of a new one.

Build keys from your own domain, not random UUIDs generated at retry time:

client-acme:sku-1042:hook-b:v1

Deterministic keys mean any process, on any machine, retrying the same unit of work lands on the same job.

Waiting for results

You have two options, and plenty of systems use both:

  • Long-poll for interactive tools: one request waits up to 50 seconds for the job to change state. Renders usually take a few minutes, so loop a few times.
  • Webhooks for pipelines: signed events for job and workflow-run succeeded, failed and canceled, retried at 1 min, 5 min, 30 min, 2 h, 6 h and 12 h. The signature header is X-Autonomous-Signature (an older product name you'll still see in developer surfaces).

Results come back as assets with signed URLs; refresh them through the asset endpoint when they expire.

Rate limits as a cost control

60 paid starts per minute per key is a throughput limit, but you can treat it as a safety net too. Give each client its own generate key, and a bug that loops on one client's job can't flood the whole account. Combine that with the workspace's daily, weekly or monthly spending caps and confirm-before-generate setting in the app.

Beyond generation

The same API covers the steps around a render: reviews and approvals, workflow and brand-kit edits, a video quality check on finished videos, resizes (including 4:5 on the API) and translations. That means the code that makes the ad can also open the client review, which keeps humans in the loop without a second tool.

Getting started

Sign up for the 14-day trial (1,000 credits, no card), create a generate-scoped key, and run your first call with estimate_only: true. It costs nothing and proves the pipeline end to end. Full reference is on the API and MCP help page.

The AI UGC Review editors

We review AI UGC ad tools from their own pricing pages, docs and help centers, and we say who each one suits and who should skip it. We work from vendors' own pricing pages, docs and help centers, and date every price we quote. About us.