メインコンテンツへスキップ
POST
/
generate
/
k
/
grok-image-to-video
Grok 画像から動画生成
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/grok-image-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_urls": [
    ""
  ],
  "mode": "normal",
  "prompt": "The person waves and smiles"
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
xAI の Grok モデルを使用して画像から動画を生成します。

承認

Authorization
string
header
必須

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

ボディ

application/json

タスクパラメータ

image_urls
string[]

画像 URL リスト(最大1枚)

Maximum array length: 1
:
[""]
mode
enum<string>
デフォルト:normal

モード(任意、デフォルト normal)

利用可能なオプション:
fun,
normal,
spicy
:

"normal"

prompt
string

プロンプト(任意)

Maximum string length: 5000
:

"The person waves and smiles"

レスポンス

OK

task_id
string
必須

Task ID

:

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