Create Veo 3.1 Fast — Text To Video
curl --request POST \
--url https://api.apisale.ai/v1/run/google/veo-3.1/fast/text-to-video \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"prompt": "A lone runner sprinting across endless red dunes at sunrise, long shadow, dust particles in sunbeams, epic wide cinematic frame",
"auto_fix": true,
"duration": "4s",
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false,
"safety_tolerance": "4"
}
}
'import requests
url = "https://api.apisale.ai/v1/run/google/veo-3.1/fast/text-to-video"
payload = { "input": {
"prompt": "A lone runner sprinting across endless red dunes at sunrise, long shadow, dust particles in sunbeams, epic wide cinematic frame",
"auto_fix": True,
"duration": "4s",
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": False,
"safety_tolerance": "4"
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: {
prompt: 'A lone runner sprinting across endless red dunes at sunrise, long shadow, dust particles in sunbeams, epic wide cinematic frame',
auto_fix: true,
duration: '4s',
resolution: '720p',
aspect_ratio: '16:9',
generate_audio: false,
safety_tolerance: '4'
}
})
};
fetch('https://api.apisale.ai/v1/run/google/veo-3.1/fast/text-to-video', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"run_id": "<string>",
"endpoint": "<string>",
"model": "<string>",
"capability": "<string>",
"mode": "<string>",
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"output": {},
"error": {
"type": "<string>",
"code": 123,
"message": "<string>"
},
"billing": {
"amount": "<string>",
"currency": "usd"
},
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"elapsed_ms": 123
}Google
Veo 3.1 Fast — Text To Video
Google Veo 3.1 cinematic text/image-to-video with native audio; standard/Fast/Lite tiers. Optimized for text to video via apisale.
POST
/
v1
/
run
/
google
/
veo-3.1
/
fast
/
text-to-video
Create Veo 3.1 Fast — Text To Video
curl --request POST \
--url https://api.apisale.ai/v1/run/google/veo-3.1/fast/text-to-video \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"prompt": "A lone runner sprinting across endless red dunes at sunrise, long shadow, dust particles in sunbeams, epic wide cinematic frame",
"auto_fix": true,
"duration": "4s",
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false,
"safety_tolerance": "4"
}
}
'import requests
url = "https://api.apisale.ai/v1/run/google/veo-3.1/fast/text-to-video"
payload = { "input": {
"prompt": "A lone runner sprinting across endless red dunes at sunrise, long shadow, dust particles in sunbeams, epic wide cinematic frame",
"auto_fix": True,
"duration": "4s",
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": False,
"safety_tolerance": "4"
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: {
prompt: 'A lone runner sprinting across endless red dunes at sunrise, long shadow, dust particles in sunbeams, epic wide cinematic frame',
auto_fix: true,
duration: '4s',
resolution: '720p',
aspect_ratio: '16:9',
generate_audio: false,
safety_tolerance: '4'
}
})
};
fetch('https://api.apisale.ai/v1/run/google/veo-3.1/fast/text-to-video', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"run_id": "<string>",
"endpoint": "<string>",
"model": "<string>",
"capability": "<string>",
"mode": "<string>",
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"output": {},
"error": {
"type": "<string>",
"code": 123,
"message": "<string>"
},
"billing": {
"amount": "<string>",
"currency": "usd"
},
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"elapsed_ms": 123
}Overview
Google Veo 3.1 cinematic text/image-to-video with native audio; standard/Fast/Lite tiers. Optimized for text to video via apisale.Docs = API contract + Try it (snapshot). Explore = browser playground. Model page = product examples.
Endpoint
POST https://api.apisale.ai/v1/run/google/veo-3.1/fast/text-to-video
| Model slug | google/veo-3.1/fast/text-to-video |
| Category | Text to Video (text-to-video) |
| Lab | |
| Tier | Fast |
| Mode | async |
Pricing
From $0.056/sec apisale price is 30% below the vendor’s official list price.| Tier | Unit | Official price | apisale price |
|---|---|---|---|
| 720p Fast | second | $0.080 | $0.056 |
| 720p Fast+audio | second | $0.100 | $0.070 |
| 1080p Fast | second | $0.100 | $0.070 |
| 1080p Fast+audio | second | $0.120 | $0.084 |
| 4K Fast | second | $0.250 | $0.175 |
| 4K Fast+audio | second | $0.300 | $0.210 |
Official price = vendor list price. apisale price = what you pay through apisale.
Request
{
"input": {
"prompt": "A lone runner sprinting across endless red dunes at sunrise, long shadow, dust particles in sunbeams, epic wide cinematic frame",
"auto_fix": true,
"duration": "4s",
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false,
"safety_tolerance": "4"
}
}
Parameters
Fields marked * are required. UseAuthorization: Key YOUR_API_KEY for REST.
number
Optional random seed for reproducibility.
string
required
Text prompt for video generation. Maximum 4000 characters.
boolean
Auto-fix prompt when supported. Default:
truestring
Clip duration. Default:
8s Values: 4s, 6s, 8sstring
Output resolution. Default:
720p Values: 720p, 1080p, 4kstring
Default:
16:9 Values: 16:9, 9:16boolean
Generate native audio track. Default:
truestring
Negative prompt. Maximum 2000 characters.
string
Safety filter tolerance (1=strict, 6=permissive). Default:
4 Values: 1, 2, 3, 4, 5, 6string
Optional HTTPS webhook when the run reaches a terminal state.
boolean
Block until completion (same Run response shape).
Input schema
Input schema
{
"params": {
"seed": {
"type": "int",
"description": "Optional random seed for reproducibility."
},
"prompt": {
"type": "string",
"required": true,
"max_length": 4000,
"description": "Text prompt for video generation. Maximum 4000 characters."
},
"auto_fix": {
"type": "bool",
"default": true,
"description": "Auto-fix prompt when supported."
},
"duration": {
"type": "enum",
"values": [
"4s",
"6s",
"8s"
],
"default": "8s",
"description": "Clip duration."
},
"resolution": {
"type": "enum",
"values": [
"720p",
"1080p",
"4k"
],
"default": "720p",
"description": "Output resolution."
},
"aspect_ratio": {
"type": "enum",
"values": [
"16:9",
"9:16"
],
"default": "16:9"
},
"generate_audio": {
"type": "bool",
"default": true,
"description": "Generate native audio track."
},
"negative_prompt": {
"type": "string",
"max_length": 2000,
"description": "Negative prompt. Maximum 2000 characters."
},
"safety_tolerance": {
"type": "enum",
"values": [
"1",
"2",
"3",
"4",
"5",
"6"
],
"default": "4",
"description": "Safety filter tolerance (1=strict, 6=permissive)."
}
}
}
Submit response
Returns a Run withrun_id. Poll with GET /v1/runs/{run_id} or use Try it above.
string
required
Unique run ID — save for polling and webhooks.
string
required
queued (async) or terminal state for sync runs.object
Result when
status is succeeded — see Output schema below.Example (async submit)
{
"run_id": "run_550e8400-e29b-41d4-a716-446655440000",
"endpoint": "google/veo-3.1/fast/text-to-video",
"model": "text-to-video",
"capability": "video",
"mode": "text-to-video",
"status": "queued",
"output": null,
"error": null,
"billing": null,
"created_at": "2026-06-27T12:00:00.000Z",
"started_at": null,
"completed_at": null,
"elapsed_ms": null
}
Output
Whenstatus is succeeded, output follows this schema:
Output schema
Output schema
{
"type": "object",
"example": {
"videos": [
{
"url": "https://cdn.mountsea.ai/tasks/ms-example/0.mp4"
}
]
},
"required": [
"videos"
],
"properties": {
"videos": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
}
}
}
}
},
"description": "Succeeded task output: single video URL."
}
Example
curl -X POST "https://api.apisale.ai/v1/run/google/veo-3.1/fast/text-to-video" \
-H "Authorization: Key YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A lone runner sprinting across endless red dunes at sunrise, long shadow, dust particles in sunbeams, epic wide cinematic frame",
"auto_fix": true,
"duration": "4s",
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false,
"safety_tolerance": "4"
}
}'
Related
- Veo 3.1 Lite — Text To Video
- Veo 3.1 Standard — Text To Video
- Runs lifecycle
- Video API overview
- Account API
Authorizations
Key sk-... (native REST) or Bearer sk-... (vendor SDKs)
Body
application/json
Show child attributes
Show child attributes
Example:
{
"prompt": "A lone runner sprinting across endless red dunes at sunrise, long shadow, dust particles in sunbeams, epic wide cinematic frame",
"auto_fix": true,
"duration": "4s",
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false,
"safety_tolerance": "4"
}
Response
201 - application/json
Run accepted
Unique run identifier
Model slug
Available options:
queued, processing, succeeded, failed, timeout, cancelled Show child attributes
Show child attributes
Show child attributes
Show child attributes
