Generate short videos from text prompts using the OpenDunes API from Go.
The video generation endpoint produces short clips from a text prompt. Generation is asynchronous — you submit a job and poll for the result. The OpenAI Go client has no video resource, so call the endpoint directly with net/http.
The response includes status (queued, processing, completed, failed) and, when completed, a video.url pointing to the generated clip (signed, time-limited).
| Field | Description |
|---|---|
model | Video model slug (?modality=video) |
prompt | Text description of the desired video |
seconds | Requested clip length, 1–60 (model-dependent max) |
Billed per second of output in DA. The requested seconds is held on submission and settled on completion; a failed or timed-out job releases the full hold. See the video API reference.