Add to request header:
Authorization: Bearer YOUR_API_KEY
Veo3.1-Pro model for video generation
veo3.1-pro "veo3.1-pro"
Prompt describing the video to be generated, limited to 2000 tokens
2000"A cat playing in the grass"
Reference image URL for image-to-video generation
"https://example.com/image.png"
Video duration in seconds
5
Aspect ratio of the generated video, default is auto
auto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 Model extension parameters
HTTPS callback address after task completion
Callback Timing:
Security Restrictions:
2048 charactersCallback Mechanism:
10 seconds3 retries on failure (retries after 1 second/2 seconds/4 seconds)"https://your-domain.com/webhooks/video-task-completed"
Video generation task created successfully
Task creation timestamp
1757165031
Task ID
"task-unified-1757165031-uyujaw3d"
Actual model name used
Specific task type
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Asynchronous task information
Task output type
text, image, audio, video "video"