> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Kling 2.5-turbo

> Kling 2.5-turbo v2 text-to-video, image-to-video, and task query API through AnyFast.

Kling 2.5-turbo uses model-specific v2 paths. Do not send `model_name`, `mode`, or a top-level string `duration`.

> [tab] Text to video
>
> ## Create task
>
> `POST /kling/v2/text-to-video/kling-2.5-turbo`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/kling/v2/text-to-video/kling-2.5-turbo \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "prompt": "A paper boat crosses a rain-covered street",
>     "settings": {"resolution": "720p", "duration": 5, "aspect_ratio": "16:9"}
>   }'
> ```
>
> ## Request body
>
> **prompt** `string` *required*
>
> Video description.
>
> **settings** `object`
>
> Output settings.
>
> **settings.resolution** `string`
>
> `720p` or `1080p`.
>
> **settings.duration** `integer`
>
> Numeric duration. Use 5 or 10 seconds.
>
> **settings.aspect\_ratio** `string`
>
> `16:9`, `9:16`, or `1:1`.
>
> ## Create response
>
> ```json 200 theme={null}
> {
>   "code": 0,
>   "message": "",
>   "request_id": "REQUEST_ID",
>   "data": {"id": "TASK_ID", "status": "submitted"}
> }
> ```
>
> **data.id** `string`
>
> System task ID used by the shared query endpoint.
>
> **data.status** `string`
>
> `submitted`, `processing`, `succeeded`, or `failed`.

> [tab] Image to video
>
> ## Create task
>
> `POST /kling/v2/image-to-video/kling-2.5-turbo`
>
> ```bash cURL theme={null}
> curl --request POST \
>   --url https://www.anyfast.ai/kling/v2/image-to-video/kling-2.5-turbo \
>   --header 'Authorization: Bearer YOUR_API_KEY' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "contents": [
>       {"type": "prompt", "text": "The subject turns toward the window"},
>       {"type": "first_frame", "url": "https://example.com/frame.png"}
>     ],
>     "settings": {"resolution": "720p", "duration": 5}
>   }'
> ```
>
> ## Request body
>
> **contents** `object[]` *required*
>
> Include a `prompt` item and a `first_frame` item. Add supported middle or last frames when the model and workflow allow them.
>
> **contents\[].type** `string` *required*
>
> Content type such as `prompt`, `first_frame`, `middle_frame`, or `last_frame`.
>
> **contents\[].text** `string`
>
> Prompt text for a `prompt` item.
>
> **contents\[].url** `string`
>
> Public image URL or supported Base64 image content.
>
> **settings** `object`
>
> Output settings.
>
> ## Create response
>
> ```json 200 theme={null}
> {
>   "code": 0,
>   "message": "",
>   "request_id": "REQUEST_ID",
>   "data": {"id": "TASK_ID", "status": "submitted"}
> }
> ```
>
> **data.id** `string`
>
> System task ID used by the shared query endpoint.
>
> **data.status** `string`
>
> Initial task status.

> [tab] Query task
>
> ## Query tasks
>
> `GET /kling/v2/tasks?task_ids=TASK_ID`
>
> ```bash cURL theme={null}
> curl --request GET \
>   --url 'https://www.anyfast.ai/kling/v2/tasks?task_ids=TASK_ID' \
>   --header 'Authorization: Bearer YOUR_API_KEY'
> ```
>
> **task\_ids** `string` *required*
>
> One or more system task IDs separated by commas.
>
> ```json 200 theme={null}
> {
>   "code": 0,
>   "message": "",
>   "data": [
>     {
>       "id": "TASK_ID",
>       "status": "succeeded",
>       "outputs": [{"type": "video", "url": "https://example.com/video.mp4", "duration": "5.041"}]
>     }
>   ]
> }
> ```
>
> **data\[].id** `string`
>
> System task ID.
>
> **data\[].status** `string`
>
> `submitted`, `processing`, `succeeded`, or `failed`.
>
> **data\[].create\_time** `integer`
>
> Task creation time in Unix milliseconds.
>
> **data\[].update\_time** `integer`
>
> Task update time in Unix milliseconds.
>
> **data\[].outputs** `object[]`
>
> Generated outputs.
>
> **data\[].outputs\[].type** `string`
>
> Output type, normally `video`.
>
> **data\[].outputs\[].url** `string`
>
> Temporary generated video URL.
>
> **data\[].outputs\[].duration** `string`
>
> Generated video duration in seconds.

## Capability and parameter details

**negative\_prompt** `string`

Content to avoid, up to 2,500 characters.

**settings.resolution** `string`

`720p` or `1080p`. The higher resolution uses the model's pro output mode.

**settings.duration** `integer`

`5` or `10` seconds.

**settings.aspect\_ratio** `string`

`16:9`, `9:16`, or `1:1`.

**contents\[].type** `string`

For image-to-video, use `prompt` and `first_frame`; an optional `last_frame` can be supplied when the selected workflow supports end-frame control.

**contents\[].url** `string`

Public JPG, JPEG, or PNG URL, or supported raw Base64 image content.

Kling 2.5 Turbo supports prompt-to-video and first-frame image-to-video. It does not provide native audio, specified voices, multi-shot storyboards, camera control, or motion brush controls. Image-to-video can use an end frame only in the supported high-resolution workflow; an end frame cannot be combined with other motion-control inputs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.