メインコンテンツへスキップ
POST
/
generate
/
k
/
kling26-image-to-video
Kling 2.6 画像から動画生成
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/kling26-image-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_urls": [
    "https://example.com/input.jpg"
  ],
  "prompt": "The person in the image starts to smile and wave",
  "duration": 5,
  "sound": false
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Kling 2.6 モデルを使用して画像から動画を生成します。

承認

Authorization
string
header
必須

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

ボディ

application/json

Task parameters

image_urls
string[]
必須

入力画像 URL(必須)

Required array length: 1 element
:
["https://example.com/input.jpg"]
prompt
string
必須

プロンプト(必須、最大1000文字)

Required string length: 1 - 1000
:

"The person in the image starts to smile and wave"

duration
enum<integer>
デフォルト:5

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

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

5

sound
boolean
デフォルト:false

音声を含むかどうか(任意、デフォルト false)

:

false

レスポンス

OK

task_id
string
必須

Task ID

:

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