API reference · UGC ads

Create a UGC ad

A product and a brief become a ready-to-post ad. We write the script, then make the video. The job returns the script and the video.

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

A 15-second ad from $1.68, script included, charged on success. See the UGC ad prices or get the exact price first with POST /v1/quotes (send the ad as body: { "product": "ugc", "body": { "product": { … } } }). Needs the ugc permission.

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.

Two kinds of ad

  • With avatar, a photo of a creator: a talking ad. We write the script, voice it and the creator says it to camera, lips in sync.
  • Without avatar: a product video. The first product photo comes to life in a short ad film, directed by the script, priced like a film.
AdTalking, 720pTalking, 1080pProduct video, 720pProduct video, 1080p
15 seconds$1.69$2.70$1.68$2.68
30 seconds$3.35$5.37$3.86$6.21

Prices include the script. Send your own script and the script charge is left out.

Body

productobjectrequired
What the ad sells.
namestringrequired
The product's name, up to 200 characters.
descriptionstring
What it is and why people love it: benefits, price, offer. Up to 600 characters.
imagesstring[]required
1 to 4 product photos, each a public https URL or an upload_… id from POST /v1/uploads. A product video opens on the first one.
briefstring
The audience, the angle and the tone, such as "busy parents, honest and funny, end on the 20% offer". Up to 1,000 characters.
scriptstring
Your own script, up to 800 characters. Leave it out and we write one from the product and the brief.
avatarstring
A photo of the creator who presents the ad: a public https URL or an upload_… id from POST /v1/uploads. Makes it a talking ad.
voicestring
Talking ads: the creator's voice id. Default English_expressive_narrator. Voice ids are in GET /v1/models.
durationSecondsinteger
15 (default) or 30.
resolutionenum
720p (default) or 1080p.
aspectRatioenum
9:16 (default) for TikTok, Reels and Shorts, or 16:9, 1:1, 21:9, 4:3 or 3:4. A talking ad keeps the shape of the creator's photo.
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. The job also carries script: the words the ad says, whether you sent them or we wrote them. Its model is odyssey-avatar for a talking ad and odyssey-1-ultra for a product video.

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.