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

# Kling V3 Turbo Image to Video

Generate videos from an input image using the `kling/v3-turbo-image-to-video` model.

## Authentication

All API requests require a Bearer Token.

```http theme={null}
Authorization: Bearer YOUR_API_KEY
```

## Create Video Task

Submit an image-to-video generation task using the following endpoint:

```http theme={null}
POST /api/v1/jobs/createTask
```

### Request Body

| Field   | Type   | Required | Description                                     |
| ------- | ------ | -------- | ----------------------------------------------- |
| `model` | string | Yes      | Must be `kling/v3-turbo-image-to-video`.        |
| `input` | object | Yes      | Input parameters for the video generation task. |

<ParamField body="model" type="string" required>
  Must be `kling/v3-turbo-image-to-video`.
</ParamField>

<ParamField body="input" type="object" required>
  ## Input Parameters

  The `input` object contains the parameters used to generate the video.

  <ParamField body="prompt" type="string" required>
    Use `prompt` to describe the video you want to generate.

    **Maximum length:** `2500` characters.
  </ParamField>

  <ParamField body="image_url" type="string[]" required>
    Provide the URL of the image to be used for video generation. The value must be an uploaded file URL, not the file content itself. Supported image formats:

    * `image/jpeg`
    * `image/png`

    Maximum file size: `10 MB`
  </ParamField>

  <ParamField body="duration" type="string" required>
    Specify the duration of the generated video in seconds.

    The supported duration range is **3 to 15 seconds**.

    Default value: `"5"`
  </ParamField>

  <ParamField body="resolution" type="string" required>
    Specify the resolution of the generated video.

    Supported values:

    * `720p`
    * `1080p`

    **Default:** `720p`
  </ParamField>
</ParamField>

## Complete Request Example

```json theme={null}
{
  "model": "kling/v3-turbo-image-to-video",
  "input": {
    "image_urls": [
      "https://demo.com/25706456828208.png"
    ],
    "prompt": "Outdoor terrace of a European villa, by a dining table with a blue and white checkered tablecloth, a young woman sits opposite a young man. The camera zooms in as the woman swirls the juice in a glass and looks toward the distant woods.",
    "duration": "5",
    "resolution": "720p"
  }
}
```

## Response

### Successful Response

A successful request returns a task ID.

<ResponseField name="code" type="number">
  Response status code.
</ResponseField>

<ResponseField name="msg" type="string">
  Response message. Contains the error description when the request fails.

  **Example:** `success`
</ResponseField>

<ResponseField name="data" type="object" required>
  The task data object containing task id.

  <ResponseField name="taskId" type="string" required>
    The unique identifier for this task.

    **Example:** `task_123456`
  </ResponseField>
</ResponseField>

Use the `taskId` to query the task status and retrieve generation results.

<Card title="Get Task Details" icon="search" href="/get-task-detail">
  Learn how to query task status and retrieve generation results.
</Card>

### Error Response

```json theme={null}
{
  "code": 500,
  "msg": "Server Error - An unexpected error occurred while processing the request",
  "data": null
}
```

## Response Codes

|  Code | Meaning                                                                   |
| ----: | ------------------------------------------------------------------------- |
| `200` | Success — the request was successfully processed.                         |
| `401` | Unauthorized — authentication credentials are missing or invalid.         |
| `402` | Insufficient Credits — the account does not have enough credits.          |
| `404` | Not Found — the requested resource or interface does not exist.           |
| `408` | Upstream service issue — no result has been returned for over 10 minutes. |
| `422` | Validation Error — request parameters failed validation.                  |
| `429` | Rate Limited — request frequency limit has been exceeded.                 |
| `433` | Request Limit — sub-key usage exceeded the limit.                         |
| `455` | Service Unavailable — system is undergoing maintenance.                   |
| `500` | Server Error — an unexpected error occurred while processing the request. |
| `501` | Generation Failed — content generation failed.                            |
| `505` | Feature Disabled — the requested feature is disabled.                     |
