API reference · Overview

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/json on 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 use limit and starting_after.
  • Every object carries an object field naming its kind: job, quote, balance, upload, webhook_endpoint, event, list.
  • Ids: jobs are UUIDs; uploads start upload_, webhook endpoints we_, events evt_ and webhook deliveries wd_.
  • 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 Created and accepts an Idempotency-Key header, a webhookUrl and up to 20 metadata string values. See Idempotency.
  • Lists are { object: "list", data, hasMore }, paged with limit and starting_after. See Pagination.
  • Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-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.

idstring
The job id, a UUID.
objectstring
Always job.
typeenum
video, avatar, ugc, image, tool, audio or swap.
statusenum
queued, running, succeeded, failed or cancelled.
modelstring
The model that makes it, such as odyssey-1-ultra, odyssey-avatar or nano-banana-pro.
…settingsvarious
The settings you sent, such as 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.
priceobject
{ amount, currency }. Fixed when the job is created, held from your balance, and charged only if it succeeds.
outputsarray
The finished files once it has succeeded: { type, url, expiresAt }, where type is video, image or audio. Links are signed and last an hour; fetch the job again for fresh ones.
errorobject | null
{ code, message } when the job failed or was cancelled, otherwise null. Codes: generation_failed, content_refused, invalid_input, cancelled.
metadataobject
Your own values from the create call.
createdAtstring
When the job was created.
completedAtstring | null
When it finished, or 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.

StatusCodeWhen
400invalid_requestA field is missing, wrong or out of range. The message says which; details.issues lists the fields.
401unauthorizedThe key is missing, wrong or revoked.
402insufficient_balanceYour balance is lower than the price. Top up or turn on auto-recharge.
403permission_deniedThe 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.
404not_foundNo such object on your account.
409idempotency_conflictThe Idempotency-Key was used with a different body, or the first request with it is still running.
409job_not_cancellableCancel was asked for a job that is no longer queued.
422content_refusedThe request breaks the use rules. Nothing is charged.
429rate_limitedToo many requests. Retry after Retry-After seconds.
500 or 503server_errorSomething went wrong on our side, or a service is briefly unavailable. Any hold is released at once.
503model_pausedThe 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:

  1. POST /v1/uploads with contentType, size in bytes and, if you like, a filename. You get back 201 with an id (upload_…), a signed uploadUrl and its expiresAt, 15 minutes later.
  2. PUT the file's bytes to uploadUrl with exactly that Content-Type and a Content-Length of exactly that size, 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.

contentTypestringrequired
One of 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.
sizeintegerrequired
The file's size in bytes: up to 10 MB, or 50 MB for video.
filenamestring
The file's name, such as 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

EndpointWhat it does
GET /v1/modelsModels, their settings and prices
POST /v1/quotesThe price of any request, free
POST /v1/videosFilms from text and videos from pictures
POST /v1/avatarsTalking avatars
POST /v1/ugcUGC ads
POST /v1/imagesOne to four images
POST /v1/tools/upscale · remove-background · inpaintImage tools
POST /v1/audio/speech · voice-change · translateVoice and audio
POST /v1/swapPut a person into a clip
POST /v1/uploadsUpload a file to use as an input
GET /v1/jobs · /v1/jobs/:id · POST /v1/jobs/:id/cancelList, follow and cancel jobs
GET /v1/balanceBalance, holds and auto-recharge
/v1/webhook-endpointsWebhook endpoints
GET /v1/webhook-secretThe secret that signs per-request webhooks
GET /v1/events · /v1/events/:idEvery event on your account