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
Start a job
POST /v1/videoswith a prompt. It answers202with the job, statusqueued. - 2
Check on it
GET /v1/videos/{id}every few seconds untilstatusisdone,refusedorfailed. - 3
Download the MP4
GET /v1/videos/{id}/content. It answers409until the job is done. Videos are kept for 1 hour.
Request body
POST /v1/videos takes a JSON object. There is no model field.
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | What to render, up to 4000 characters. There is no model field. |
| seconds | integer | No | Length: 2 to 30 at 720p, up to 10 at 1080p. Default 5. |
| resolution | string | No | "720p" or "1080p". |
| aspect | string | No | "16:9" or "9:16". |
| seed | integer | No | Repeat a render with the same seed. |
| image | string | No | A 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
| Field | Meaning |
|---|---|
| id | The job id (32 hex characters). Use it in the next two calls. |
| status | queued, running, done, refused or failed. |
| progress | segments_done of segments_total. Clips over 10 seconds are rendered in segments. |
| code | Why a job was refused or failed, when it was. |
| timings_ms | How long each stage took: queue, render, join, checks, total. |
Examples
# 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.mp4Limits 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.