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

# Wan 2.1 Image to Video

undefined

<Tip>
  This is an **async** API that only returns the task\_id of the async task. Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

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

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

## Request Body

<ParamField body="seed" type="integer">
  Range: \[-1, 9999999999]
</ParamField>

<ParamField body="extra" type="object">
  <Expandable title="properties" defaultOpen={true}>
    <ParamField body="webhook" type="string" />

    <ParamField body="response_video_type" type="string" />
  </Expandable>
</ParamField>

<ParamField body="loras" type="array">
  Array length: 0 - 3

  <Expandable title="properties" defaultOpen={true}>
    <ParamField body="path" type="string" />

    <ParamField body="scale" type="number">
      Range: \[0, 4]
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="steps" type="integer">
  Range: \[1, 40]
</ParamField>

<ParamField body="width" type="integer" default={832}>
  Possible values: `480`, `720`, `832`, `1280`
</ParamField>

<ParamField body="height" type="integer" default={480}>
  Possible values: `480`, `720`, `832`, `1280`
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Length limit: 1 - 2000
</ParamField>

<ParamField body="fast_mode" type="boolean" />

<ParamField body="image_url" type="string" required={true}>
  Length limit: 1 - unlimited
</ParamField>

<ParamField body="watermark" type="boolean" />

<ParamField body="flow_shift" type="number">
  Range: \[1, 10]
</ParamField>

<ParamField body="guidance_scale" type="number">
  Range: \[0, 10]
</ParamField>

<ParamField body="negative_prompt" type="string">
  Length limit: 0 - 2000
</ParamField>

<ParamField body="enable_safety_checker" type="boolean" />

## Response

<ResponseField name="task_id" type="string" required={false}>
  Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated output.
</ResponseField>

<ResponseField name="provider_request_id" type="string" required={false} />
