Model routes
Create a Kling text-to-video task by model
Create a Kling video from a text prompt with a model-specific route, then retrieve the video by task ID.
POST
cURL
Send a prompt to
Send this body to
Save
POST /text-to-video/{model} to create a video task. The response contains an id that you use to retrieve the result.
Choose a model
Put the model ID in the URL. Do not add a model field to the JSON body.Request parameters
The following request creates a five-second, single-shot video:
https://api.cometapi.com/text-to-video/kling-3.0-turbo with your CometAPI API key. The OpenAPI code panel provides Shell, Python, and JavaScript requests with the same body.
Retrieve the video
The create response has this shape:data.id. Use Get a Kling task with that ID until the task reaches a terminal status. Read the video URL from the task’s outputs array.Authorizations
Authenticate with your CometAPI API key.
Path Parameters
Kling model ID. kling-3.0 supports 4k resolution. The 2.x models accept 5- or 10-second duration.
Available options:
kling-3.0-turbo, kling-3.0, kling-2.6, kling-2.5-turbo Body
application/json
Response
200 - application/json
The task was created. Use data.id to retrieve its status and video output.
Last modified on September 25, 2026