Skip to main content
Veo is not available on LaoZhang API right now (checked November 16, 2026). Moving the token to another group does not help; requests return 503 Current group default has no available channels. For video with sound, use one of these instead:
  • Gemini Omni 1.2 Flash: Google’s video model. Every clip has an audio track, characters speak the lines in your prompt, and clips run 3–10 seconds.
  • Muse: every clip comes with music and sound effects, up to 60 seconds per request.
Both take a default group token on /v1/videos. Prices for every video model are in Compare video APIs.

Before You Begin

1

Get API Key

Log in to LaoZhang API Console to create an API Key
Important: These models use per-call billing. Select the Per-call (按次计费) billing mode when you create the token.
2

Ensure Account Balance

Make sure your account has sufficient balance. Veo-3.1 models charge per request ($0.15-$0.25/request)

Your First Request

Text-to-Video Example

Use cURL to quickly test text-to-video functionality:
Parameter explanation:
  • model: Select veo-3.1 series model
  • stream: Set to true to enable streaming response
  • n: Number of results to generate, setting to 2 will generate 2 different videos

Image-to-Video Example

Use images as reference to generate videos:

Python Quick Example

Install OpenAI SDK

Text-to-Video Code

Image-to-Video Code

Node.js Quick Example

Install OpenAI SDK

Basic Usage

Streaming Response Handling

Veo-3.1 supports streaming responses for real-time generation progress and results:

Image Format Support

Veo-3.1 supports multiple image input formats:
Sync API must use Base64 encoded images, http/https URLs are not supported.Image requirements:
  • Supported formats: JPEG, PNG, WebP
  • Maximum size: 10MB
  • Recommended resolution: 1024x1024 or higher
  • Maximum images: 2 (start frame + end frame)

Common Model Selection

Choose the appropriate model based on your needs:

Quick Testing

Recommended: veo-3.1-fastSuitable for quickly validating ideas, console price shown before request

Standard Quality

Recommended: veo-3.1Balances quality and cost, suitable for most scenarios ($0.25/request)

Image-to-Video

Recommended: veo-3.1-flGenerate videos or transition animations based on images ($0.25/request)

Landscape Video

Recommended: veo-3.1-landscapeProfessional landscape format, suitable for film production ($0.25/request)

Error Handling

Get Help

Technical Support

Having issues? Contact technical support

Telegram Community

Join the community for discussions