Veo 3.1 API: Video With Sound From One Request
Generate Veo 3.1 clips by API with native audio, 4K, first and last frames and a negative prompt, with no cloud project. Code samples and options inside.
Updated 5 min read
The Veo 3.1 API turns a prompt into a short, finished shot with dialogue, ambience and effects rendered together with the picture, up to 4K. On Frameport you call Google's Veo 3.1, Veo 3.1 Fast and Veo 3.1 Lite with one API key and no cloud project, from $0.036 per second, and a clip that fails costs nothing.
This page covers the options of each Veo model, what sound does to the price, frames and reference pictures, the code for a first clip and the errors worth handling. If you searched for a Veo 3 API: the Veo models on sale here are the three 3.1 versions below.
Veo 3.1, Fast and Lite at a glance
The three take the same request. Veo 3.1 Fast keeps every control of the full model for a lower price per second; Veo 3.1 Lite is the most economical Veo.
| Veo 3.1 | Veo 3.1 Fast | Veo 3.1 Lite | |
|---|---|---|---|
| Model id | veo-3-1 | veo-3-1-fast | veo-3-1-lite |
| Resolutions | 720p, 1080p and 4K | 720p, 1080p and 4K | 720p and 1080p |
| Default resolution | 1080p | 720p | 720p |
| Clip length | 4, 6 or 8 seconds | 4, 6 or 8 seconds | 4, 6 or 8 seconds |
| Aspect ratios | 16:9 and 9:16 | 16:9 and 9:16 | 16:9 and 9:16 |
| Sound | On or off, priced apart | On or off, priced apart | On or off, priced apart |
| What it does | Text to video, Image to video and First + last frame | Text to video, Image to video and First + last frame | Text to video, Image to video and First + last frame |
| Reference pictures | 3 | 3 | 0 |
| From | $0.235 / s | $0.093 / s | $0.036 / s |
All three take a seed and a negative_prompt. A request without duration gets 4 seconds, and a length off the grid is refused with 400 invalid_request before anything is held, with the lengths the model takes in the message. The Veo 3.1 model page lists the same options with a request body for each mode.
Your first Veo 3.1 API request
The key is a Frameport key, not a Google key: it starts with fp_live_ and calls every model in the catalog. Submit the request, poll the generation until it settles, then download the file. The submit answers at once with 202 Accepted and the price held.
# 1. Submit: the price is held on your balance (reserved_usd)
curl https://frameport.ai/v1/videos/generations \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "veo-3-1",
"prompt": "A lighthouse keeper climbs the spiral stairs at dusk, slow push-in; wind howling, footsteps ringing on iron. He mutters: \"One more night.\"",
"duration": 8,
"resolution": "1080p",
"aspect_ratio": "16:9",
"negative_prompt": "text, subtitles, watermark"
}'
# 2. Poll with the id it returns, until "succeeded" or "failed"
curl https://frameport.ai/v1/videos/generations/$GENERATION_ID \
-H "Authorization: Bearer $FRAMEPORT_API_KEY"
# 3. Download outputs[0].url once it has succeeded (a signed link, no key needed)
curl -L "$OUTPUT_URL" -o lighthouse.mp4{
"id": "gen_9sLq2VbX7mN4kR1tYc8WpE",
"object": "generation",
"type": "video",
"model": "veo-3-1",
"status": "queued",
"input": {
"prompt": "A lighthouse keeper climbs the spiral stairs at dusk, slow push-in; wind howling, footsteps ringing on iron. He mutters: \"One more night.\"",
"duration": 8,
"resolution": "1080p",
"aspect_ratio": "16:9",
"audio": true,
"reference_images": 0,
"end_image": false,
"negative_prompt": "text, subtitles, watermark"
},
"reserved_usd": 3.72,
"cost_usd": null,
"outputs": [{ "id": "file_2Tn7XcQ9vLm4Ra8Ws1KbZd", "status": "queued" }],
"error": null,
"created_at": "2026-11-28T10:00:00.000Z",
"completed_at": null
}Describe the sound with the same care as the image: "rain drumming on a tin roof, a kettle about to whistle" gets you further than "ambient sounds". Keep dialogue short, in quotes and attributed: one or two lines fill a clip. Think in shots, not scenes, with one beat per clip.
The Veo 3.1 prompt guide goes further, with examples.
Veo 3.1 sound on or off, and what it changes
Sound is on unless you send "audio": false. On every Veo model it is priced apart, so a silent clip bills the lower rate. Turn it off for B-roll you will score in the edit.
| Resolution | Per second, sound on | Per second, silent | 8 s with sound | 8 s silent |
|---|---|---|---|---|
| 720p | $0.465 | $0.235 | $3.72 | $1.88 |
| 1080p | $0.465 | $0.235 | $3.72 | $1.88 |
| 4K | $0.695 | $0.465 | $5.56 | $3.72 |
The quote's breakdown says "with sound" when the sound rate applies, so you can check which rate a body gets before you send it.
Veo 3.1 resolutions and clip lengths: Fast and Lite compared
Veo 3.1 renders 720p, 1080p and 4K, Veo 3.1 Fast the same, and Veo 3.1 Lite 720p and 1080p. Every one makes clips of 4, 6 or 8 seconds. The same 8-second clip at 1080p on each:
| Model | Sound on | Silent | Top resolution |
|---|---|---|---|
| Veo 3.1 | $3.72 | $1.88 | 4K |
| Veo 3.1 Fast | $1.12 | $0.96 | 4K |
| Veo 3.1 Lite | $0.744 | $0.48 | 1080p |
Prompts carry over between the three, so a common pattern is to iterate on Fast or Lite and render the keeper on Veo 3.1. Veo takes 16:9 and 9:16; any other aspect ratio is refused before anything is held.
Which tier fits which job is weighed in Veo 3.1 vs Fast vs Lite.
The lightest tier has a page of its own: the Veo 3.1 Lite API.
First and last frame, reference pictures, negative prompt
- First frame. One picture in
reference_imagesand the clip starts on it. Describe only the motion: the frame sets the subject and the scene. - First and last frame. Add
end_imageand the clip lands on that picture, on all three models. - Reference pictures. With
"reference_mode": "identity", up to 3 pictures show who or what to keep, and the prompt says what happens. Veo 3.1 Lite takes 0: on Lite, a picture can only be a frame. - Negative prompt. Put what must not appear in
negative_prompt, up to 1,000 characters, rather than negating inside the prompt.
A picture is an https URL, a base64 data URI, an upload or one of your image outputs (file_…). The videos reference shows each body.
Price a Veo 3.1 clip before you run it
A clip costs the rate of its resolution, with or without sound, times its length. It is held when you submit (reserved_usd), charged when it succeeds (cost_usd), and given back when it fails. POST /v1/generations/quote takes the body you would send and returns the price without holding anything:
curl https://frameport.ai/v1/generations/quote \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "veo-3-1", "duration": 8, "resolution": "4K", "audio": false}'{
"object": "quote",
"model": "veo-3-1",
"type": "video",
"mode": "generate",
"price_usd": 3.72,
"reserved_usd": 3.72,
"breakdown": "8 s at 4K × $0.465/s",
"available_usd": 42.5,
"enough_balance": true
}There is no subscription: a balance starts from $10 and every model draws on it (pricing).
Every rate by tier, with what a clip and a minute cost, is in Veo 3.1 API pricing.
Errors and refusals you can meet
Every error has the same shape, a stable code and a request_id. Anything refused before the job starts holds nothing.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | A length, resolution or shape off the model's grid, a reference picture sent to Lite, or end_image with identity mode. The message names the field. |
| 400 | content_policy | The model's maker refused the prompt. Nothing is charged. |
| 400 | content_filtered | Your workspace's content filter refused the prompt. Nothing is charged. |
| 402 | insufficient_balance | The balance does not cover the hold. |
| 429 | rate_limited | Past 60 requests that start work a minute: wait for Retry-After. |
| 503 | model_unavailable | The model is down for now: retry later with the same Idempotency-Key. |
Veo keeps Google's own content policy whatever your workspace settings are. A job refused after it started shows status: "failed" with its reason, and cost_usd is 0. The errors reference lists every code, and the text to video API guide compares Veo with the other video models. Searching for Veo 3 access? Veo 3 API access is the shortest road to a first clip. What Google embeds in a Veo clip is covered in AI video watermarks.
FAQ
How much does the Veo 3.1 API cost?
$0.465 per second at 1080p with sound and $0.235 silent, so an 8-second clip at 1080p with sound costs $3.72. Fast and Lite cost less per second, and a clip is charged only if it succeeds.
Do I need a Google API key or a cloud project to use Veo 3.1?
No. One Frameport API key calls Veo 3.1, Fast and Lite and every other model in the catalog, paid from one balance in dollars.
How long can a Veo 3.1 clip be?
4, 6 or 8 seconds. A request without duration gets 4 seconds.
Does Veo 3.1 render 4K?
Yes, Veo 3.1 and Veo 3.1 Fast render up to 4K; Veo 3.1 Lite stops at 1080p.
Is there a free Veo 3.1 API?
The account and the key are free, and quotes cost nothing. Clips are paid from a prepaid balance with no subscription, and a clip that fails costs nothing. You can try Veo 3.1 online or open it in the Studio before writing code.