Veo 3.1 Fast API, Veo 3.1 Lite API, Veo 3.1 Standard API: Pricing, Documentation
by Google
Veo by Google represents cutting-edge AI video generation with exceptional quality and understanding of physical world dynamics. Through Pixazo's API, developers can access Veo 3.1 for generating videos that accurately depict motion, lighting, and real-world physics. The API leverages Google's DeepMind research to produce videos with remarkable realism, suitable for professional video production and creative applications.
Models Version
Get 10% Cashback on Your First Payment (up to $500)
Add funds and get 10% cashback on your first payment (up to $500).
Veo 3.1 Lite API Documentation
Describe a scene and get a video of it, with sound generated to match. Veo 3.1 Lite is the fastest, lowest-cost Veo 3.1 model: 4, 6 or 8 second videos at 720p or 1080p, landscape or portrait. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED, then download the video from output.media_url.
POST https://gateway.pixazo.ai/veo-3-1-lite/v1/text-to-videoThe other Veo 3.1 Lite modes: POST https://gateway.pixazo.ai/veo-3-1-lite/v1/image-to-video (image to video) and POST https://gateway.pixazo.ai/veo-3-1-lite/v1/first-last-frame-to-video (first & last frame to video).
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Video - Veo 3.1 Lite
Request Code
POST https://gateway.pixazo.ai/veo-3-1-lite/v1/text-to-video
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "A slow cinematic push-in on a lone oak tree in a wide field, soft wind moving the grass, gentle ambient sound"
}import requests
url = "https://gateway.pixazo.ai/veo-3-1-lite/v1/text-to-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"prompt": "A slow cinematic push-in on a lone oak tree in a wide field, soft wind moving the grass, gentle ambient sound"
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/veo-3-1-lite/v1/text-to-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"prompt": "A slow cinematic push-in on a lone oak tree in a wide field, soft wind moving the grass, gentle ambient sound"
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/veo-3-1-lite/v1/text-to-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"prompt": "A slow cinematic push-in on a lone oak tree in a wide field, soft wind moving the grass, gentle ambient sound"}'Output
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Example: enable Webhook
curl -X POST 'https://gateway.pixazo.ai/veo-3-1-lite/v1/text-to-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
-H 'X-Webhook-URL: https://your-server.com/webhook' \
--data-raw '{"prompt": "A slow cinematic push-in on a lone oak tree in a wide field, soft wind moving the grass, gentle ambient sound"}'Callback Payload (success)
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "veo-3-1-lite",
"error": null,
"output": {
"media_url": [
"https://cdn.pixazo.ai/v1/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-27T12:16:43.059Z",
"updated_at": "2026-11-27 12:17:56",
"completed_at": "2026-11-27 12:17:55"
}Failure callback shape
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "veo-3-1-lite",
"error": "Description of the failure"
}Delivery semantics
- terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
- sync mode: a Webhook callback on every poll while the request is processing (status PROCESSING), plus the final COMPLETED/ERROR callback.
- Callbacks are idempotent on
request_id— de-duplicate on it. - Respond
200within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | Text, in English |
| What happens in the video: the subject, the action, the setting, the camera and the sound. Only adult people are generated. | ||||
duration | No | integer | 8 | 4, 6, 8 |
| Length of the video in seconds. | ||||
aspect_ratio | No | string | "16:9" | "16:9" (landscape), "9:16" (portrait) |
| The shape of the video. | ||||
resolution | No | string | "720p" | "720p", "1080p" |
| The size of the video. 1080p works at every duration. | ||||
generate_audio | No | boolean | true | true, false |
Generate sound with the video (speech, sound effects, ambience or music, as the prompt describes). Set false for a video without generated sound. | ||||
negative_prompt | No | string | — | Text |
| What to keep out of the video. | ||||
seed | No | integer | random | 0 to 4,294,967,295 |
| Send the same seed with the same request to get the same or a very similar video again. | ||||
How long the video is
Exactly duration seconds (4, 6 or 8; 8 when left out), one video per request.
How usage is measured
Billed per second of the video, at the rate for its resolution, which is higher with sound on. The charge is the duration you ask for times that rate, reserved from your balance when you submit; a request that sets nothing is 8 seconds at 720p with sound. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why |
|---|---|
prompt left out | Required. |
aspectRatio | Not supported: use aspect_ratio ("16:9" or "9:16"). |
content, text | Not supported: put the description in prompt. |
first_frame_url, last_frame_url | Not used by text-to-video: send it to /first-last-frame-to-video instead. |
generateAudio | Not supported: use generate_audio (true or false; default true). |
generate_audio_switch | Not supported by Veo 3.1 Lite: use generate_audio (true or false; default true). |
image | Not supported: send the picture as image_url to /image-to-video, or as first_frame_url to /first-last-frame-to-video. |
image_url | Not used by text-to-video: send it to /image-to-video instead. |
image_urls | Not supported: send one picture as image_url to /image-to-video. |
instances | Not supported: send prompt and the other settings at the top level. |
last_frame | Not supported: send first_frame_url and last_frame_url to /first-last-frame-to-video. |
n, num_outputs, num_videos, num_images, number_of_images, batch_size, count, sample_count, sampleCount | Not supported: Veo 3.1 Lite returns one video per request. Send one request per video. |
negativePrompt | Not supported: use negative_prompt. |
num_frames, frames_per_second, music_length_ms | Not a field of this API. |
parameters | Not supported: send each setting at the top level (duration, resolution, aspect_ratio, generate_audio, negative_prompt, seed). |
reference_images | Not supported: Veo 3.1 Lite has no reference-images mode. |
seconds, durationSeconds | Not supported: use duration (4, 6 or 8; default 8). |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR". Nothing is charged.
| Parameter | When the request fails |
|---|---|
prompt | The safety filters block the video. The reason is in error. |
Accepted but ignored
Any other parameter is dropped and has no effect.
The output video
output.media_url is one MP4 at 24 frames per second, with the generated sound unless you set generate_audio to false.
Measured at launch:
| Request | Size | Length | Frame rate | Sound |
|---|---|---|---|---|
| Text to Video, 8 s, 720p, 16:9, sound on | 1280×720 | 8.00 s | 24 fps | Yes |
| Text to Video, 4 s, 720p, 9:16, sound off | 720×1280 | 4.00 s | 24 fps | No |
| Image to Video, 4 s, 720p, 16:9, sound on | 1280×720 | 4.01 s | 24 fps | Yes |
| First & Last Frame to Video, 4 s, 1080p, 16:9, sound off | 1920×1080 | 4.00 s | 24 fps | No |
Timing
At launch, the 4 test requests (4 and 8 second videos) each took about 40 seconds to 2 minutes from submit to completion. Polling the status endpoint every 10 seconds is enough, or use a Webhook.
Example Request
{
"prompt": "A slow cinematic push-in on a lone oak tree in a wide field, soft wind moving the grass, gentle ambient sound"
}Example Response
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
| X-Webhook-Mode | No | terminal (default) or sync (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance for the hold this request needs. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations.
Duration 5: sent {"prompt": "A slow cinematic push-in on a lone oak tree in a wide field, soft wind moving the grass, gentle ambient sound", "duration": 5}
{
"error": "Invalid request parameters",
"message": "'duration' must be one of: 4, 6, 8 (got 5)",
"violations": [
"'duration' must be one of: 4, 6, 8 (got 5)"
]
}Duration "8" (a string): sent {"prompt": "A slow cinematic push-in on a lone oak tree in a wide field, soft wind moving the grass, gentle ambient sound", "duration": "8"}
{
"error": "Invalid request parameters",
"message": "'duration' must be integer (got string)",
"violations": [
"'duration' must be integer (got string)"
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the video from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Veo 3.1 Lite request at launch; the request id is masked.
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "veo-3-1-lite",
"error": null,
"output": {
"media_url": [
"https://cdn.pixazo.ai/v1/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-27T12:16:43.059Z",
"updated_at": "2026-11-27 12:17:56",
"completed_at": "2026-11-27 12:17:55"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the MP4 (one per request). Download it and keep your own copy. |
| output.media_type | string | video/mp4. |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).
Typical workflow
- Send the request to
POST https://gateway.pixazo.ai/veo-3-1-lite/v1/text-to-video. - Save the
request_idfrom the202response. - Poll
GET /v2/requests/status/{request_id}every 10 seconds, or use a Webhook instead. - When
statusisCOMPLETED, download the video fromoutput.media_url.
Veo 3.1 Lite API Pricing — Per-Second Rates
Billed per second of video, by resolution and whether sound is on. A request that sets nothing makes an 8-second 720p video with sound. Nothing is charged for a request that fails.
| Resolution · Audio | Price (USD) |
|---|---|
| 720p, audio off | $0.0315/sec |
| 720p, audio on | $0.0525/sec |
| 1080p, audio off | $0.0525/sec |
| 1080p, audio on | $0.084/sec |
Veo 3.1 Lite API Documentation
Bring a picture to life: the video starts on your image and moves the way your prompt describes, with sound generated to match. Veo 3.1 Lite is the fastest, lowest-cost Veo 3.1 model: 4, 6 or 8 second videos at 720p or 1080p, landscape or portrait. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED, then download the video from output.media_url.
POST https://gateway.pixazo.ai/veo-3-1-lite/v1/image-to-videoThe other Veo 3.1 Lite modes: POST https://gateway.pixazo.ai/veo-3-1-lite/v1/text-to-video (text to video) and POST https://gateway.pixazo.ai/veo-3-1-lite/v1/first-last-frame-to-video (first & last frame to video).
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Image to Video - Veo 3.1 Lite
Request Code
POST https://gateway.pixazo.ai/veo-3-1-lite/v1/image-to-video
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "Snow begins to fall softly around the oak, a light breeze, quiet winter ambience",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png",
"duration": 4
}import requests
url = "https://gateway.pixazo.ai/veo-3-1-lite/v1/image-to-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"prompt": "Snow begins to fall softly around the oak, a light breeze, quiet winter ambience",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png",
"duration": 4
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/veo-3-1-lite/v1/image-to-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"prompt": "Snow begins to fall softly around the oak, a light breeze, quiet winter ambience",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png",
"duration": 4
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/veo-3-1-lite/v1/image-to-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"prompt": "Snow begins to fall softly around the oak, a light breeze, quiet winter ambience", "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png", "duration": 4}'Output
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Example: enable Webhook
curl -X POST 'https://gateway.pixazo.ai/veo-3-1-lite/v1/image-to-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
-H 'X-Webhook-URL: https://your-server.com/webhook' \
--data-raw '{"prompt": "Snow begins to fall softly around the oak, a light breeze, quiet winter ambience", "image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png", "duration": 4}'Callback Payload (success)
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "veo-3-1-lite",
"error": null,
"output": {
"media_url": [
"https://cdn.pixazo.ai/v1/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-27T12:16:52.542Z",
"updated_at": "2026-11-27 12:18:06",
"completed_at": "2026-11-27 12:18:06"
}Failure callback shape
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "veo-3-1-lite",
"error": "Description of the failure"
}Delivery semantics
- terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
- sync mode: a Webhook callback on every poll while the request is processing (status PROCESSING), plus the final COMPLETED/ERROR callback.
- Callbacks are idempotent on
request_id— de-duplicate on it. - Respond
200within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | Text, in English |
| What happens after the first frame: the motion, the camera and the sound. Only adult people are generated. | ||||
image_url | Yesrequired | string | — | A public http(s) URL of a PNG or JPEG image, up to 20 MB |
| The first frame of the video. For the best result use a picture of 1280×720 or larger in the video's shape (16:9, or 9:16 for portrait); a picture of another shape is cropped or resized to fit. | ||||
duration | No | integer | 8 | 4, 6, 8 |
| Length of the video in seconds. | ||||
aspect_ratio | No | string | "16:9" | "16:9" (landscape), "9:16" (portrait) |
The shape of the video. Send the shape of your picture: a portrait picture needs "9:16". | ||||
resolution | No | string | "720p" | "720p", "1080p" |
| The size of the video. 1080p works at every duration. | ||||
generate_audio | No | boolean | true | true, false |
Generate sound with the video (speech, sound effects, ambience or music, as the prompt describes). Set false for a video without generated sound. | ||||
negative_prompt | No | string | — | Text |
| What to keep out of the video. | ||||
seed | No | integer | random | 0 to 4,294,967,295 |
| Send the same seed with the same request to get the same or a very similar video again. | ||||
How long the video is
Exactly duration seconds (4, 6 or 8; 8 when left out), one video per request.
How usage is measured
Billed per second of the video, at the rate for its resolution, which is higher with sound on. The charge is the duration you ask for times that rate, reserved from your balance when you submit; a request that sets nothing is 8 seconds at 720p with sound. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why |
|---|---|
prompt or image_url left out | Required. |
aspectRatio | Not supported: use aspect_ratio ("16:9" or "9:16"). |
content, text | Not supported: put the description in prompt. |
first_frame_url | Not used by image-to-video: send image_url, or use /first-last-frame-to-video for a first and a last frame. |
generateAudio | Not supported: use generate_audio (true or false; default true). |
generate_audio_switch | Not supported by Veo 3.1 Lite: use generate_audio (true or false; default true). |
image | Not supported: send the picture as image_url to /image-to-video, or as first_frame_url to /first-last-frame-to-video. |
image_urls | Not supported: send one picture as image_url to /image-to-video. |
instances | Not supported: send prompt and the other settings at the top level. |
last_frame | Not supported: send first_frame_url and last_frame_url to /first-last-frame-to-video. |
last_frame_url | Not used by image-to-video: use /first-last-frame-to-video for a first and a last frame. |
n, num_outputs, num_videos, num_images, number_of_images, batch_size, count, sample_count, sampleCount | Not supported: Veo 3.1 Lite returns one video per request. Send one request per video. |
negativePrompt | Not supported: use negative_prompt. |
num_frames, frames_per_second, music_length_ms | Not a field of this API. |
parameters | Not supported: send each setting at the top level (duration, resolution, aspect_ratio, generate_audio, negative_prompt, seed). |
reference_images | Not supported: Veo 3.1 Lite has no reference-images mode. |
seconds, durationSeconds | Not supported: use duration (4, 6 or 8; default 8). |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR". Nothing is charged.
| Parameter | When the request fails |
|---|---|
prompt, image_url | The safety filters block the video. The reason is in error. |
Accepted but ignored
Any other parameter is dropped and has no effect.
The output video
output.media_url is one MP4 at 24 frames per second, with the generated sound unless you set generate_audio to false.
Measured at launch:
| Request | Size | Length | Frame rate | Sound |
|---|---|---|---|---|
| Text to Video, 8 s, 720p, 16:9, sound on | 1280×720 | 8.00 s | 24 fps | Yes |
| Text to Video, 4 s, 720p, 9:16, sound off | 720×1280 | 4.00 s | 24 fps | No |
| Image to Video, 4 s, 720p, 16:9, sound on | 1280×720 | 4.01 s | 24 fps | Yes |
| First & Last Frame to Video, 4 s, 1080p, 16:9, sound off | 1920×1080 | 4.00 s | 24 fps | No |
Timing
At launch, the 4 test requests (4 and 8 second videos) each took about 40 seconds to 2 minutes from submit to completion. Polling the status endpoint every 10 seconds is enough, or use a Webhook.
Example Request
{
"prompt": "Snow begins to fall softly around the oak, a light breeze, quiet winter ambience",
"image_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png",
"duration": 4
}Example Response
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
| X-Webhook-Mode | No | terminal (default) or sync (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance for the hold this request needs. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations.
Image-to-video without image_url: sent {"prompt": "A slow cinematic push-in on a lone oak tree in a wide field, soft wind moving the grass, gentle ambient sound", "duration": 4}
{
"error": "Invalid request parameters",
"message": "'image_url' is required",
"violations": [
"'image_url' is required"
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the video from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Veo 3.1 Lite request at launch; the request id is masked.
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "veo-3-1-lite",
"error": null,
"output": {
"media_url": [
"https://cdn.pixazo.ai/v1/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-27T12:16:52.542Z",
"updated_at": "2026-11-27 12:18:06",
"completed_at": "2026-11-27 12:18:06"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the MP4 (one per request). Download it and keep your own copy. |
| output.media_type | string | video/mp4. |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).
Typical workflow
- Send the request to
POST https://gateway.pixazo.ai/veo-3-1-lite/v1/image-to-video. - Save the
request_idfrom the202response. - Poll
GET /v2/requests/status/{request_id}every 10 seconds, or use a Webhook instead. - When
statusisCOMPLETED, download the video fromoutput.media_url.
Veo 3.1 Lite API Pricing — Per-Second Rates
Billed per second of video, by resolution and whether sound is on. A request that sets nothing makes an 8-second 720p video with sound. Nothing is charged for a request that fails.
| Resolution · Audio | Price (USD) |
|---|---|
| 720p, audio off | $0.0315/sec |
| 720p, audio on | $0.0525/sec |
| 1080p, audio off | $0.0525/sec |
| 1080p, audio on | $0.084/sec |
Veo 3.1 Lite API Documentation
Give the first and the last frame: the video starts on one picture, ends on the other, and your prompt describes what happens in between, with sound generated to match. Veo 3.1 Lite is the fastest, lowest-cost Veo 3.1 model: 4, 6 or 8 second videos at 720p or 1080p, landscape or portrait. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED, then download the video from output.media_url.
POST https://gateway.pixazo.ai/veo-3-1-lite/v1/first-last-frame-to-videoThe other Veo 3.1 Lite modes: POST https://gateway.pixazo.ai/veo-3-1-lite/v1/text-to-video (text to video) and POST https://gateway.pixazo.ai/veo-3-1-lite/v1/image-to-video (image to video).
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
First & Last Frame to Video - Veo 3.1 Lite
Request Code
POST https://gateway.pixazo.ai/veo-3-1-lite/v1/first-last-frame-to-video
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "The seasons change: snow melts away and the oak bursts into spring blossom",
"first_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png",
"last_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png",
"duration": 4,
"resolution": "1080p",
"generate_audio": false
}import requests
url = "https://gateway.pixazo.ai/veo-3-1-lite/v1/first-last-frame-to-video"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"prompt": "The seasons change: snow melts away and the oak bursts into spring blossom",
"first_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png",
"last_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png",
"duration": 4,
"resolution": "1080p",
"generate_audio": false
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/veo-3-1-lite/v1/first-last-frame-to-video", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"prompt": "The seasons change: snow melts away and the oak bursts into spring blossom",
"first_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png",
"last_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png",
"duration": 4,
"resolution": "1080p",
"generate_audio": false
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/veo-3-1-lite/v1/first-last-frame-to-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"prompt": "The seasons change: snow melts away and the oak bursts into spring blossom", "first_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png", "last_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png", "duration": 4, "resolution": "1080p", "generate_audio": false}'Output
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Example: enable Webhook
curl -X POST 'https://gateway.pixazo.ai/veo-3-1-lite/v1/first-last-frame-to-video' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
-H 'X-Webhook-URL: https://your-server.com/webhook' \
--data-raw '{"prompt": "The seasons change: snow melts away and the oak bursts into spring blossom", "first_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png", "last_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png", "duration": 4, "resolution": "1080p", "generate_audio": false}'Callback Payload (success)
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "veo-3-1-lite",
"error": null,
"output": {
"media_url": [
"https://cdn.pixazo.ai/v1/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-27T12:16:57.716Z",
"updated_at": "2026-11-27 12:18:47",
"completed_at": "2026-11-27 12:18:46"
}Failure callback shape
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "veo-3-1-lite",
"error": "Description of the failure"
}Delivery semantics
- terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
- sync mode: a Webhook callback on every poll while the request is processing (status PROCESSING), plus the final COMPLETED/ERROR callback.
- Callbacks are idempotent on
request_id— de-duplicate on it. - Respond
200within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | Text, in English |
| What happens between the two frames: the change, the camera and the sound. Only adult people are generated. | ||||
first_frame_url | Yesrequired | string | — | A public http(s) URL of a PNG or JPEG image, up to 20 MB |
| The video starts on this picture. For the best result use a picture of 1280×720 or larger in the video's shape (16:9, or 9:16 for portrait); a picture of another shape is cropped or resized to fit. | ||||
last_frame_url | Yesrequired | string | — | A public http(s) URL of a PNG or JPEG image, up to 20 MB |
| The video ends on this picture. Use the same shape as the first frame. | ||||
duration | No | integer | 8 | 4, 6, 8 |
| Length of the video in seconds. | ||||
aspect_ratio | No | string | "16:9" | "16:9" (landscape), "9:16" (portrait) |
The shape of the video. Send the shape of your picture: a portrait picture needs "9:16". | ||||
resolution | No | string | "720p" | "720p", "1080p" |
| The size of the video. 1080p works at every duration. | ||||
generate_audio | No | boolean | true | true, false |
Generate sound with the video (speech, sound effects, ambience or music, as the prompt describes). Set false for a video without generated sound. | ||||
negative_prompt | No | string | — | Text |
| What to keep out of the video. | ||||
seed | No | integer | random | 0 to 4,294,967,295 |
| Send the same seed with the same request to get the same or a very similar video again. | ||||
How long the video is
Exactly duration seconds (4, 6 or 8; 8 when left out), one video per request.
How usage is measured
Billed per second of the video, at the rate for its resolution, which is higher with sound on. The charge is the duration you ask for times that rate, reserved from your balance when you submit; a request that sets nothing is 8 seconds at 720p with sound. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why |
|---|---|
prompt or first_frame_url or last_frame_url left out | Required. |
aspectRatio | Not supported: use aspect_ratio ("16:9" or "9:16"). |
content, text | Not supported: put the description in prompt. |
generateAudio | Not supported: use generate_audio (true or false; default true). |
generate_audio_switch | Not supported by Veo 3.1 Lite: use generate_audio (true or false; default true). |
image | Not supported: send the picture as image_url to /image-to-video, or as first_frame_url to /first-last-frame-to-video. |
image_url | Not used by first-last-frame-to-video: send first_frame_url and last_frame_url. |
image_urls | Not supported: send one picture as image_url to /image-to-video. |
instances | Not supported: send prompt and the other settings at the top level. |
last_frame | Not supported: send first_frame_url and last_frame_url to /first-last-frame-to-video. |
n, num_outputs, num_videos, num_images, number_of_images, batch_size, count, sample_count, sampleCount | Not supported: Veo 3.1 Lite returns one video per request. Send one request per video. |
negativePrompt | Not supported: use negative_prompt. |
num_frames, frames_per_second, music_length_ms | Not a field of this API. |
parameters | Not supported: send each setting at the top level (duration, resolution, aspect_ratio, generate_audio, negative_prompt, seed). |
reference_images | Not supported: Veo 3.1 Lite has no reference-images mode. |
seconds, durationSeconds | Not supported: use duration (4, 6 or 8; default 8). |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR". Nothing is charged.
| Parameter | When the request fails |
|---|---|
prompt, first_frame_url, last_frame_url | The safety filters block the video. The reason is in error. |
Accepted but ignored
Any other parameter is dropped and has no effect.
The output video
output.media_url is one MP4 at 24 frames per second, with the generated sound unless you set generate_audio to false.
Measured at launch:
| Request | Size | Length | Frame rate | Sound |
|---|---|---|---|---|
| Text to Video, 8 s, 720p, 16:9, sound on | 1280×720 | 8.00 s | 24 fps | Yes |
| Text to Video, 4 s, 720p, 9:16, sound off | 720×1280 | 4.00 s | 24 fps | No |
| Image to Video, 4 s, 720p, 16:9, sound on | 1280×720 | 4.01 s | 24 fps | Yes |
| First & Last Frame to Video, 4 s, 1080p, 16:9, sound off | 1920×1080 | 4.00 s | 24 fps | No |
Timing
At launch, the 4 test requests (4 and 8 second videos) each took about 40 seconds to 2 minutes from submit to completion. Polling the status endpoint every 10 seconds is enough, or use a Webhook.
Example Request
{
"prompt": "The seasons change: snow melts away and the oak bursts into spring blossom",
"first_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png",
"last_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f2.png",
"duration": 4,
"resolution": "1080p",
"generate_audio": false
}Example Response
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
| X-Webhook-Mode | No | terminal (default) or sync (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance for the hold this request needs. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations.
First-last without last_frame_url: sent {"prompt": "A slow cinematic push-in on a lone oak tree in a wide field, soft wind moving the grass, gentle ambient sound", "first_frame_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/f1.png"}
{
"error": "Invalid request parameters",
"message": "'last_frame_url' is required",
"violations": [
"'last_frame_url' is required"
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the video from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Veo 3.1 Lite request at launch; the request id is masked.
{
"request_id": "veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "veo-3-1-lite",
"error": null,
"output": {
"media_url": [
"https://cdn.pixazo.ai/v1/veo-3-1-lite_01a2xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-11-27T12:16:57.716Z",
"updated_at": "2026-11-27 12:18:47",
"completed_at": "2026-11-27 12:18:46"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the MP4 (one per request). Download it and keep your own copy. |
| output.media_type | string | video/mp4. |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure).
Typical workflow
- Send the request to
POST https://gateway.pixazo.ai/veo-3-1-lite/v1/first-last-frame-to-video. - Save the
request_idfrom the202response. - Poll
GET /v2/requests/status/{request_id}every 10 seconds, or use a Webhook instead. - When
statusisCOMPLETED, download the video fromoutput.media_url.
Veo 3.1 Lite API Pricing — Per-Second Rates
Billed per second of video, by resolution and whether sound is on. A request that sets nothing makes an 8-second 720p video with sound. Nothing is charged for a request that fails.
| Resolution · Audio | Price (USD) |
|---|---|
| 720p, audio off | $0.0315/sec |
| 720p, audio on | $0.0525/sec |
| 1080p, audio off | $0.0525/sec |
| 1080p, audio on | $0.084/sec |
Veo 3.1 Fast API Documentation
https://gateway.pixazo.ai/veo31f/v1/veo-3.1-fast/generate
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Veo 3.1 Fast Video Generation Request - Veo 3.1 Fast API
Request Code
POST https://gateway.pixazo.ai/veo31f/v1/veo-3.1-fast/generate HTTP/1.1
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "A snow-covered tree gradually transforms as winter melts away, snow dripping from branches as green leaves emerge and colorful flowers bloom around the base, transitioning from a cold white landscape to a vibrant lush green meadow full of life",
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "1080p",
"negative_prompt": "blurry, low quality, distorted, artifacts, text, watermark",
"generate_audio": true,
"seed": 42
}
import requests
url = "https://gateway.pixazo.ai/veo31f/v1/veo-3.1-fast/generate"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"prompt": "A snow-covered tree gradually transforms as winter melts away, snow dripping from branches as green leaves emerge and colorful flowers bloom around the base, transitioning from a cold white landscape to a vibrant lush green meadow full of life",
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "1080p",
"negative_prompt": "blurry, low quality, distorted, artifacts, text, watermark",
"generate_audio": True,
"seed": 42
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/veo31f/v1/veo-3.1-fast/generate';
const headers = {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
};
const data = {
prompt: 'A snow-covered tree gradually transforms as winter melts away, snow dripping from branches as green leaves emerge and colorful flowers bloom around the base, transitioning from a cold white landscape to a vibrant lush green meadow full of life',
duration: 8,
aspect_ratio: '16:9',
resolution: '1080p',
negative_prompt: 'blurry, low quality, distorted, artifacts, text, watermark',
generate_audio: true,
seed: 42
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -X POST "https://gateway.pixazo.ai/veo31f/v1/veo-3.1-fast/generate" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"prompt": "A snow-covered tree gradually transforms as winter melts away, snow dripping from branches as green leaves emerge and colorful flowers bloom around the base, transitioning from a cold white landscape to a vibrant lush green meadow full of life",
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "1080p",
"negative_prompt": "blurry, low quality, distorted, artifacts, text, watermark",
"generate_audio": true,
"seed": 42
}'
Output
{
"request_id": "veo-3-1-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/veo-3-1-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "veo-3-1-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "veo-3-1-fast",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/veo-3-1-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "veo-3-1-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "veo-3-1-fast",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Veo 3.1 Fast Video Generation
This single endpoint covers three modes depending on which images you send: prompt only → text-to-video; + image → image-to-video (image is the starting frame); + image and last_frame → first→last-frame transition (both frames must share the same dimensions and aspect ratio).
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | — |
| Text prompt describing the desired video content, motion, mood, or style. | ||||
image | No | string | — | HTTP(S) URL |
Input image to start generating from (used as the first frame). Ideal images are 16:9 or 9:16 at 1280×720 or 720×1280, matching the aspect_ratio you choose. | ||||
last_frame | No | string | — | HTTP(S) URL |
Ending image for interpolation. When provided together with image, the model creates a transition from the first frame to this last frame. Requires image; for best results use the same dimensions and aspect ratio as image. | ||||
duration | No | integer | 8 | 4, 6, 8 (seconds) |
| Length of the generated video. | ||||
aspect_ratio | No | string | "16:9" | "16:9", "9:16" |
| Output aspect ratio. | ||||
resolution | No | string | "1080p" | "720p", "1080p" |
Output resolution. 1080p requires duration = 8. | ||||
negative_prompt | No | string | — | — |
| Elements to avoid (e.g. "blurry, low quality, distorted, artifacts, text, watermark"). | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio alongside the video. | ||||
seed | No | integer | — | — |
| Random seed that controls the generation's randomness. Reuse the same seed with identical settings to reproduce the same result; leave it empty for a different output each time. | ||||
Content Item Types & Limits
| Type | Max | Format / Size | Description |
|---|---|---|---|
| image | 1 | JPG, PNG, WEBP | Starting or ending frame image. |
First→last frame transition (optional): to interpolate between two key images, send image (start frame) and last_frame (end frame). Both images must have the same dimensions and aspect ratio, must match the requested aspect_ratio, and should use a standard size (1280×720 for 720p, 1920×1080 for 1080p). Supported formats: JPEG, PNG, WebP. Mismatched or oversized frames cause the generation to fail.
Output: MP4, 24 fps, with an embedded Google SynthID watermark. 1080p output requires duration = 8.
Example Request
{
"prompt": "A snow-covered tree gradually transforms as winter melts away, snow dripping from branches as green leaves emerge and colorful flowers bloom around the base, transitioning from a cold white landscape to a vibrant lush green meadow full of life",
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "1080p",
"negative_prompt": "blurry, low quality, distorted, artifacts, text, watermark",
"generate_audio": true,
"seed": 42
}
Response
{
"request_id": "veo-3-1-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/veo-3-1-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance. Required: $0.01"
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'veo-3-1-fast' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "veo-3-1-fast_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "veo-3-1-fast",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/veo-3-1-fast_019d42ce-ae71-7999-24c9-5d76447ecafb4"
Response (Completed)
{
"request_id": "veo-3-1-fast_019d42ce-ae71-7999-24c9-5d76447ecafb4",
"status": "COMPLETED",
"model_id": "veo-3-1-fast",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/veo-3-1-fast_019d42ce-ae71-7999-24c9-5d76447ecafb4/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-04-01T07:32:03.749Z",
"updated_at": "2026-04-01T07:32:20.000Z",
"completed_at": "2026-04-01T07:32:20.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type (video/mp4) |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Veo 3.1 Fast API Pricing — Per-Second Rates
Per-second pricing for 720p / 1080p — audio off: $0.10/sec, audio on: $0.15/sec (audio adds ~50%). Example: a 5-second clip ≈ $0.50 (audio off) or $0.75 (audio on). 4K available — pricing rolling out soon.
| Audio | Price (USD) |
|---|---|
| On | $0.15/sec |
| Off | $0.10/sec |
Veo 3.1 Standard API Documentation
https://gateway.pixazo.ai/veo/v1/veo-3.1/generate
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Video Generation Request - Veo 3.1 API
Request Code
POST https://gateway.pixazo.ai/veo/v1/veo-3.1/generate
Content-Type: application/json
Ocp-Apim-Subscription-Key: your-subscription-key
{
"prompt": "A serene lake with mountains in the background at sunset",
"aspect_ratio": "16:9",
"duration": 8,
"resolution": "1080p",
"generate_audio": true,
"negative_prompt": "blur, distortion, low quality",
"webhook": "https://your-server.com/webhook"
}
import requests
url = "https://gateway.pixazo.ai/veo/v1/veo-3.1/generate"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "your-subscription-key"
}
data = {
"prompt": "A serene lake with mountains in the background at sunset",
"aspect_ratio": "16:9",
"duration": 8,
"resolution": "1080p",
"generate_audio": True,
"negative_prompt": "blur, distortion, low quality",
"webhook": "https://your-server.com/webhook"
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
// Node.js example
const response = await fetch('https://gateway.pixazo.ai/veo/v1/veo-3.1/generate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Ocp-Apim-Subscription-Key': 'your-subscription-key'
},
body: JSON.stringify({
prompt: 'A serene lake with mountains in the background at sunset',
aspect_ratio: '16:9',
duration: 8,
resolution: '1080p',
generate_audio: true,
negative_prompt: 'blur, distortion, low quality',
webhook: 'https://your-server.com/webhook'
})
});
const data = await response.json();
console.log('Video ID:', data.id);
console.log('Status:', data.status);
curl -X POST https://gateway.pixazo.ai/veo/v1/veo-3.1/generate \
-H "Content-Type: application/json" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key" \
-d '{
"prompt": "A serene lake with mountains in the background at sunset",
"aspect_ratio": "16:9",
"duration": 8,
"resolution": "1080p",
"generate_audio": true,
"negative_prompt": "blur, distortion, low quality",
"webhook": "https://your-server.com/webhook"
}'
Output
{
"request_id": "veo-3-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/veo-3-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "veo-3-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "veo-3-1",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/veo-3-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp4"
],
"media_type": "video/mp4"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "veo-3-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "veo-3-1",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Video Generation Request
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | — |
| Text description of the video to generate. | ||||
aspect_ratio | No | string | "16:9" | "16:9", "9:16" |
| Output aspect ratio. | ||||
duration | No | integer | 8 | 4, 6, 8 (seconds) |
Video duration in seconds. Must be 8 when resolution is "1080p" or when reference_images are supplied. | ||||
resolution | No | string | "1080p" | "720p", "1080p" |
Output resolution. 1080p requires duration = 8. | ||||
generate_audio | No | boolean | true | true, false |
| Generate synchronized audio with the video. | ||||
negative_prompt | No | string | — | — |
| Elements to exclude from the generated video. | ||||
image | No | string | — | HTTP(S) URL |
Starting frame for image-to-video. Ideal images are 16:9 or 9:16 at 1280×720 or 720×1280, matching the aspect_ratio you choose. | ||||
last_frame | No | string | — | HTTP(S) URL |
Ending frame for interpolation. When supplied together with image, the model generates a transition between the two frames. Ignored if reference_images is provided. | ||||
reference_images | No | array | — | 1–3 HTTP(S) URLs |
Reference images for subject-consistent generation (reference-to-video, or R2V). Only works with aspect_ratio = "16:9" and duration = 8; when supplied, last_frame is ignored. | ||||
seed | No | integer | — | Integer ≥ 0 |
| Random seed that controls the generation's randomness. Reuse the same seed with identical settings to reproduce the same result; omit it for a different output each time. | ||||
webhook | No | string | — | HTTPS URL |
| Webhook URL for completion notifications. | ||||
webhook_events_filter | No | array | — | ["start", "completed"] |
| Event types to receive on the webhook. | ||||
Content Item Types & Limits
| Type | Max | Format / Size | Description |
|---|---|---|---|
| image | 1 | JPG, PNG, WEBP | Starting or ending frame image. |
First→last frame transition (optional): to interpolate between two key images, send image (start frame) and last_frame (end frame). Both images must have the same dimensions and aspect ratio, must match the requested aspect_ratio, and should use a standard size (1280×720 for 720p, 1920×1080 for 1080p). Supported formats: JPEG, PNG, WebP. Mismatched or oversized frames cause the generation to fail.
Output: MP4, 24 fps, with an embedded Google SynthID watermark. 1080p output requires duration = 8.
Example Request
{
"prompt": "A serene lake with mountains in the background at sunset",
"aspect_ratio": "16:9",
"duration": 8,
"resolution": "1080p",
"generate_audio": true,
"negative_prompt": "blur, distortion, low quality",
"webhook": "https://your-server.com/webhook"
}
Response
{
"request_id": "veo-3-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/veo-3-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Ocp-Apim-Subscription-Key | Your subscription key |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'veo-3-1' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "veo-3-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "veo-3-1",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/veo-3-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "veo-3-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "veo-3-1",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/veo-3-1_019dxxxx-xxxx/output.ext"
],
"media_type": "application/octet-stream"
},
"created_at": "2026-03-31T10:00:00.000Z",
"updated_at": "2026-03-31T10:00:15.000Z",
"completed_at": "2026-03-31T10:00:15.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Veo 3.1 Standard API Pricing
⚡ Performance
Live usage measured on Pixazo's gateway, split by model version. Generation time is how long a generation takes end-to-end (lower is better). Success rate is the percent of generations that complete (higher is better).
〰 Uptime
Percent of generations that succeeded over the selected period, per model version.
