curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "veo3.1-fast-official",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A cinematic close-up of a paper boat drifting through a neon-lit canal",
"duration": 6,
"aspect_ratio": "16:9",
"resolution": "1080p",
"sound": true
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2026-05-18T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}Google
VEO 3.1 Official
The VEO 3.1 Official API generates 4, 6, or 8 second videos from text or images, with optional silent output. Quality models can output 4K; three reference images are fixed at 8 seconds.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "veo3.1-fast-official",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A cinematic close-up of a paper boat drifting through a neon-lit canal",
"duration": 6,
"aspect_ratio": "16:9",
"resolution": "1080p",
"sound": true
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2026-05-18T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
generation_type driven three-image generation depending on the selected model.
Models
- veo3.1-fast-official - Fast official generation with 4, 6, or 8 second duration options
- veo3.1-lite-official - Lightweight official generation
- veo3.1-quality-official - Higher-quality official generation with 4K support
Input modes
Generation Models
- No
image_urls: text-to-video - One image: image-to-video
- Two images: first/last-frame video;
veo3.1-lite-officialsupports this mode at 8 seconds only - Three images:
generation_type: "reference", fixed at 8 seconds veo3.1-lite-officialsupports at most two images and does not supportgeneration_type: "reference"
Required parameters
- prompt: required text prompt
Optional parameters
- image_urls: optional image URL array for generation models
- generation_type: optional
frameorreference; if omitted, PoYo infers the mode fromimage_urls; two images onveo3.1-lite-officialstill requireduration: 8 - duration: generation models support
4,6, or8;generation_type: "reference"with threeimage_urlssupports8only;veo3.1-lite-officialwith twoimage_urlssupports8only;veo3.1-lite-officialwithresolution: "1080p"supports8only - aspect_ratio:
16:9or9:16;autois also supported for image-to-video and first/last-frame generation - resolution:
720p,1080p, or4kwhere supported;veo3.1-lite-officialdoes not support4k - sound:
trueby default; setfalsefor silent output
Authorizations
All API endpoints require Bearer Token authentication.
Create an API key: sign in to PoYo, open Dashboard → API Key at poyo.ai/dashboard/api-key, and click to create a key.
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Response
Task submitted successfully
Business status code. 200 means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with code: 400 in the body.
200: Success400: Invalid request parameters401: Missing or invalid API key402: Insufficient credits403: Permission denied404: Resource not found408: Request timeout429: Rate limit exceeded500: Internal server error502: Upstream service error503: Service unavailable
See Error Codes for details.
Available options:
200, 400, 401, 402, 403, 404, 408, 429, 500, 502, 503 Example:
200