curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-3.0/standard",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A chef carefully plating a gourmet dish in a modern kitchen, steam rising from the food under warm lighting",
"multi_shots": false,
"duration": 5,
"sound": true,
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}Kling
Kling 3.0
The Kling 3.0 API generates 3–15 second text or image videos with optional native audio, start and end frames, and multi-shot prompts at about 720p or 1080p.
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": "kling-3.0/standard",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A chef carefully plating a gourmet dish in a modern kitchen, steam rising from the food under warm lighting",
"multi_shots": false,
"duration": 5,
"sound": true,
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10: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.
Models
- kling-3.0/standard - HD resolution (~720p/1K)
- kling-3.0/pro - Full HD resolution (1080p/2K), sharper and more detailed output
Features
- Native Audio: Controlled by
input.sound. Settrueto enable sound effects andfalseto disable them. Whenmulti_shotsistrue,soundmust betrue - Flexible Duration: 3 to 15 seconds
- Aspect Ratios: 1:1 (square), 16:9 (landscape), and 9:16 (portrait)
- Modes: Text-to-video and image-to-video (start and end frames)
- Multi-Shot: Multi-shot storytelling with per-shot prompts and durations
- Element References: Define reusable elements (via images or video) and reference them in prompts using
@element_namesyntax.image_urlsis required when using element references
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