Video Series
Veo 3.1 Lite API
- Text-to-video with only
prompt, or image-to-video with onefirst_image_url(JPEG or PNG). Last frames, reference images, reference videos and audio are not accepted. - Videos of 4, 6 or 8 seconds at 720p, in 16:9 or 9:16.
- Every video comes with sound effects, ambience and dialogue generated with the picture; audio cannot be turned off, and
generate_audio: falseis rejected before any charge. Write the sound and any spoken lines into the prompt. - Asynchronous:
POST /v1/videosreturns a task id; pollGET /v1/videos/{id}orGET /v1/tasks/{id}until the task completes, then download/v1/videos/{id}/content. - Result links are APIKO-signed and kept for 24 hours; download anything you need to keep.
- Billing
- One price per video, sound included; 4, 6 and 8 seconds cost the same. The price is on the model page.
- A first frame carries no extra charge.
- A task that fails is refunded in full.
POST
Authorizations
All requests use Bearer authentication:
Authorization: Bearer <API_KEY>.Create a key in Console → API Keys.
Routes
string
POST /v1/videos— create a video taskGET /v1/videos/{id}— query the task and readvideo_urlGET /v1/tasks/{id}— query the same task in the shared task format
Body
application/json
model
stringdefault:veo-3.1-literequired
Use this exact public model id.
Available options:
veo-3.1-liteExample:
"veo-3.1-lite"prompt
stringrequired
Video description: subject, action, camera, style and what you hear; put spoken lines in quotes.
Up to 5,000 characters. Describe the subject, the action, the camera move and what you hear; put spoken lines in quotes.
Minimum length:
1Maximum length:
5000Example:
"A paper boat drifting across a calm lake at sunrise"aspect_ratio
enum<string>default:16:9
Width-to-height ratio of the output video.
16:9 (landscape, the default) or 9:16 (vertical).Available options:
16:9, 9:16Example:
"16:9"resolution
enum<string>default:720p
Output resolution of the video. Values are matched case-insensitively.
Only
720p; the field can be omitted.Available options:
720pExample:
"720p"duration
enum<integer>default:8
Output length in seconds; OpenAI's seconds field is accepted instead. Every length costs the same.
- Length of the output video in seconds: 4, 6 or 8; 8 when omitted. Every length costs the same.
seconds(a string such as"8", as in the OpenAI video API) is accepted as an alias; send one of the two.
Available options:
4, 6, 8Example:
8generate_audio
booleandefault:true
Sound effects, ambience and dialogue are always generated with the picture; false is refused.
Always
true: the model always generates sound. Omit the field or send true.Available options:
trueExample:
truefirst_image_url
string<uri>
First frame (image to video), a JPEG or PNG.
- Used as the first frame of the video (image-to-video). A JPEG or PNG; WebP, GIF, AVIF and other formats are rejected before any charge.
- Public HTTPS URLs only; files and base64 are not accepted.
Example:
"https://example.com/first-frame.png"callback_url
string<uri>
Optional public HTTPS URL notified when the task finishes.
- When the task finishes, APIKO POSTs the same JSON as
GET /v1/tasks/{id}with headerX-Apiko-Task-Id, retrying up to 3 times. - Callbacks are not signed: re-fetch the task to confirm the result.
Example:
"https://your-domain.com/webhooks/apiko-task"Response
200 - application/json
Charged when the request is accepted; a task that ends in failed is refunded in full.
id
string
Video task id. Query it with
GET /v1/videos/{id} or GET /v1/tasks/{id}.Example:
"task_abc123"status
enum<string>
Task status. Poll every 5–10 seconds until it is
completed or failed.Available options:
queued, in_progress, completed, failedprogress
integer
Progress from
0 to 100.video_url
string<uri>
Present on
GET /v1/videos/{id} when the task is completed: an APIKO-signed link kept for 24 hours. GET /v1/tasks/{id} returns the same link as data[0].url.Errors
application/json
Errors use the shape { "error": { "message", "type", "param", "code" } }; most messages end with a request id to quote when you contact support.
400
error
Invalid request. Fix the request instead of retrying it; it is not charged.
- A field this page does not list, e.g.
seed is not supported. - A value outside the listed options or range, e.g.
duration must be one of: …. - A missing or empty
prompt(prompt is required). - A reference URL that is not public HTTPS (
… must be a public HTTPS URL).
401
error
Missing or invalid API key (
Invalid token).403
error
Insufficient balance (
code: "insufficient_user_quota"). Add credit in Console → Billing.404
error
GET /v1/videos/{id} or GET /v1/tasks/{id} for a task that does not exist or belongs to another account (Task not found).503
error
The model exists but none of its routes can take the request right now:
No available channel for model … (code: "model_not_found"). Retry later with backoff, or pick another model. A missing or misspelled model returns 404 with the same message; check the id instead of retrying.