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

# Sora 2 Image to Video

Submit an async image-to-video task. 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 to retrieve the video generation result.

<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="image" type="string" required={true}>
  Input image supports URL and Base64 formats. Supported image formats include .jpg, .jpeg, .png.
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Positive text prompt for video generation.

  Length limit: 1 - 2000
</ParamField>

<ParamField body="duration" type="integer" default={4}>
  Duration of the generated video (in seconds).

  Possible values: `4`, `8`, `12`
</ParamField>

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

  Possible values: `720p`, `1080p`
</ParamField>

<ParamField body="professional" type="boolean" default={false}>
  Whether to use the Pro version. If not provided, defaults to false. When professional is true (Pro version), 720p and 1080p resolutions are supported. When professional is false, only 720p resolution is supported.
</ParamField>

## Response

<ResponseField name="task_id" type="string" required={true}>
  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>
