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

# Wan - 2.2 A14B Turbo

> Generate videos from images using the Wan 2.2 A14B Image to Video Turbo model.

Transform an input image into a dynamic video using the **Wan 2.2 A14B Image to Video Turbo** model.

## Create a Video Generation Task

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

## Authentication

All API requests require a Bearer Token.

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

## Parameters

### Top-Level Parameters

| Parameter | Type   | Required | Description                                  |
| --------- | ------ | -------- | -------------------------------------------- |
| `model`   | string | Yes      | Must be `wan/2-2-a14b-image-to-video-turbo`. |
| `input`   | object | Yes      | Input parameters for video generation.       |

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

### `input` Parameters

<ParamField body="input" type="object" required>
  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:** `5000` characters.
  </ParamField>

  <ParamField body="image_url" type="string" required>
    The `image_url` must contain the URL of an uploaded image. The value must be an uploaded file URL, not the file content itself.

    **Note:** If the input image does not match the selected aspect ratio, it is resized and center-cropped.

    Supported image types:

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

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

  <ParamField body="resolution" default="720p" type="string">
    Specify the resolution of the output video.

    Supported output resolutions:

    * `480p`
    * `720p`

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

  <ParamField body="enable_prompt_expansion" default="false" type="boolean">
    Expands the prompt with additional details while maintaining its original meaning.

    **Default:** `false`
  </ParamField>

  <ParamField body="seed" default="0" type="number">
    Random seed for reproducible generation.

    Seed Range : `0` to `2147483647` <br /> Step : `1`

    **Default:** `0`
  </ParamField>

  <ParamField body="acceleration" default="none" type="string">
    Acceleration level to use. The more acceleration, the faster the generation, but with lower quality. <br /> The recommended value is `none`.

    Supported values:

    * `none`
    * `regular`

    **Default:** `none`
  </ParamField>
</ParamField>

## Request

### Request Body

The request body must be JSON and requires the `model` field.

```json theme={null}
{
  "model": "wan/2-2-a14b-image-to-video-turbo",
  "input": {
    "image_url": "https://example.com/input-image.jpg",
    "prompt": "Describe the video you want to generate.",
    "resolution": "720p",
    "enable_prompt_expansion": false,
    "seed": 0,
    "acceleration": "none",
  }
}
```

## Response

### Successful Response

A successful request returns a task ID that can be used to query the task status.

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

## Query Task Status

After submitting a task, use the unified query endpoint to check the task progress and retrieve the generated results.

<Card title="Get Task Details" icon="search" href="/get-task-detail">
  Check task status, monitor generation progress, and retrieve 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.                     |
