Skip to main content
⚠️ This documentation is for legacy custom API, not recommendedPlease see new documentation: Veo-3.1 Quick StartNew API uses OpenAI-compatible format with lower prices and more features.

Three Steps to Generate Video

1 Submit video generation task Call the submit interface using your API key
2 Record the returned task ID System will return task information
3 Query generation result Query status using task ID

Authentication Method

All API requests need to include a valid Bearer Token in the request header:
Security Reminder: Do not expose API keys in client-side code. It’s recommended to store them in server-side environment variables.

Basic Request Examples

Simple Text Generation

Generation with Reference Image

Handling Responses

Task Submitted Successfully

Video Generation Completed

Polling Recommendations

Recommended polling strategy:
  • Polling interval: 10-15 seconds
  • Maximum wait time: 30 minutes
  • Recommended to implement exponential backoff strategy

Next Steps

API Reference

View complete API documentation

Code Examples

View examples in more programming languages