Skip to main content
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"
  }
}
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the response result through the unified Query Task Status endpoint.

Available Models

  • kling-3.0/standard - HD resolution (~720p/1K)
  • kling-3.0/pro - Full HD resolution (1080p/2K), sharper and more detailed output

Key Features

  • Native Audio: Controlled by input.sound. Set true to enable sound effects and false to disable them. When multi_shots is true, sound must be true
  • 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_name syntax. image_urls is required when using element references

Authorizations

Authorization
string
header
required

All API endpoints require Bearer Token authentication

Get your API Key:

Visit the API Key Management Page to get your API Key

Add it to the request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
enum<string>
required

Kling 3.0 model identifier. Use kling-3.0/standard for HD resolution (~720p/1K) or kling-3.0/pro for Full HD resolution (1080p/2K) with sharper and more detailed output

Available options:
kling-3.0/standard,
kling-3.0/pro
callback_url
string<uri>

Webhook callback URL for result notifications

Example:

"https://your-domain.com/callback"

input
object

Input parameters for generation

Response

200 - application/json

Task submitted successfully

code
integer
required

HTTP status code

Example:

200

data
object
required