Asynchronous video generation with task-based result retrieval.
POST https://123api.co/v1/videos/generations
curl --request POST \
--url https://123api.co/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "veo3.1-fast",
"prompt": "Dolphins leaping in the azure ocean",
"duration": 8,
"aspect_ratio": "16:9"
}'| Field | Type | Description |
|---|---|---|
model | string | Example: veo3.1-fast |
prompt | string | Video instruction |
duration | number | Video duration in seconds |
aspect_ratio | string | Example: 16:9 |
image_urls | array | Optional reference image inputs |
{
"task_id": "task-unified-123456",
"status": "queued",
"model": "veo3.1-fast"
}task_idSave the returned task ID and poll the status endpoint instead of assuming synchronous completion.