Skip to main content
POST
cURL

Usage notes

  • Prompt only: send prompt (required, up to 8,000 characters) with optional duration (3-30 seconds), resolution (720p or 1080p) and aspect_ratio (16:9, 9:16, 1:1 or 21:9). Images and reference materials are not accepted; use Kling 4.0 Image to Video or Kling 4.0 Reference to Video.
  • Audio: every clip includes native audio generated together with the picture, so there is no generate_audio parameter — sending it is rejected.
  • Not supported: negative_prompt (write exclusions into the prompt), multi_shot / multi_prompt, mode, and 4K output.

Billing

Billed per second of output video. The per-second rate depends on the resolution (720p or 1080p). 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-4.0-t2v"
prompt
string
required

Required. Text description of the video, up to 8,000 characters. negative_prompt is not supported; describe exclusions in the prompt.

Required string length: 1 - 8000
duration
integer
default:5

Output duration in seconds (3-30). Defaults to 5.

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

Output resolution. Defaults to 720p. 4K is not available for Kling 4.0.

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

Output aspect ratio. Defaults to 16:9.

Available options:
16:9,
9:16,
1:1,
21:9
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