The system will call this callback to notify results when video generation is completed
callBackUrl parameter. After the task is completed, the system will automatically push the results to your specified address.callBackUrl in the following format:{
"code": 200,
"msg": "Video generated successfully.",
"data": {
"taskId": "veo_task_abcdef123456",
"promptJson": "{\"aspectRatio\":\"16:9\",\"callBackUrl\":\"https://your-domain.com/api/callback\",\"enableTranslation\":true,\"model\":\"veo3_fast\",\"prompt\":\"cat\"}",
"info": {
"resultUrls": ["http://example.com/video1.mp4"],
"originUrls": ["http://example.com/original_video1.mp4"],
"resolution": "1080p",
"seeds": [21753],
"media_ids": ["e5895558-a627-408a-845c-22e33a775670"],
"has_audio_list": [true]
},
"creditsConsumed": 60
}
}| Parameter | Type | Required | Description |
|---|---|---|---|
code | integer | Yes | Callback status code indicating task processing result |
msg | string | Yes | Status message providing detailed status description |
data.taskId | string | Yes | Task ID, consistent with the taskId returned when you submitted the task |
data.info.resultUrls | array | No | Generated video URL array (returned only on success) |
data.info.originUrls | array | No | Original video URL array (returned only on success) |
data.info.resolution | string | No | Video resolution information (returned only on success), indicates the resolution of the generated video |
| Status Code | Description |
|---|---|
| 200 | Success - Video generation task successfully |
| 400 | Client error - Prompt flagged for content policies, failed to fetch image due to access limits, or unsafe image upload |
| 500 | Internal error - Please try again later, internal error or timeout |
| 501 | Failed - Video generation task failed |
resultUrls and originUrls are direct array formats that can be iterated directlyresultUrls may contain multiple video files