Skip to main content
POST
/
generate
/
k
/
sora2-image-to-video
Sora2 Image to Video
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/sora2-image-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_urls": [
    "https://example.com/image1.jpg",
    "https://example.com/image2.jpg"
  ],
  "prompt": "animate the scene",
  "aspect_ratio": "landscape",
  "n_frames": 10,
  "remove_watermark": false
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Transform images into videos using OpenAI’s Sora 2 model. Key Features:
  • Image Animation - Transform static images into smooth, natural dynamic videos
  • Audio Sync Generation - Automatically add matching sound effects and background music
  • Physical Realism - Motion effects following real physics laws
  • Style Preservation - Maintain original image style and visual features

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

image_urls
string[]
required

Image URL list (required, array)

Minimum array length: 1
Example:
[
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]
prompt
string
required

Prompt (required)

Minimum string length: 1
Example:

"animate the scene"

aspect_ratio
enum<string>
default:landscape

Aspect ratio (optional, default landscape)

Available options:
portrait,
landscape
Example:

"landscape"

n_frames
enum<integer>
default:10

Video duration (optional, 10 or 15 seconds, default 10)

Available options:
10,
15
Example:

10

remove_watermark
boolean

Remove watermark (optional)

Example:

false

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"