API reference · Videos

Create a video

Starts a film from text, or a video from your picture. Returns a job straight away; the finished video arrives by webhook or through Retrieve a job.

POST https://api.framera.ai/v1/videos

From $0.06 a second at 480p, $0.12 at 720p and $0.20 at 1080p, charged on success. See the film prices or get the exact price first with POST /v1/quotes. Needs a key with the films permission (or all).

Headers

Authorizationstringrequired
Bearer fr_live_….
Idempotency-Keystring
Any unique string up to 200 characters. Retrying with the same key returns the first job instead of making a second one. The SDKs set one for you.

Body

modelstring
odyssey-1-ultra (the default): Odyssey 1 Ultra, our film model, makes finished films with dialogue, sound and music.
promptstringrequired
What happens in the film: subject, setting, action, mood and any dialogue in quotes. Up to 5,000 characters.
durationSecondsintegerrequired
5 to 60, in steps of 5. Longer films get scene changes and new camera angles automatically.
resolutionenum
480p, 720p (default) or 1080p.
aspectRatioenum
16:9 (default), 9:16, 1:1, 21:9, 4:3 or 3:4.
soundboolean
Dialogue, sound effects and music. Default true. The price is the same either way.
imagestring
Makes a video from your picture: a public https URL or an upload_… id from POST /v1/uploads. The video opens on this frame.
endImagestring
The frame the video ends on: a public https URL or an upload_… id from POST /v1/uploads. Needs image, and a durationSeconds of 15 or less.
referencesobject
For films from text only (not with image): people, products and voices to keep consistent.
imagesarray
Up to 4 people, products and places to keep the same. Each is a public https URL or an upload_… id from POST /v1/uploads, or an object { image, kind, name } where kind is person, object (default) or place and name (up to 60 characters) is how the prompt calls it.
clipsstring[]
Up to 3 short video clips whose look or motion to follow. A clip adds to the price by its length (up to 15 seconds counted); a quote shows the total.
voicesarray
Up to 3 voice recordings, so a speaker sounds the same across films. Each is a URL or upload id, or { audio, name }.
webhookUrlstring
A public https URL. We POST a signed job.succeeded, job.failed or job.cancelled event to it when the job finishes.
metadataobject
Up to 20 string values of your own (keys up to 40 characters, values up to 500), such as an order id. Returned on the job and in webhooks.

Returns

201 Created with a job object: status: "queued", the settings you sent and its price.

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.
409idempotency_conflictThe Idempotency-Key was used with a different body, or the first request with it is still running.
422content_refusedThe request breaks the use rules. Nothing is charged.
429rate_limitedToo many requests. Retry after Retry-After seconds.
503model_pausedThe model is paused for a short while. Retry later.
500 or 503server_errorSomething went wrong on our side, or a service is briefly unavailable. Any hold is released at once.