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

# OpenAI Sora 2 Image-to-Video

OpenAI Sora 2 converts a single reference image into a coherent video clip with synchronized audio. Based on Sora 2's core advancements, the image-to-video workflow preserves identity, lighting, and composition while synthesizing believable motion and camera dynamics.

<Tip>
  This is an **asynchronous** API and only returns the task\_id of the asynchronous task. You should use this task\_id to call 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}>
  Positive text prompt for video generation.
</ParamField>

<ParamField body="image" type="string" required={true}>
  The input image supports URL and Base64 formats. Supported image formats include .jpg, .jpeg, and .png.
</ParamField>

<ParamField body="resolution" type="string" required={false}>
  The resolution of the generated video.

  Enum values:

  * When professional is true (Pro version): `720p`, `1080p`.
  * When professional is false: `720p`.

  Default: `720p`.
</ParamField>

<ParamField body="duration" type="integer" required={false}>
  The duration of the generated video, in seconds.

  Enum values: `4`, `8`, `12`.

  Default: `4`.
</ParamField>

<ParamField body="professional" type="bool" default={false}>
  This parameter specifies whether to use the Pro version. If not provided, the default value is false.
</ParamField>

## Response

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