Skip to content

Developers

Build with Mantinea

Generate talking-actor ads, videos, images, voiceovers, translations and edits from your own code, from Claude or ChatGPT, or from any automation tool, and get a signed webhook the moment they are ready.

Overview

  • Public API at https://app.mantinea.com/api/v1: 75 operations covering generation, the library, actors, voices, credits and workflows. The full reference is generated from the same catalog the server runs: API reference (OpenAPI 3.1 at https://app.mantinea.com/api/v1/openapi.json).
  • Hosted MCP server at https://app.mantinea.com/mcp: the same operations as tools for Claude, ChatGPT, Cursor and any MCP client, every paid tool with its price.
  • Webhooks: signed events when jobs and workflow runs finish, plus inbound URLs that start a workflow.
  • Claude skills plugin: ready-made playbooks (UGC ad, clone a hook, translate pack and more) that drive the MCP tools.

One credit is $0.01, the same price in the app, the API and MCP. Every paid call can quote first, so nothing is ever charged by surprise.

API keys & scopes

A key belongs to exactly one workspace. When you create it you pick what it may do; each level includes the one before it:

  • read: list and download the library, jobs, actors, voices and credits, and get price quotes. Spends nothing.
  • generate: read, plus start paid work (generations, workflow runs, uploads, custom actors).
  • admin: generate, plus manage webhooks and workflow trigger URLs.

Revoke a key any time in Settings, API keys; it stops working immediately. Apps you connect with OAuth show up there too.

Create a key

  1. 1As a workspace admin, open Settings, API keys and click Create key. Pick Read only, Generate or Admin.
  2. 2Copy the secret. It starts with scs_live_ and is shown only once.
  3. 3Store it in your server's secret manager and send it with every request.

Authentication

Send the key as Authorization: Bearer scs_live_… (or in the X-Studio-Key header). Requests and responses are JSON, snake_case, timestamps in UTC. The key names the workspace, so paths have no workspace id.

Who am I
curl https://app.mantinea.com/api/v1/workspace \
  -H "Authorization: Bearer scs_live_…"

Public API

Your first video

Pick an actor, start the video, then wait for it (or get a webhook).

1. Find an actor
curl "https://app.mantinea.com/api/v1/actors?gender=female&setting=kitchen&limit=5" \
  -H "Authorization: Bearer $KEY"
2. Start a talking-actor ad
curl -X POST https://app.mantinea.com/api/v1/generate/talking-actor \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: spring-launch-001" \
  -d '{"actor_id": "act_…", "script": "I tried every budgeting app. This is the one I kept.",
       "ratio": "9:16", "captions": true, "webhook_url": "https://example.com/hooks/ads"}'
202 Accepted
{ "job": { "id": "job_…", "kind": "talking_actor", "status": "queued", "progress": 0 }, "credits": 96, "balance": 904 }
3. Wait for it
curl -X POST https://app.mantinea.com/api/v1/jobs/job_…/wait -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" -d '{"timeout_s": 50}'

When done is true, job.assets[0].download_url is the file. Links are signed and expire after a few hours; read the asset again for a fresh one.

Prices & estimates

Add "estimate_only": true to any paid call to get the exact quote without starting anything (a read-only key is enough). Or quote a whole plan at once with POST /api/v1/estimate. GET /api/v1/pricing lists the price of every kind of work.

Quote
{ "estimate_only": true, "credits": 48, "jobs": [{ "kind": "video", "credits": 48 }], "balance": 904, "enough": true }

A start reserves the quote. If the job fails or you cancel it, the credits come back. When it succeeds you pay for what actually ran, never more than the reserve.

Operations

Highlights below; every operation, field and response is in the API reference.

Generate (all take estimate_only, webhook_url, project_id, brand_id)

POST /generate/talking-actorAn actor says your script, lip-synced, with captions.
POST /generate/videoText or image to video (Seedance, Omni and more): B-roll, product shots.
POST /generate/imageStatic ads, product scenes, UGC stills; with reference images.
POST /generate/voiceVoiceover in any library or cloned voice.
POST /generate/captionsBurned-in captions, optionally translated.
POST /generate/translateDub (same voice) or subtitle a video into up to 10 languages at once.
POST /generate/editTrim, join, text, music, or replace a section with a new line.
POST /generate/variationsHook x actor x ratio x language test grid.
POST /generate/script | /hooks | /concepts | /breakdownScripts, hooks, concepts, and ad breakdowns.
POST /jobs, /jobs/batchAny job kind with raw params; up to 50 at once.

Jobs, library and catalog

GET /jobs/{id}Status, progress, result and finished assets.
POST /jobs/{id}/waitLong-poll up to 50 s until it finishes.
GET /assets, /assets/{id}Your library, with fresh signed download links.
POST /assets/import, /uploadsAdd files from a public URL, or upload them.
GET /actors, /voices, /modelsActor library, voice library, models with prices.
POST /actors, /actors/cloneCustom actors from a description or a photo; clone yourself from a video (consent required).
GET /credits, /pricing, /job-kindsBalance, ledger and the price of every kind of work.

Workflows and webhooks

POST /workflows/{id}/runsRun a workflow with inputs; get a webhook when done.
POST /workflows/{id}/triggersAn inbound URL anything can POST to (admin).
POST /webhooksSubscribe an endpoint to job and run events (admin).

Lists return {"items": […], "next_cursor": "…" | null}. Pass ?limit=50&cursor=… to page.

Keep the key on your server. Never put scs_live_… in browser code or a mobile app: anyone with it can spend your credits.

Webhooks

Add endpoints in Settings, Webhooks (or POST /api/v1/webhooks with an admin key), or pass webhook_url on a single call. Events: job.succeeded, job.failed, job.canceled, workflow_run.succeeded, workflow_run.failed, workflow_run.canceled.

POST to your endpoint
{
  "id": "evt_…",
  "type": "job.succeeded",
  "created_at": "2026-10-15T09:30:00Z",
  "workspace_id": "ws_…",
  "data": { "job": { "id": "job_…", "status": "succeeded", "assets": [{ "id": "ast_…", "download_url": "https://…" }] } }
}

Check X-Autonomous-Signature: t=…,v1=…: HMAC-SHA256 of {t}.{raw body} with your endpoint's secret (or the workspace secret for a call's own webhook_url). Answer any 2xx; anything else is retried after 1 min, 5 min, 30 min, 2 h, 6 h and 12 h. Each event reaches each target once.

Node.js
import crypto from "node:crypto";

export function verify(secret, rawBody, header) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

Workflow triggers

Create a trigger URL for a workflow (POST /api/v1/workflows/wf_…/triggers, admin key). Anything that can POST JSON (Zapier, Make, n8n, Shopify, a form) then runs it: the body's inputs become the run inputs.

Run a workflow from anywhere
curl -X POST https://app.mantinea.com/api/v1/hooks/workflows/wfh_… -H "Content-Type: application/json" \
  -d '{"inputs": {"product_url": "https://shop.example.com/socks"}, "webhook_url": "https://example.com/done"}'

MCP server

Our hosted MCP server gives any AI assistant the full toolset: 96 tools for talking actors, video, images, voice, music and sound effects, translation, edits (upscale, replace an actor, change the voice, extend, stitch, layer, remove the background, text overlays), transcripts and frames, presets, the library, actors and workflows. Paid tools show their price and take estimate_only. The server is https://app.mantinea.com/mcp (Streamable HTTP). Clients that support OAuth sign in with your account and you pick the workspace, so no key is needed. Every link below is also in the app under Settings, MCP & skills, next to the apps you have connected.

  1. 1Claude (web, desktop, mobile): open Claude connectors, Add, Add custom connector, paste https://app.mantinea.com/mcp, then Connect. Sign in here and pick the workspace.
  2. 2ChatGPT (web): open ChatGPT plugins, the plus button, Add custom MCP server, paste the URL and choose OAuth. Some plans need developer mode first (Settings, Apps, Advanced settings).
  3. 3Cursor: Add to Cursor installs it in one click, then sign in when Cursor asks.
  4. 4VS Code: Add to VS Code, or run MCP: Add Server, choose HTTP and paste the URL.
  5. 5Claude Code: run the command below, then /mcp to sign in. No key needed.
Claude Code (sign in with OAuth)
claude mcp add --transport http autonomous https://app.mantinea.com/mcp

With an API key instead. Scripts, CI and clients without OAuth send a key as a Bearer header:

Claude Code (API key)
claude mcp add --transport http autonomous https://app.mantinea.com/mcp --header "Authorization: Bearer scs_live_..."

Estimate-only mode. Connect to https://app.mantinea.com/mcp?mode=estimate and every paid tool returns a quote instead of starting work: ideal for planning a campaign with an assistant before you spend anything. A read-only key behaves the same way.

Claude skills plugin

The plugin adds playbooks that use the MCP tools the way our team does: /ugc-ad, /clone-competitor-hook, /product-demo, /translate-pack, /hook-test, /static-ad, /media-router and more. Each one quotes first and asks before spending. It brings the MCP server with it and signs in with OAuth the first time a tool is used, so there is no key to copy.

  1. 1Download for Claude, ChatGPT or Codex: Claude plugin (.zip) or ChatGPT and Codex plugin (.zip), then upload the ZIP to your client.
  2. 2Claude Code: add the marketplace and install it, then run /mcp to sign in.
Install in Claude Code
/plugin marketplace add Docwyn/autonomous-marketing-plugin
/plugin install autonomous-marketing@autonomous-marketing

Errors & limits

Every error has the same shape, plus an X-Request-Id header to quote to support.

Error
{
  "error": {
    "code": "insufficient_credits",
    "message": "this needs 96 credits, 40 available",
    "detail": { "required": 96, "available": 40 }
  }
}
  • 401 unauthorized: missing, wrong, expired or revoked key or token.
  • 402 insufficient_credits: the balance does not cover the quote; nothing was started.
  • 403 forbidden: the key lacks the scope (detail.required_scope).
  • 404 not_found: the id doesn't exist in the key's workspace.
  • 409 conflict: an Idempotency-Key reused with a different body, or a state change that is not allowed.
  • 422 validation_failed: the body is invalid; detail.field says which field.
  • 429 rate_limited: over 600 requests or 60 paid starts a minute per key; retry after Retry-After seconds.

Send Idempotency-Key on any POST to retry safely: the same key and body within 24 hours return the first response instead of starting the work twice.

Questions? Email support@mantinea.com. © Mantinea LLC Back to the app
AI Video Ad API and MCP Server Guide - Mantinea