Skip to main content
Async API: Best for batch processing scenarios. Submit tasks and retrieve results via polling. For real-time interaction, use the synchronous API.

Models & Pricing

VEO 3.1 offers 8 model variants with the following naming convention:
  • Base name: veo-3.1
  • -landscape: Landscape mode (1280x720), default is portrait (720x1280)
  • -fast: Fast generation, quicker speed and lower price
  • -fl: Frame-to-Video mode, supports first/last frame input
Pay on success: Only charged for successfully generated videos. All models generate 8-second videos with auto-generated audio tracks.

API Endpoints

1. Create Video Task

Create an async video generation task
Request Headers
Request Parameters
string
必填
Text description for video generation
string
必填
Model name, e.g., veo-3.1, veo-3.1-fast, etc.
Request Examples
Response Example

2. Query Task Status

Query the current status of a video generation task
Path Parameters
string
必填
Video task ID (returned from the create endpoint)
Request Examples
Status Reference

3. Get Video Content

Get the actual content of a generated video
Request Examples
Response Example
Video URLs are typically valid for 24 hours. Download and save promptly.

Complete Workflow

1

Create Task

Call POST /v1/videos to create a video generation task and get the video_id
2

Poll Status

Use GET /v1/videos/{video_id} to poll task status (recommended: every 5-10 seconds) until status is completed
3

Get Video

Call GET /v1/videos/{video_id}/content to get the video URL
4

Download Video

Download and save the video file from the returned URL

Python Complete Example

Frame-to-Video Mode

Models with the -fl suffix support frame-to-video functionality, converting static images into dynamic videos.

Request Parameters

Frame-to-video requests require multipart/form-data format (not JSON) because image files need to be uploaded.
string
必填
Video description. Describe how the scene should move (e.g., “camera slowly zooms in”, “person walks forward”)
string
必填
Must use a model with -fl suffix, e.g., veo-3.1-fl, veo-3.1-landscape-fl
file
必填
Image file. Pass once for first-frame mode, twice for first-and-last-frame mode

First Frame Mode (Single Image)

Use one image as the video start, AI automatically generates the continuation.

First & Last Frame Mode (Two Images)

Specify the start and end frames, AI generates the transition animation between them.

Response & Next Steps

The response format is the same as text-to-video. After receiving video_id, poll for results:
For subsequent steps, refer to the Complete Workflow section above.

Usage Recommendations

First Frame Mode Use Cases

  • Bring static images to life
  • Product showcase animations
  • Generate dynamic video from portraits

First & Last Frame Use Cases

  • Scene transitions (day→night, seasonal changes)
  • Expression change animations
  • Object morphing transitions
Prompt Tips: When using frame-to-video, describe “how the scene moves” rather than “what’s in the scene”. Examples: “camera slowly zooms in”, “person turns head and smiles”, “flower gradually blooms”.

Error Handling

Error Response Format

FAQ

  • Best value: Choose -fast series ($0.15/video)
  • Quality first: Choose standard series ($0.25/video)
  • Image-to-video: Choose -fl series
  • Landscape content: Choose -landscape series
  • Fast models (-fast): ~30-60 seconds
  • Standard models: ~1-2 minutes
Recommended polling interval: 5-10 seconds.
Video URLs are typically valid for 24 hours. Download and save promptly after generation.
For bulk usage, contact support for enterprise pricing: feedback@apiyi.com

Technical Specifications