跳转到主要内容
POST
/
generate
/
k
/
sora2-pro-image-to-video
Sora2 Pro 图像转视频
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/sora2-pro-image-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "aspect_ratio": "landscape",
  "image_urls": [
    "https://example.com/image1.jpg"
  ],
  "n_frames": 10,
  "prompt": "animate the scene with smooth motion",
  "remove_watermark": false,
  "size": "standard"
}'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
高质量图像转视频,提供专业级的动画效果和更自然的运动表现。

Authorizations

Authorization
string
header
required

请使用您的 API Token 进行认证

Body

application/json

任务参数

image_urls
string[]
required

图片 URL 列表(必填,数组)

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

提示词(必填)

Example:

"animate the scene with smooth motion"

aspect_ratio
enum<string>
default:landscape

宽高比(可选,默认 landscape)

可用选项:
portrait,
landscape
Example:

"landscape"

n_frames
enum<integer>
default:10

视频时长(可选,10或15秒,默认10)

可用选项:
10,
15
Example:

10

remove_watermark
boolean

移除水印(可选)

Example:

false

size
enum<string>
default:standard

视频质量(可选,standard/high,默认 standard)

可用选项:
standard,
high
Example:

"standard"

Response

OK

task_id
string
required

Task ID

Example:

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