Generate short video clips from text prompts.
Video Generation produces short clips from a text prompt. It runs asynchronously: submit a job, then poll until the clip is ready. It is billed per second of output video in DA, and clips are stored temporarily — download them promptly. The OpenAI SDK has no video resource, so call the endpoint directly with httpx.
| Parameter | Description |
|---|---|
model | Video generation model slug (?modality=video). |
prompt | Text description of the desired video. |
seconds | Requested clip length, 1–60 (model-dependent maximum). |
The cost of the requested seconds is held on submission and settled on completion. A failed or timed-out job releases the full hold and charges nothing. Returned URLs are signed and time-limited — download promptly. See the video API reference.