Promoat.Partner API

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.
What you do not get

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

POST/api/partner/v1/videos/freeform
FieldTypeDescription
promptstring ≤5000 requiredWhat 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_secondsint 5–15Default 5. Anything else is 400 INVALID_DURATION.
aspect_ratiostring9:16 (default), 16:9, 1:1, 4:3 or 3:4.
character_iduuidOne of your characters. Its photo is Image 1 and your reference_imagesstart at Image 2. Another client's id is 404.
reference_imagesarray ≤5[{ "url": "https://…" }] or plain URL strings, in order. At most 4 with character_id. Each at most 10 MB.
reference_audiosarray ≤3Same shape. wav, mp3, m4a, ogg or webm, each at most 10 MB.
first_frame_urlhttps URLThe opening frame. Not with reference_images, reference_audios or character_id (400 INVALID_BODY).
last_frame_urlhttps URLThe closing frame. Same rule as first_frame_url.
seedint 0–2147483647The same seed and body give a similar clip. Omit for a random one.
prompt_enhancementstringstandard (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_creditsint ≥0Price lock: a higher quote is 409 QUOTE_MISMATCH, nothing reserved.
Request: a product shot from one photo
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
  }'
200 OK
{
  "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.

Your character in a shot the other flows cannot make
{
  "prompt": "The man in Image 1 dribbles a basketball down an outdoor court at sunset and dunks",
  "duration_seconds": 5,
  "character_id": "CHARACTER_ID"
}
Opening and closing frame pinned
{
  "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

POST/api/partner/v1/videos/freeform/estimate

Same body and checks, free, nothing queued. The number it returns is what the call reserves. The character is not looked up here.

200 OK
{
  "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.

LengthWith imagesPrompt onlyWith images and 1 audio
5 s12915
10 s211524
15 s272430

Your files

  • Every URL must be public https (a file on your disk: upload it first). A private or internal host is 400 INVALID_URL with the field, 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

StatusWhen
400 INVALID_BODYA missing or long prompt, a bad aspect ratio, too many files, a frame with references, a bad seed.
400 INVALID_DURATIONduration_seconds is not a whole number from 5 to 15.
400 INVALID_URLA file URL is not public https.
402 INSUFFICIENT_CREDITSNot enough credits. Nothing is reserved.
404 NOT_FOUNDcharacter_id is not one of yours.
409QUOTE_MISMATCH, or IDEMPOTENCY_KEY_REUSED (the same key with a different body).
429 TOO_MANY_ACTIVE_JOBSFreeform videos count toward the same limit as other videos.
503 TRY_AGAINFreeform 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.

Try itPOST/api/partner/v1/videos/freeform/estimatefree
Add your API key in the sidebar to enable this.