Skip to main content
POST
cURL

Usage notes

  • Multi-shot: set multi_shot to true and describe up to 5 shots in multi_prompt ({prompt, duration}, 1-12 seconds and up to 500 characters each). The total shot duration must not exceed duration; when duration is omitted it defaults to the sum of the shots, and prompt may be omitted.
  • Elements: define up to 3 reusable subjects in kling_elements and reference them as @name in the prompt. Each element uses either 2-4 reference images or exactly one video clip (optionally trimmed with start_time / end_time, a 3-8 second window in milliseconds), plus an optional 5-30 second voice reference in element_input_audio_urls. Each reference counts as 37 characters toward the 2,500-character prompt limit.
  • Audio: generate_audio defaults to false for single-shot requests and true for multi-shot requests.
  • Not supported: negative_prompt (write exclusions into the prompt), top-level audio_urls, and video_url.

Billing

Billed per second of output video. The per-second rate has five tiers: 720p or 1080p, each with or without native audio, plus 4K (same rate with or without audio). Current prices are shown on the model page.

Task flow

The create call returns data.task_id. Poll Query video task until status is completed (outputs in data.result) or failed, or pass callback_url to be notified when the task reaches a terminal state.

Authorizations

Authorization
string
header
required

Use your APIPod API key as a Bearer token in the Authorization header.

Body

application/json
model
string
required

Public APIPod model ID.

Allowed value: "kling-3.0-t2v"
prompt
string

Text prompt, up to 2,500 characters. Required unless multi_prompt is provided. Reference kling_elements with @name.

Maximum string length: 2500
duration
integer
default:5

Output duration in seconds (3-15). Defaults to 5; in multi-shot mode it defaults to the sum of the shot durations when omitted.

Required range: 3 <= x <= 15
resolution
enum<string>
default:720p

Output resolution (up to 4K). Defaults to 720p. The per-second rate depends on the resolution and, for 720p and 1080p, on native audio.

Available options:
720p,
1080p,
4k
aspect_ratio
enum<string>
default:16:9

Output aspect ratio. Defaults to 16:9.

Available options:
16:9,
9:16,
1:1
generate_audio
boolean

Generate native audio (alias audio). Defaults to false for single-shot requests and true for multi-shot requests.

multi_shot
boolean

Enable multi-shot generation (alias multi_shots). Use together with multi_prompt to define each shot.

multi_prompt
Multi Prompt · object[]

Shot list for multi-shot generation, up to 5 shots. Each shot is {prompt, duration} with a prompt of up to 500 characters and a duration of 1-12 seconds; the total must not exceed duration.

Maximum array length: 5
kling_elements
Kling Elements · object[]

Reusable subject elements (up to 3). Each element has a name, a description and 2-4 reference images in element_input_urls. Reference an element in the prompt with @name; each reference counts as 37 characters toward the prompt length.

Maximum array length: 3
callback_url
string
default:""

HTTPS URL that receives the task's terminal state.

Response

200 - application/json

Task accepted

Standard response for task submission

code
integer
required
data
Task Submit Data · object
required

Data content for task submission

message
string
required