AI Models
Veo 3.1 Fast
Faster AI video generation with good quality. Lower cost than standard Veo 3.1, supports 720p to 4K.
POST
$0.20/sec/v1/media/queueOverview
Faster video generation with good quality. Lower cost than standard Veo 3.1, supports 720p to 4K.
| Property | Value |
|---|---|
| Model ID | google/veo-3-fast |
| Upstream Model | veo-3.1-fast-generate-preview |
| Resolutions | 720p, 1080p, 4K |
| Duration | 4, 6, or 8 seconds |
| Billing | Per-second (dynamic) |
| Pricing | $0.20/sec (720p), $0.24/sec (1080p), $0.60/sec (4K) |
Usage
All media models use the async job queue. Submit a job, then poll for the result.
Step 1: Submit Job
Text-to-Video
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'google/veo-3-fast',
prompt: 'A drone flyover of a mountain lake at golden hour',
options: {
aspectRatio: '16:9',
resolution: '1080p',
duration: '6',
},
}),
});
const { data } = await res.json();
// data.jobId — use this to poll for resultscurl -X POST https://api.yepapi.com/v1/media/queue \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "google/veo-3-fast", "prompt": "A drone flyover of a mountain lake", "options": {"resolution": "1080p", "duration": "6"}}'Image-to-Video
Pass a reference image via imageData to generate a video from a still image.
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'google/veo-3-fast',
prompt: 'Bring this photo to life with gentle camera movement and ambient motion',
options: { aspectRatio: '16:9', resolution: '1080p', duration: '6' },
imageData: {
mimeType: 'image/png',
base64: '...', // Base64-encoded image
},
}),
});Step 2: Poll for Result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.video — { mimeType, base64 } when completedcurl https://api.yepapi.com/v1/media/status/JOB_ID \
-H "x-api-key: YOUR_API_KEY"Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
model | string | Yes | google/veo-3-fast | — |
prompt | string | Yes | Text description of the video to generate | — |
options.aspectRatio | string | No | 16:9 or 9:16 | 16:9 |
options.resolution | string | No | 720p, 1080p, or 4K | 1080p |
options.duration | string | No | 4, 6, or 8 (seconds) | 6 |
imageData.mimeType | string | No | MIME type of input image (image/png, image/jpeg, image/webp) | — |
imageData.base64 | string | No | Base64-encoded input image for image-to-video generation | — |
Pricing
| Resolution | Cost/sec |
|---|---|
| 720p | $0.20 |
| 1080p | $0.24 |
| 4K | $0.60 |
Under the Hood
Powered by Google's Gemini API directly.