Skip to main content
POST
/
v3
/
async
/
sora-2-img2video
OpenAI Sora 2 Image-to-Video
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/sora-2-img2video \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "prompt": "<string>",
  "image": "<string>",
  "resolution": "<string>",
  "duration": 123,
  "professional": true
}
'
{
  "task_id": "<string>"
}
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.
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 to retrieve the video generation result.

Request Headers

Content-Type
string
required
Enum value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API key}}.

Request Body

prompt
string
required
Positive text prompt for video generation.
image
string
required
The input image supports URL and Base64 formats. Supported image formats include .jpg, .jpeg, and .png.
resolution
string
The resolution of the generated video.Enum values:
  • When professional is true (Pro version): 720p, 1080p.
  • When professional is false: 720p.
Default: 720p.
duration
integer
The duration of the generated video, in seconds.Enum values: 4, 8, 12.Default: 4.
professional
bool
default:false
This parameter specifies whether to use the Pro version. If not provided, the default value is false.

Response

task_id
string
required
The task_id of the asynchronous task. You should use this task_id to call the Get Task Result API to obtain the generation result.