The system will call this callback to notify results when video generation is completed
When you submit a video generation task to the Veo3.1 API, you can set a callback address through the callBackUrl parameter. After the task is completed, the system will automatically push the results to your specified address.
The callback mechanism avoids the need for you to poll the API for task status, as the system will actively push task completion results to your server.
Webhook Security: To ensure the authenticity and integrity of callback requests, we strongly recommend implementing webhook signature verification. See our Webhook Verification Guide for detailed implementation steps.
After the task is completed, the system will send a POST request to your callBackUrl in the following format:
Success Callback
Failure Callback
Fallback Failed Callback
Fallback Success Callback
{"code":200,"msg":"Veo3.1 video generated successfully.","data":{"taskId":"veo_task_abcdef123456","info":{"resultUrls":["http://example.com/video1.mp4"],"originUrls":["http://example.com/original_video1.mp4"],"resolution":"1080p"},"fallbackFlag":false}}
The fallback functionality is an intelligent backup generation mechanism. When the primary model encounters specific errors, it automatically switches to a backup model to continue generation, improving task success rates.
Fallback Enabled: Automatically switch to backup model when specific errors occur, task continues execution
Fallback Not Enabled: Returns 422 status code when specific errors occur, suggesting to enable fallback functionality
The fallback functionality only takes effect in specific error scenarios. For other types of errors (such as insufficient credits, network issues, etc.), the fallback functionality will not be activated.