Videos
Freeform videos
One clip of 5 to 15 seconds from your own prompt, sent to the video engine as you wrote it. Use it for what a talking head or a scene video cannot make: product shots, b-roll, landscapes, animation, or your character in a shot the other flows do not cover.
When to use it
Freeform is the fallback. For a presenter talking to camera use a talking head; for your character acting a script out use a scene video. Those flows write the shots, keep the character the same in every clip, add the voice and captions, and can be edited afterwards. Use freeform only when:
- you want to send your own prompt as it is;
- the video has no presenter: product shots, b-roll, landscapes, animation, abstract motion;
- you want your character in a shot the other flows cannot make, such as dancing, sport, or several people together. Pass
character_id.
One clip, no captions, no voice made for you, and no edits afterwards: the edit endpoints answer 409 VIDEO_NOT_EDITABLE for a freeform video. To add speech, record it and pass it in reference_audios, or make it with text-to-speech first.
Make a freeform video
| Field | Type | Description |
|---|---|---|
| prompt | string ≤5000 required | What the clip shows. Sent as you wrote it (trimmed): we do not rewrite, translate or add to it. Refer to your files by their order: "Image 1", "Image 2", "Audio 1". |
| duration_seconds | int 5–15 | Default 5. Anything else is 400 INVALID_DURATION. |
| aspect_ratio | string | 9:16 (default), 16:9, 1:1, 4:3 or 3:4. |
| character_id | uuid | One of your characters. Its photo is Image 1 and your reference_imagesstart at Image 2. Another client's id is 404. |
| reference_images | array ≤5 | [{ "url": "https://…" }] or plain URL strings, in order. At most 4 with character_id. Each at most 10 MB. |
| reference_audios | array ≤3 | Same shape. wav, mp3, m4a, ogg or webm, each at most 10 MB. |
| first_frame_url | https URL | The opening frame. Not with reference_images, reference_audios or character_id (400 INVALID_BODY). |
| last_frame_url | https URL | The closing frame. Same rule as first_frame_url. |
| seed | int 0–2147483647 | The same seed and body give a similar clip. Omit for a random one. |
| prompt_enhancement | string | standard (default) or enhanced. The engine's own planner may adjust the prompt in either mode; enhanced lets it do more. We never edit the prompt ourselves. When the mode is fixed on our side for a while, the other value is ignored with a FIELD_IGNORED warning. |
| expected_credits | int ≥0 | Price lock: a higher quote is 409 QUOTE_MISMATCH, nothing reserved. |
curl -X POST https://platform.promoat.ai/api/partner/v1/videos/freeform \
-H "Authorization: Bearer $PROMOAT_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: bottle-ad-v1" \
-d '{
"prompt": "Slow orbit around the perfume bottle in Image 1 on wet black stone, soft rim light",
"duration_seconds": 10,
"aspect_ratio": "9:16",
"reference_images": [{ "url": "https://your-cdn.com/bottle.png" }],
"expected_credits": 21
}'{
"workflow_id": "partner_ff_3b0f…",
"status": "queued",
"credits_reserved": 21,
"credits_quoted": 21,
"job_type": "freeform_video",
"duration_seconds": 10,
"aspect_ratio": "9:16",
"price_table_version": "2026-11-11",
"warnings": [],
"duplicate": false
}Poll GET /jobs/{workflow_id}/status until completed; the result has video_url, poster_url, asset_id and editable: false. The video is also in your assets with video_type: freeform and its aspect_ratio.
{
"prompt": "The man in Image 1 dribbles a basketball down an outdoor court at sunset and dunks",
"duration_seconds": 5,
"character_id": "CHARACTER_ID"
}{
"prompt": "The flower bud opens into a full bloom",
"aspect_ratio": "1:1",
"first_frame_url": "https://your-cdn.com/bud.jpg",
"last_frame_url": "https://your-cdn.com/bloom.jpg",
"seed": 42
}Price it first
Same body and checks, free, nothing queued. The number it returns is what the call reserves. The character is not looked up here.
{
"credits_required": 21,
"credits_balance": 900,
"sufficient_credits": true,
"duration_seconds": 10,
"billed_seconds": 10,
"aspect_ratio": "9:16",
"job_type": "freeform_video",
"price_table_version": "2026-11-11",
"lines": [{ "kind": "generation", "credits": 21, "quantity": 10, "unit": "output_second" }],
"warnings": []
}Pricing
By length, the same at every aspect ratio. A request with any image (a reference image, a character, a first or last frame) pays the engine's image fee once, however many images it sends; each reference audio adds a little per 5 s. The estimate returns the exact number. A failed job is refunded.
| Length | With images | Prompt only | With images and 1 audio |
|---|---|---|---|
| 5 s | 12 | 9 | 15 |
| 10 s | 21 | 15 | 24 |
| 15 s | 27 | 24 | 30 |
Your files
- Every URL must be public https (a file on your disk: upload it first). A private or internal host is
400 INVALID_URLwith thefield, before anything is reserved. - The job copies each file to our storage before the engine reads it. A file that cannot be read as an image or audio (a video passed as an image, for example), is over 10 MB, or is refused by the engine fails the job with
PROVIDER_INPUTand the credits are refunded. The character's photo follows the same rules. Every file must work: the prompt names them by position, so none is dropped.
Errors and limits
| Status | When |
|---|---|
400 INVALID_BODY | A missing or long prompt, a bad aspect ratio, too many files, a frame with references, a bad seed. |
400 INVALID_DURATION | duration_seconds is not a whole number from 5 to 15. |
400 INVALID_URL | A file URL is not public https. |
402 INSUFFICIENT_CREDITS | Not enough credits. Nothing is reserved. |
404 NOT_FOUND | character_id is not one of yours. |
409 | QUOTE_MISMATCH, or IDEMPOTENCY_KEY_REUSED (the same key with a different body). |
429 TOO_MANY_ACTIVE_JOBS | Freeform videos count toward the same limit as other videos. |
503 TRY_AGAIN | Freeform videos are briefly unavailable. Nothing is charged. |
Fields this endpoint does not read are ignored with a FIELD_IGNORED warning. The Idempotency-Key works as on /videos, in its own namespace. A job that fails with PROVIDER_INFRA is worth one retry a few minutes later. PROVIDER_MODERATION means the engine refused the prompt: ask the user to rephrase it, as the same prompt is refused again.