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 completed or succeeded, read the video URL from outputs.videos.

Seedance response details

Seedance 2.0 and 2.5 report successful tasks with status: "completed". Accept both completed and succeeded when handling video results across providers, and read generated media from the standard outputs.videos and outputs.images fields. When the upstream provider includes usage, GENGEN returns it as an optional compatibility field after the standard response fields. Its child keys retain the provider’s original names, including snake_case: The token counts above are illustrative. The available usage fields depend on the upstream response; task creation and in-progress responses may omit usage. Requests with video references can still return only completion_tokens and total_tokens, so do not assume that usage includes separate input or video token counts. These counts describe provider usage, not the charged price. Other compatibility fields, such as task_id, video_url, and content.video_url, may also be present. Use the standard id and outputs fields in new integrations.
Provider output URLs can expire. Copy successful outputs to storage that you control.

Next steps