メインコンテンツへスキップ
POST
/
generate
/
k
/
grok-text-to-video
Grok テキストから動画生成
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/grok-text-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A cat playing with a ball in slow motion",
  "aspect_ratio": "2:3",
  "mode": "normal"
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
xAI の Grok モデルを使用してテキストから動画を生成します。

承認

Authorization
string
header
必須

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

ボディ

application/json

タスクパラメータ

prompt
string
必須

プロンプト(必須)

Required string length: 1 - 5000
:

"A cat playing with a ball in slow motion"

aspect_ratio
enum<string>
デフォルト:2:3

アスペクト比(任意、デフォルト 2:3)

利用可能なオプション:
2:3,
3:2,
1:1
:

"2:3"

mode
enum<string>
デフォルト:normal

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

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

"normal"

レスポンス

OK

task_id
string
必須

Task ID

:

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