About this endpoint
What it does
Generates a short video from a text prompt. The request body controls the generation settings, and the success response returns a JSON object with the task status, a message, and a task identifier for tracking the job.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| cfg | Number | No | Guidance scale. Default: 1. 1.0 is recommended for the distilled model. |
| seed | Integer | No | Random seed for reproducible generation. Default: 0. |
| steps | Integer | No | Number of inference steps. Default: 8. Minimum: 1; maximum: 15. |
| width | Integer | No | Output video width in pixels. Default: 768. Minimum: 256; maximum: 1024. |
| height | Integer | No | Output video height in pixels. Default: 512. Minimum: 256; maximum: 1024. |
| length | Integer | No | Video duration in frames at 25 fps. Default: 97. Minimum: 9; maximum: 161. Snapped to a valid n*8+1 value. 97 frames is about 4 seconds. |
| prompt | String | Yes | The text description of the video to generate. |
| negative_prompt | String | No | What to avoid in the generated video. Default: empty string. |
Response
Returns a JSON object with status and message string fields, plus a task_id string field used to track the generated video job.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| status | String | No | Job status. |
| message | String | No | Status or response message. |
| task_id | String | No | Identifier for the generation task. |