メインコンテンツへスキップ
POST
/
generate
/
k
/
sora2-image-to-video
Sora2 画像から動画生成
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"
}
OpenAI の Sora 2 モデルを使用して画像から動画を生成します。

承認

Authorization
string
header
必須

API トークンを使用して認証してください

ボディ

application/json

タスクパラメータ

image_urls
string[]
必須

画像 URL リスト(必須、配列)

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

プロンプト(必須)

Minimum string length: 1
:

"animate the scene"

aspect_ratio
enum<string>
デフォルト:landscape

アスペクト比(任意、デフォルト landscape)

利用可能なオプション:
portrait,
landscape
:

"landscape"

n_frames
enum<integer>
デフォルト:10

動画時間(任意、10または15秒、デフォルト10)

利用可能なオプション:
10,
15
:

10

remove_watermark
boolean

透かしを除去(任意)

:

false

レスポンス

OK

task_id
string
必須

Task ID

:

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