Google Veo 3.1 API
Google Veo 3.1 视频生成模型,支持文生视频、首尾帧图生视频、参考图生成、音频生成及 720p、1080p、4K 输出。
What is Veo 3.1
Veo 3.1 is Google's video generation model family released on November 17, 2025. It supports text-to-video, image-to-video, first/last-frame generation, reference-image guidance, and native audio output. Official specs: 4/6/8-second clips at 24fps in MP4, 720p/1080p/4K resolutions, and up to 4 videos per prompt.
Roko exposes Veo 3.1 through the /v1/videos/tasks asynchronous API. All three routes (text-to-video, image-to-video, reference-to-video) currently route to the veo-3.1-fast-generate-preview submodel — the official Fast tier, which favors speed. Differences against the official Quality tier (veo-3.1-generate-001) are not benchmarked here; validate on your own prompts.
Pricing follows the Roko public catalog: billed per output second times result count. 720p/1080p costs $0.1034/sec without audio or $0.154/sec with generated audio; 4K costs $0.308 or $0.3608 respectively. Each result is billed for at least 4 seconds. Google's own API rates differ and are not interchangeable.
Model pricing
Pricing follows the current production configuration and the billing dimensions supported by each route.
| Route | Price | Billing rule |
|---|---|---|
| 720p / 1080p | 无音频 $0.1034/sec生成音频 $0.154/sec | 按输出秒数与结果数 |
| 4K | 无音频 $0.308/sec生成音频 $0.3608/sec | 按输出秒数与结果数 |
Cost estimate examples
Examples are recomputed from Roko catalog rates; actual charges follow the task's terminal state and the pricing page.
8s × $0.1034/s = $0.8272
A common tier for social-media batch footage; disabling audio lowers cost.
2 results × 8s × $0.154/s = $2.464
Two candidates from one prompt with audio baked in — no separate dubbing pass.
4s × $0.3608/s = $1.4432
4 seconds is the minimum billing duration; shorter requests still bill 4 seconds.
Model information
Only provider-documented routes, capabilities, and limits implemented by this gateway are listed.
veo-3.1-fast-generate-preview
- Limits
- —
- Duration
- 4s / 6s / 8s
veo-3.1-fast-generate-preview
- Limits
- Images 1–3
- Duration
- 4s / 6s / 8s
veo-3.1-fast-generate-preview
- Limits
- Images 1–3
- Duration
- 4s / 6s / 8s
Key capabilities
Native audio in one pass
Veo 3.1 generates ambience, sound effects, and dialogue in the same inference pass. Audio is on by default and can be disabled via generate_audio to lower the per-second rate from $0.154 to $0.1034 (720p/1080p).
Reference-image guidance (up to 3)
The reference-to-video route accepts 1–3 reference images to constrain character, object, or scene consistency; image-to-video takes 1–3 input images as well. Per Google's docs the reference route produces 8-second clips; defer to actual task results.
720p/1080p/4K resolutions
Default output is 720p. 4K carries a higher per-second rate ($0.308 without audio, $0.3608 with audio) and suits footage that will be cropped or shown on large screens; 720p/1080p fits high-volume social content.
Batch n=1–4
A single prompt can request up to 4 results. Billing accumulates as seconds per result times result count, which suits picking the best take from one prompt. Failed tasks settle under the platform refund rules; the terminal state governs.
Main parameters
Parameters come from structured model configuration; unsupported or unconfigured fields are omitted.
modelstringSubmodel ID
Default:veo-3.1-fast-generate-preview / veo-3.1-fast-generate-preview / veo-3.1-fast-generate-previewpromptstringGoogle Veo 3.1 视频生成模型,支持文生视频、首尾帧图生视频、参考图生成、音频生成及 720p、1080p、4K 输出。
Default:RequireddurationintegerOutput video seconds
Default:4s / 6s / 8squalityenumCurrent billing
Default:720p / 1080p / 4kaspect_ratioenumCapability
Default:auto / 16:9 / 9:16nintegerCapability
Default:1 / 2 / 3 / 4generate_audiobooleanCapability
Default:trueimage_urlsarrayImage to video: 1–3 · Reference to video: 1–3
Default:Varies by routeCapabilities and usage guidance
Key features
- Text to video · veo-3.1-fast-generate-preview
- Image to video · veo-3.1-fast-generate-preview
- Reference to video · veo-3.1-fast-generate-preview
- 720p / 1080p / 4k output
- 4s / 6s / 8s Duration
- Generated audio output
- Audio-capable workflow
Limits
- Image to video: Images 1–3
- Reference to video: Images 1–3
- Capability source: https://evolink.ai/zh/veo-3-1
Limits and caveats
- Clips run 4/6/8 seconds; longer videos are not generated in one call. Google offers video extension, but that route is not listed in Roko's current catalog.
- All three routes currently route to veo-3.1-fast-generate-preview (Fast tier); quality differences against the official Quality tier are not benchmarked here.
- Billing uses at least 4 seconds per result; batch n multiplies total cost linearly at the same unit rate.
- Generated audio is on by default; explicitly disabling it lowers the per-second rate.
- Output links expire after a validity window — rehost assets promptly.
How to call it
- POST /v1/videos/tasks with model set to veo-3.1 plus prompt, duration, resolution, and aspect_ratio; the response returns a task_id.
- Poll GET /v1/tasks/{task_id} until the status reaches a terminal state (succeeded or failed).
- On success, read the video URL from the task result. Roko output links expire — rehost promptly.
- On failure, read the error, adjust the prompt or parameters, and resubmit with the same flow. Failed tasks settle under the platform refund rules.
- A successful submit only means the task was accepted, not that generation succeeded; the terminal state decides.
Typical use cases
Ads and social clips
Input: product or scene prompt plus 16:9/9:16; action: 4–8s clips with audio and n=2–4 candidates; expectation: publish-ready footage; limit: 8 seconds per clip — longer narratives need stitching.
Reference-driven character consistency
Input: 1–3 character/scene reference images; action: generate via reference-to-video; expectation: consistent character and style across shots; limit: results depend on reference quality — verify with real runs.
4K masters
Input: high-detail prompt; action: 4K tier with audio on or off; expectation: high-resolution masters ready for editing and grading; limit: 4K costs roughly 3× the 720p rate — validate prompts at 720p first.
Choosing against other video models on Roko
A coarse split by billing model and workflow; final decisions should rely on each catalog and your own tests.
Veo 3.1 vs Gemini Omni
Veo bills per output second with rates you can precompute, fitting fixed-spec batch production. Gemini Omni bills in tokens and focuses on conversational editing and multi-input workflows; costs settle from task usage.
Veo 3.1 vs Grok Imagine Video 1.5
The Grok channel bills fixed per request (from $0.099 for 6–10s), cheaper for short clips; Veo offers wider duration options, a 4K ceiling, and larger batches.
Fast vs Quality tier
Roko currently serves the Fast tier for speed. Projects with hard quality bars should run small-scale tests before committing.
Frequently asked questions
What model ID does Veo 3.1 use on Roko?
Submit with model set to veo-3.1; the gateway routes by mode to the veo-3.1-fast-generate-preview submodel. The actual submodel is whatever the task response reports.
How much does one Veo 3.1 video cost?
Output seconds × results: 720p/1080p at $0.1034/s (no audio) or $0.154/s (generated audio); 4K at $0.308 or $0.3608; minimum 4 seconds per result. An 8-second 720p no-audio clip is $0.8272.
Which durations and resolutions are supported?
Durations 4, 6, and 8 seconds; resolutions 720p, 1080p, and 4K; aspect ratios 16:9, 9:16, or auto; up to 4 results per prompt. Subject to the current Roko catalog.
Can it generate audio?
Yes. Veo 3.1 generates ambience, effects, and dialogue natively, on by default; generate_audio=false lowers the per-second rate.
How many reference images are allowed?
Roko's catalog accepts 1–3 images for both image-to-video and reference-to-video. Google's Vertex docs state the reference route produces 8-second clips; actual results govern.
Why isn't the video available right after submit?
Generation is asynchronous: POST /v1/videos/tasks returns a task_id, and you poll GET /v1/tasks/{task_id} to a terminal state before reading results. A successful submit only means acceptance.
Is there a free trial for Veo 3.1?
Roko bills API calls at the listed rates with no promised free quota. Sign up, top up, and call; any promotions depend on current site announcements.
Can outputs be used commercially?
Commercial suitability depends on input rights, generated content, Google's and Roko's terms, and applicable law. Google embeds C2PA content credentials in outputs; clear copyright, likeness, and compliance reviews before publishing.
Sources and verification scope
Upstream capability claims come from Google's official documentation; callable parameters, routes, and prices come from the current production catalog. Reviewed: 2026-10-08.
- Google AI for Developers: Veo 3.1 in the Gemini API Official capabilities: 4/6/8s, native audio, reference images
- Google Cloud: Veo 3.1 model card (Vertex AI) Official specs: durations, n<=4, 24fps, C2PA, release 2025-11-17
- Roko API video task docs Async submit, task query, and billing lifecycle on Roko
- Roko API model catalog Current routes, prices, and generation config
Models in this family
Explore other available variants from the same model family.
Other video models
Explore more models available through the unified asynchronous video task API.