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

# Wan 2.1 Image-to-Video

Accelerated inference for the Wan 2.1 14B image-to-video model, a comprehensive and open video foundation model suite that pushes the boundaries of video generation. By default, the API generates a 5-second video.

<Tip>
  This is an **asynchronous** API and only returns the task\_id of the asynchronous task. You should use this task\_id to request the [Get Task Result API](/en/docs/models/reference-get-async-task-result) to retrieve the video generation result.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="prompt" type="string" required={true}>
  The prompt text used to guide the desired generation.

  Value range: `[1, 2000]`.
</ParamField>

<ParamField body="image_url" type="string" required={true}>
  The image URL used for video generation.
</ParamField>

<ParamField body="negative_prompt" type="string" required={false}>
  The negative prompt tells the model which elements to avoid generating.

  Value range: `[0, 2000]`.
</ParamField>

<ParamField body="width" type="integer" required={false}>
  The width of the output video.

  Enum values: `480`, `720`, `832`, `1280`.

  Default: `832`. If width or height is not specified, width and height will be forced to `832` and `480`.
</ParamField>

<ParamField body="height" type="integer" required={false}>
  The height of the output video.

  Supported:

  * (480p) When width is `480`, height is set to `832`
  * (480p) When width is `832`, height is set to `480`
  * (720p) When width is `720`, height is set to `1280`
  * (720p) When width is `1280`, height is set to `720`

  Default: `480`. If width or height is not specified, width and height will be forced to `832` and `480`.

  <Warning>
    The output video will preserve the aspect ratio of the input image. The `width x height` setting only determines the clarity of the output video. For example, a 720p video will be clearer than a 480p video.
  </Warning>
</ParamField>

<ParamField body="loras" type="object[]" required={false}>
  LoRA models applied to video generation.

  Supports specifying up to **3 LoRA models**.

  <Expandable title="properties" defaultOpen={false}>
    <ParamField body="path" type="string" required={true}>
      The path to the LoRA model. You can specify a LoRA model name from Hugging Face, for example: `Remade-AI/Painting`; or a model download URL from Civitai, for example: `https://civitai.com/api/download/models/1513385?type=Model&format=SafeTensor`.

      <Warning>
        The LoRA model must be compatible with Wan2.1 14B I2V; otherwise, it will not work. Please check compatibility before use.
      </Warning>
    </ParamField>

    <ParamField body="scale" type="number" required={true}>
      The LoRA scaling value. The larger the value, the more pronounced the LoRA effect. number(float32) type, value range: `[0, 4.0]`.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="seed" type="integer" required={false}>
  Random seed, the number used by Stable Diffusion to generate noise. Value range: `[-1, 9999999999]`. Default value is -1.
</ParamField>

<ParamField body="steps" type="integer" required={false}>
  Number of iteration steps, the number of iterations in the image creation process. Value range: `[1, 40]`. Default: `30`.
</ParamField>

<ParamField body="guidance_scale" type="float" required={false}>
  The guidance scaling parameter controls how closely the generated content follows the prompt. Value range: `[0, 10]`. Default: `5.0`.
</ParamField>

<ParamField body="flow_shift" type="float" required={false}>
  The flow\_shift parameter mainly affects the speed and magnitude of object motion in the video. Higher values produce more noticeable and faster motion, while lower values make motion slower and more subtle.

  Value range: `[1, 10]`. Default: `5.0`.
</ParamField>

<ParamField body="enable_safety_checker" type="boolean" required={false}>
  The enable\_safety\_checker parameter controls whether to apply a safety filter to the generated content. When enabled, it helps filter potentially harmful or inappropriate content from the video output.

  Default: `true`.
</ParamField>

<ParamField body="fast_mode" type="boolean" required={false}>
  Whether to enable fast mode, which will generate videos faster but may reduce quality and price.

  Default: `false`.
</ParamField>

## Response Information

<ResponseField name="task_id" type="string" required={true}>
  The task\_id of the asynchronous task. You should use this task\_id to request the [Get Task Result API](/en/docs/models/reference-get-async-task-result) to obtain the generation result
</ResponseField>
