Skip to main content

Create Task

POST /kling/v1/videos/text2videoGenerate video from text with model_name: "kling-3.0". Multi-shot storyboards, camera movement, sound, and voice references are supported.
cURL

Create response

200

Request headers

string
required
Bearer authentication in the form Bearer YOUR_API_KEY.
string
default:"application/json"
required
Data exchange format. Use application/json.

Request parameters

string
required
Use kling-3.0.
string
Positive prompt, up to 2,500 characters; required for a single shot or intelligent storyboard.
string
Negative prompt, up to 2,500 characters.
boolean
default:false
Enable multi-shot generation.
string
With multi-shot, use customize or intelligence.
object[]
One to six custom shots whose durations add up to duration.
object[]
Up to two voice references.
string
default:"off"
Use on or off; voice references require on.
string
default:"std"
std for 720p, pro for 1080p, or 4k.
string
default:"5"
Video duration from 3 to 15 seconds.
string
default:"16:9"
Use 16:9, 9:16, or 1:1.
number
Prompt adherence from 0 to 1.
object
Preset or custom camera movement.
object
Platform watermark configuration through enabled.

Storyboards, voices, and camera movement

When multi_shot is true, set shot_type to customize and supply multi_prompt, or use intelligence with prompt. Each custom shot contains index, prompt, and duration; each shot lasts at least 1 second and its prompt is at most 512 characters.Voice references use <<<voice_1>>> and <<<voice_2>>> in list order. Supply at most two voice_id values from voice management and set sound to on.camera_control.type supports simple, down_back, forward_up, right_turn_forward, and left_turn_forward. For simple, only one of horizontal, vertical, pan, tilt, roll, and zoom may be nonzero; every value ranges from -10 to 10.

Interactive request parameters

Fill in and test the full Legacy request body.

Query Task

  • Single task: GET /kling/v1/videos/text2video/{task_id}. Status progresses from submitted or processing to succeed or failed.
  • Task list: GET /kling/v1/videos/text2video?pageNum=1&pageSize=30. pageNum is 1–1000 and pageSize is 1–500.
These references use Kling’s Legacy request structures. AnyFast adds the /kling route prefix while retaining the Legacy endpoint names and request fields.