API reference
Base URL, authentication, conventions and the objects every endpoint shares: the job, errors, lists and uploads.
Base URL
Every endpoint lives under https://api.framera.ai/v1. The v1 in the path is the API version; see Versioning.
Call the API from your own server. Requests from a browser session are refused, so a key never needs to sit in a web page.
Authentication and permissions
Send your API key in the Authorization header on every request: Authorization: Bearer fr_live_…. See Authentication.
Every key can read (every GET). A create needs the product's permission, such as films for POST /v1/videos, or all. A read-only key cannot upload files or create anything, and managing webhook endpoints needs all.
Conventions
- JSON in and JSON out. Send
Content-Type: application/jsonon every POST. - Field names are camelCase:
durationSeconds,aspectRatio,webhookUrl. The Python SDK takes the same fields in snake_case and converts them for you. List queries uselimitandstarting_after. - Every object carries an
objectfield naming its kind:job,quote,balance,upload,webhook_endpoint,event,list. - Ids: jobs are UUIDs; uploads start
upload_, webhook endpointswe_, eventsevt_and webhook deliverieswd_. - Times are ISO 8601 in UTC, such as
2026-11-29T16:20:11.000Z. - Money is in US dollars:
{ "amount": 5.56, "currency": "usd" }. - Every create answers
201 Createdand accepts anIdempotency-Keyheader, awebhookUrland up to 20metadatastring values. See Idempotency. - Lists are
{ object: "list", data, hasMore }, paged withlimitandstarting_after. See Pagination. - Every response carries
X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Reset. See Rate limits.
The job object
Every product, from films to speech, starts a job and returns it straight away. The same object comes back from GET /v1/jobs/:id and in every job webhook.
job.video, avatar, ugc, image, tool, audio or swap.queued, running, succeeded, failed or cancelled.odyssey-1-ultra, odyssey-avatar or nano-banana-pro.prompt, durationSeconds, resolution and aspectRatio. Tool and audio jobs add operation; UGC jobs add script; translations add transcript, translation and sourceLanguage. Avatars, voice changes, translations and swaps carry the measured durationSeconds, upscales and inpaints the image's width and height.{ amount, currency }. Fixed when the job is created, held from your balance, and charged only if it succeeds.{ type, url, expiresAt }, where type is video, image or audio. Links are signed and last an hour; fetch the job again for fresh ones.{ code, message } when the job failed or was cancelled, otherwise null. Codes: generation_failed, content_refused, invalid_input, cancelled.null while it runs.Errors
A failed request answers with an HTTP status and a body of the same shape every time: { "error": { "code", "message", "details" } }. code is stable and safe to branch on; message is written for people; details is always there, null when there is nothing to add. More on Errors.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | A field is missing, wrong or out of range. The message says which; details.issues lists the fields. |
| 401 | unauthorized | The key is missing, wrong or revoked. |
| 402 | insufficient_balance | Your balance is lower than the price. Top up or turn on auto-recharge. |
| 403 | permission_denied | The key lacks the permission, a monthly limit would be passed, or the address is not allowed. details.reason says which: key_permission, key_monthly_limit, monthly_limit or ip_not_allowed. |
| 404 | not_found | No such object on your account. |
| 409 | idempotency_conflict | The Idempotency-Key was used with a different body, or the first request with it is still running. |
| 409 | job_not_cancellable | Cancel was asked for a job that is no longer queued. |
| 422 | content_refused | The request breaks the use rules. Nothing is charged. |
| 429 | rate_limited | Too many requests. Retry after Retry-After seconds. |
| 500 or 503 | server_error | Something went wrong on our side, or a service is briefly unavailable. Any hold is released at once. |
| 503 | model_paused | The model is paused for a short while. Retry later. |
Uploads
Any field that takes an image, clip or audio file takes a public https URL (we fetch it once) or an upload id. To send a file from your own server, upload it first in two steps:
POST /v1/uploadswithcontentType,sizein bytes and, if you like, afilename. You get back201with anid(upload_…), a signeduploadUrland itsexpiresAt, 15 minutes later.- PUT the file's bytes to
uploadUrlwith exactly thatContent-Typeand aContent-Lengthof exactly thatsize, before it expires.
Then pass the upload_… id as image, audio, video, mask or in references. The SDKs do both steps in one call: uploads.upload(file). A read-only key cannot upload.
image/jpeg, image/png, image/webp, audio/mpeg, audio/wav, audio/x-wav, audio/mp4, audio/x-m4a, audio/aac, video/mp4 or video/quicktime.product.jpg, for your own logs.URLs follow the same rules: https only, one of these types, up to 10 MB (50 MB for video).
Endpoints
| Endpoint | What it does |
|---|---|
GET /v1/models | Models, their settings and prices |
POST /v1/quotes | The price of any request, free |
POST /v1/videos | Films from text and videos from pictures |
POST /v1/avatars | Talking avatars |
POST /v1/ugc | UGC ads |
POST /v1/images | One to four images |
POST /v1/tools/upscale · remove-background · inpaint | Image tools |
POST /v1/audio/speech · voice-change · translate | Voice and audio |
POST /v1/swap | Put a person into a clip |
POST /v1/uploads | Upload a file to use as an input |
GET /v1/jobs · /v1/jobs/:id · POST /v1/jobs/:id/cancel | List, follow and cancel jobs |
GET /v1/balance | Balance, holds and auto-recharge |
/v1/webhook-endpoints | Webhook endpoints |
GET /v1/webhook-secret | The secret that signs per-request webhooks |
GET /v1/events · /v1/events/:id | Every event on your account |