Request formats
- Client base URL
https://platform-api.invideo.io/v1- Auth header
Authorization: Bearer $INVIDEO_API_KEY- HTTP endpoint
POST https://platform-api.invideo.io/v1/request- Model field
model · veo-3-fast
curl -X POST 'https://platform-api.invideo.io/v1/request' \
-H "Authorization: Bearer $INVIDEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{
"model": "veo-3-fast",
"mode": "generate",
"input": {
"prompt": "A blue paper pinwheel turns slowly in a gentle breeze."
}
}'Response
answers at once with the request's id; read it with GET /v1/request/{id} until it has ended. The completed request contains output.files[] with temporary download links, or output.transcript for transcription.
cost_usd on the completed request. The settled USD charge is also in x-invideo-cost-usd when known before headers are sent.
{
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…/completed-output"
}
]
},
"cost_usd": "0.024",
"cost": {
"total_usd": "0.024",
"lines": [
{
"item": "second",
"quantity": "1",
"unit_price_usd": "0.024",
"amount_usd": "0.024"
}
]
}
}invideo API input
The keys of input. An unknown key is refused. A file is an https URL or a data URI. Inline (data URI) up to 64 MB per request; larger files: an https URL or an upload, video up to 300 MB.
| Key | Type | Required | Default | Allowed | Description |
|---|---|---|---|---|---|
prompt | string | yes | up to 5,000 characters | Prompt | |
image_url | string (URL or data URI) | no | PNG, JPEG or WebP | Start frame | |
aspect_ratio | string | no | "16:9" | "16:9", "9:16" | Aspect ratio |
duration | number | no | 8 | 4, 6, 8 | Duration (s) |
resolution | string | no | "720p" | "720p", "1080p" | Resolution |
generate_audio | boolean | no | true | true, false | Sound |
negative_prompt | string | no | up to 2,500 characters | Negative prompt | |
enhance_prompt | boolean | no | true | true, false | Enhance the prompt |
seed | integer | no | -1 | -1 to 2147483647 | Seed |
Output
{
"id": "0f8b6c1e-0000-0000-0000-000000000000",
"status": "queued"
}{
"id": "0f8b6c1e-0000-0000-0000-000000000000",
"model": "veo-3-fast",
"mode": "generate",
"status": "succeeded",
"created_at": "2026-01-01T10:00:00Z",
"started_at": "2026-01-01T10:00:02Z",
"finished_at": "2026-01-01T10:01:00Z",
"output": {
"kind": "video",
"files": [
{
"url": "https://… (valid for 1 hour)",
"content_type": "video/mp4",
"size_bytes": 1048576,
"width": 1280,
"height": 720,
"duration": 5
}
]
},
"error": null,
"cost_usd": "0.25"
}status is preparing, queued, running, succeeded, or failed (a request that did not start within 15 minutes fails with queue_timeout). output and cost_usd are null until it succeeds. Each file link is signed again on every read and works for 1 hour. A failed run is still a 200: error holds {type, code, message, retryable}, and type is content, model, input or server.
Request and response logs
Request and response logs, as JSON; files are fresh 1-hour links. GET https://platform-api.invideo.io/v1/request/{id}/logs/request gives what was sent, GET https://platform-api.invideo.io/v1/request/{id}/logs/response what came back. The key reads only its own workspace's requests. A log that is no longer available answers 410 log_expired. GET https://platform-api.invideo.io/v1/request/{id} gives the log links without checking them.
curl "https://platform-api.invideo.io/v1/request/$ID/logs/response" \
-H "Authorization: Bearer $INVIDEO_API_KEY"{
"id": "01a21889-e91b-7aba-a0d6-7b2cc4510be7",
"model": "<model-id>",
"mode": "generate",
"created_at": "2026-11-26T15:47:01.022556Z",
"finished_at": "2026-11-26T15:47:09.350578Z",
"cost_usd": "0.193248",
"error": null,
"output": {
"files": [
{
"name": "1.mp3",
"url": "https://…/1.mp3?X-Amz-Expires=3600&…",
"download_url": "https://…/1.mp3?response-content-disposition=attachment…",
"content_type": "audio/mpeg",
"size_bytes": 1440620,
"duration": 60.024,
"width": null,
"height": null
}
]
}
}Errors
A refused call answers with {error}, most with a message too; invalid_input has detail instead.
| HTTP | error | When |
|---|---|---|
| 400 | The body is not valid JSON. | |
| 401 | unauthorized | The API key is missing, invalid, disabled or expired. |
| 404 | model_not_found | No such model or mode, or it is not on for this workspace. |
| 404 | not_found | No request with this id (on a read). |
| 413 | The body is over 64 MB. Send larger files as an https URL or an upload. | |
| 422 | invalid_input | detail lists each problem as {loc, msg, type}; loc ends with the field's name. |
| 422 | model_not_priced | These options have no price yet, so they cannot run. |
| 429 | rate_limited | Over the workspace's requests per minute (all its keys and the playground together; 300 by default, see Limits) or 3000 reads a minute. Wait Retry-After seconds. |
| 429 | spend_limit_exceeded | The spend limit of the workspace is used up. |
| 500 | server_error | Something went wrong on our end. Please try again. |
Price
From $0.13816825 / second.
| Mode and options | Unit rate (USD) |
|---|---|
| Generate · Generate audio | $0.207252375 / second |
| Generate · No generate audio | $0.13816825 / second |