About this endpoint
What it does
Starts a text-to-video generation request using the LTX-2 model and returns a task identifier for tracking the job. The request body includes the text prompt and optional generation settings such as seed, length, quality, and resolution.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| prompt | String | Yes | Text description of the video to generate. |
| seed | Integer | No | Random seed for reproducible generation. Default: 0. |
| model | ENUM | No | Video model to use. Allowed value: ltx2. Default: ltx2. |
| length | ENUM | No | Approximate duration. Allowed values: 3s, 5s, 10s. Default: 5s. |
| quality | ENUM | No | Generation quality (inference steps). Allowed values: fast, balanced, best. Default: fast. |
| resolution | ENUM | No | Output resolution. Allowed values: sd (SD 480p), hd (HD 720p). Default: sd. |
Response
Returns a JSON object with status, message, and task_id fields. The status is a string indicating the job state, message is a string, and task_id is the identifier for the submitted task.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| status | String | No | Job status. Example: queued. |
| message | String | No | Informational message returned by the service. |
| task_id | String | No | Identifier for the submitted task. |
Notes
This endpoint kicks off an async job and returns immediately with a job identifier; the actual work runs in the background. Pair this call with the corresponding job_check endpoint — poll that until the status reaches a terminal state to retrieve the result. Extract the job id from task_id in the response.