Skip to main content
This guide submits a text-to-video task and polls it until the generated video is ready.
Creating a generation task is billable. Confirm the selected model and controls before sending the request.
1

Create an API key

Open API Keys in the GENGEN Dashboard and create a key.Store the full key when it is shown. GENGEN does not display the secret again.
2

Submit a task

Replace the placeholder key and send the request:
A successful submission returns a public task ID:
3

Retrieve the result

URL-encode the task ID when placing it in the path. For example, encode : as %3A.
Continue polling while the task is pending, queued, running, or processing. When status is succeeded, read the video URL from outputs.videos.
Provider output URLs can expire. Copy successful outputs to storage that you control.

Next steps