API reference · Quotes

Get a quote

The exact price of any request before you make it. Free, and never starts a job.

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

Free. A quote never starts a job, holds money or counts towards a spend limit.

Headers

Authorizationstringrequired
Bearer fr_live_….

Body

The same body you would send to the create endpoint, required fields included, plus product to say which one and, for tools and audio, operation.

productenumrequired
video, avatar, ugc, image, tool, audio or swap.
operationenum
Required for tool: upscale, remove-background or inpaint. Required for audio: speech, voice-change or translate.
…fieldsvariousrequired
The fields of that create call, such as prompt, durationSeconds and resolution for a video. Or send them nested as body instead.
bodyobject
The create body as one object: { "product": "video", "body": { "prompt": "…", "durationSeconds": 30 } }. UGC ads must use it, because their own product field (the item in the ad) would clash with the quote's. Send either body or the loose fields, not both. The SDKs always send body.

Where the price depends on a file, such as the length of an avatar's audio, a voice change, a translation or a swap clip, or the size of an image to upscale or inpaint, we measure the file you name (nothing is stored).

Returns

{ object: "quote", product, model, operation, price: { amount, currency } }, with operation only for tools and audio. The price is what the create call will hold and, if the job succeeds, charge.

Older quote endpoints

POST /v1/quotes/video and POST /v1/quotes/image keep working for code written against them, and return the same price. New code should use POST /v1/quotes, which covers every product.

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.
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.