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

# Image to Video

> Animate a single input image into a video using Wan 2.6.

## Body Parameters

<ParamField body="model" type="string" required>
  Wan model to use. In this phase:

  * `wan/2-6-image-to-video`
</ParamField>

<ParamField body="input" type="object" required>
  Input parameters for the generation.

  <Expandable title="properties">
    <ParamField body="prompt" type="string" required>
      Prompt that describes target motion and scene transformation.
    </ParamField>

    <ParamField body="image_urls" type="string[]" required>
      Input image URL array. Must contain exactly 1 public URL that is directly accessible by the upstream Wan service.
    </ParamField>

    <ParamField body="duration" type="string" default="5">
      Video length in seconds. Options: `5`, `10`, `15`.
    </ParamField>

    <ParamField body="resolution" type="string" default="1080p">
      Output resolution. Options: `720p`, `1080p`.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="webhookUrl" type="string">
  URL to receive a webhook when the task completes.
</ParamField>

<ParamField body="metadata" type="object">
  Custom key-value metadata to attach to the task.
</ParamField>

<ResponseExample>
  ```json 202 theme={null}
  {
    "success": true,
    "data": {
      "id": "task_def456",
      "status": "pending",
      "type": "image-to-video",
      "provider": "wan",
      "model": "wan/2-6-image-to-video",
      "created_at": "2026-03-04T10:00:00Z",
      "estimated_seconds": 45
    }
  }
  ```

  ```json 400 theme={null}
  {
    "success": false,
    "error": {
      "code": "VALIDATION_ERROR",
      "message": "input.image_urls must contain exactly one URL"
    }
  }
  ```
</ResponseExample>
