# Novita AI KLING V1.6 Text to Video API | Generate videos from text

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown is available with `Accept: text/markdown` and `.md` URL variants.

Source: /docs/api-reference/model-apis-kling-v1.6-t2v

# KLING V1.6 Text to Video

POST

/

v3

/

async

/

kling-v1.6-t2v

Try it

KLING V1.6 Text to Video

cURL

```
curl --request POST \
--url https://api.novita.ai/v3/async/kling-v1.6-t2v \
--header 'Authorization: &#x3C;authorization>' \
--header 'Content-Type: &#x3C;content-type>' \
--data '
{
"mode": "&#x3C;string>",
"prompt": "&#x3C;string>",
"negative_prompt": "&#x3C;string>",
"duration": 123,
"guidance_scale": 123
}
'
```

200

```
{
"task_id": "&#x3C;string>"
}
```

KLING V1.6 Text to Video is an AI text-to-video generation model developed by the Kuaishou AI Team. It transforms textual descriptions into dynamic 5-second videos at 720p resolution, offering high-quality visual outputs with enhanced motion and semantic understanding.

This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the [Task Result API](/docs/api-reference/model-apis-task-result) to retrieve the video generation results.

##

[​](#request-headers)

Request Headers

[​](#param-content-type)

Content-Type

string

required

Supports: `application/json`

[​](#param-authorization)

Authorization

string

required

Bearer authentication format, for example: Bearer {{API Key}}.

##

[​](#request-body)

Request Body

[​](#param-mode)

mode

string

The mode of the video generation.Supports:

- `Standard`: fast creation, lower cost, and generate 720p video.

Default: `Standard`.

[​](#param-prompt)

prompt

string

required

Prompt text required to guide the generation.Range: `1 <= x <= 2000`.

[​](#param-negative-prompt)

negative_prompt

string

Negative prompts instruct the model on what elements to avoid generating.Range: `0 <= x <= 2000`.

[​](#param-duration)

duration

integer

The length of the generated video in seconds. Default: `5`.

Optional values: `5`, `10`

[​](#param-guidance-scale)

guidance_scale

float

Guidance scale parameter controls how closely the generated content follows the prompt.Range: `0 <= x <= 1`. Default: `0.5`.

##

[​](#response)

Response

[​](#param-task-id)

task_id

string

required

Use the task_id to request the [Task Result API](/docs/api-reference/model-apis-task-result) to retrieve the generated outputs.

##

[​](#example)

Example

Here is an example of how to use the KLING V1.6 Text to Video API.

- Generate a task_id by sending a POST request to the KLING V1.6 Text to Video API.

`Request:`

```
curl --location 'https://api.novita.ai/v3/async/kling-v1.6-t2v' \
--header 'Authorization: Bearer {{API Key}}' \
--header 'Content-Type: application/json' \
--data '{
"mode": "Standard",
"prompt": "A cute dog standing up from a sitting position while wearing sunglasses",
"negative_prompt": "low quality",
"guidance_scale": 0.6,
}'
```

`Response:`

```
{
"task_id": "{Returned Task ID}"
}
```

- Use `task_id` to get output videos.

HTTP status codes in the 2xx range indicate that the request has been successfully accepted, while status codes in the 5xx range indicate internal server errors.
You can get videos url in `videos` of response.
`Request:`

```
curl --location --request GET 'https://api.novita.ai/v3/async/task-result?task_id={Returned Task ID}' \
--header 'Authorization: Bearer {{API Key}}'
```

`Response:`

```
{
"task": {
"task_id": "{Returned Task ID}",
"task_type": "KLING_V16_T2V_STANDARD",
"status": "TASK_STATUS_SUCCEED",
"reason": "",
"eta": 0,
"progress_percent": 100
},
"images": [],
"videos": [
{
"video_url": "{The URL of the generated video}",
"video_url_ttl": "3600",
"video_type": "mp4"
}
]
}
```

`Video files:`

Last modified on May 21, 2025
