Skip to main content
Before starting, please register for APIYI and obtain an API key at https://api.apiyi.com/token (copy token)

Generate Video in Three Steps

1

Submit Video Generation Task

Use your API key to call the submit endpoint
2

Record the Returned Task ID

The system will return task information
3

Query Generation Result

Use the task ID to query status

Authentication

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

Basic Request Examples

Simple Text Generation

Generation with Reference Images

Handling Responses

Task Submitted Successfully

Video Generation Complete

Polling Recommendations

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

Next Steps

Async API

View async API documentation, pricing, and code examples

VEO Overview

Return to VEO 3.1 product overview