> ## 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

> Use Kling 2.5 Turbo through AnyFast's upgraded v2 text-to-video and image-to-video APIs.

Kling 2.5 Turbo uses the upgraded Kling v2 interface. The model is selected in the URL path; do not send `model_name` or Legacy flat fields.

## Capabilities

* **Text to video** — Generate 5- or 10-second videos from a prompt.
* **Image to video** — Animate a first frame with a prompt.
* **Task query** — Query accepted tasks through the shared v2 task endpoint.

| Capability | Endpoint | Main input |
| - | - | - |
| Text to video | `POST /kling/v2/text-to-video/kling-2.5-turbo` | `prompt` |
| Image to video | `POST /kling/v2/image-to-video/kling-2.5-turbo` | `contents` with a prompt and first frame |
| Query task | `GET /kling/v2/tasks?task_ids=TASK_ID` | System task ID |

## Text to video

```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"}
  }'
```

## Image to video

```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}
  }'
```

The v2 create response returns the system task ID in `data.id` with an initial `submitted` status. Poll `GET /kling/v2/tasks?task_ids=TASK_ID` and read generated media from `data[].outputs[]` when the status is `succeeded`.

> [!NOTE]
>
> For this model, `settings.duration` accepts 5 or 10. Use a numeric value. Do not use Legacy `mode`, `model_name`, top-level string `duration`, or `image` fields.

## Parameter and capability notes

* `settings.resolution` selects `720p` or `1080p`; `settings.duration` is numeric and accepts `5` or `10`.
* `settings.aspect_ratio` accepts `16:9`, `9:16`, or `1:1`.
* Image-to-video uses a `first_frame` content item and can use a `last_frame` only in the supported high-resolution workflow.
* The model is intended for visual generation. Native audio, voice references, multi-shot storyboards, camera control, and motion brush controls are not available.

> [card] [Kling 2.5 Turbo API reference](https://docs.anyfast.ai/api-reference/model-api/kling/kling-2.5-turbo.md)
>
> View the v2 request and response fields.


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