API reference

Video jobs

POST /v1/videos and friends: render videos on a video model instance.

What it is

LTX-2.5 Uncensored Video renders videos instead of chat. A video takes a while to render, so the API works in jobs: you start one, check on it, and download the MP4 when it is done. It uses the same base URL and the same kind of API key as chat.

How a job works

  1. 1

    Start a job

    POST /v1/videos with a prompt. It answers 202 with the job, status queued.

  2. 2

    Check on it

    GET /v1/videos/{id} every few seconds until status is done, refused or failed.

  3. 3

    Download the MP4

    GET /v1/videos/{id}/content. It answers 409 until the job is done. Videos are kept for 1 hour.

Request body

POST /v1/videos takes a JSON object. There is no model field.

FieldTypeRequiredDescription
promptstringYesWhat to render, up to 4000 characters. There is no model field.
secondsintegerNoLength: 2 to 30 at 720p, up to 10 at 1080p. Default 5.
resolutionstringNo"720p" or "1080p".
aspectstringNo"16:9" or "9:16".
seedintegerNoRepeat a render with the same seed.
imagestringNoA start image as a PNG, JPEG or WebP data URL, at least 256 px on its shorter side. Through this API, keep it under about 3 MB.

The job object

FieldMeaning
idThe job id (32 hex characters). Use it in the next two calls.
statusqueued, running, done, refused or failed.
progresssegments_done of segments_total. Clips over 10 seconds are rendered in segments.
codeWhy a job was refused or failed, when it was.
timings_msHow long each stage took: queue, render, join, checks, total.

Examples

cURL
bash
# 1. Start a job
curl -s https://openllmbuddy-proxy.openllmbuddy.workers.dev/v1/videos \
  -H 'Authorization: Bearer ob_sk_000000000000000000000000000000000000000000000001' \
  -H 'Content-Type: application/json' \
  -d '{"prompt":"A red fox runs through fresh snow at dawn, soft wind","seconds":5,"resolution":"720p","aspect":"16:9"}'
# -> 202 {"id": "JOB_ID", "status": "queued", ...}

# 2. Poll until status is "done"
curl -s https://openllmbuddy-proxy.openllmbuddy.workers.dev/v1/videos/JOB_ID -H 'Authorization: Bearer ob_sk_000000000000000000000000000000000000000000000001'

# 3. Download the MP4
curl -s https://openllmbuddy-proxy.openllmbuddy.workers.dev/v1/videos/JOB_ID/content -H 'Authorization: Bearer ob_sk_000000000000000000000000000000000000000000000001' -o video.mp4

Limits and safety

  • An instance renders one job at a time and holds up to 4, queued or running. When it is full it answers 429: wait for one to finish.
  • Through this API, keep a start image under about 3 MB.
  • Every MP4 is tagged as AI generated.

Refused requests

Requests involving anyone under 18, real named people or photos of real people are refused with 422 and an error code (for example minor_prompt). Finished frames are checked too; a job refused there ends with status refused. These checks cannot be turned off.