- サードパーティ
- ゼロデータ保持
xAI の動画生成モデルです。テキストと画像入力から動画を生成、編集、延長し、対話、効果音、音楽を含むネイティブ同期音声を付けます。複数のクリエイティブモード(normal、fun、custom)に対応します。
| モデル情報 | |
|---|---|
| 利用規約とライセンス | リンク ↗ |
| 詳細情報 | リンク ↗ |
| ゼロデータ保持 | はい |
| 料金 | Cloudflare ダッシュボードで料金を見る ↗ |
const response = await env.AI.run(
'xai/grok-imagine-video',
{
prompt: 'A golden retriever running through a field of sunflowers on a sunny day',
aspect_ratio: '16:9',
duration: 5,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "xai/grok-imagine-video",
"input": {
"prompt": "A golden retriever running through a field of sunflowers on a sunny day",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/xai/grok-imagine-video/simple-video.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}ポートレート動画 — SNS 向けの縦向き動画です
const response = await env.AI.run(
'xai/grok-imagine-video',
{
prompt: 'Slow-motion close-up of ink drops blooming through water against a black background',
aspect_ratio: '9:16',
duration: 5,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "xai/grok-imagine-video",
"input": {
"prompt": "Slow-motion close-up of ink drops blooming through water against a black background",
"aspect_ratio": "9:16",
"duration": 5,
"resolution": "720p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/xai/grok-imagine-video/portrait-video.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}シネマティックな風景 — 長めの尺のワイド画面シネマティックショットです
const response = await env.AI.run(
'xai/grok-imagine-video',
{
prompt:
'A wide drone shot over snow-covered mountain peaks at sunrise, dramatic lighting with low clouds',
aspect_ratio: '16:9',
duration: 10,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "xai/grok-imagine-video",
"input": {
"prompt": "A wide drone shot over snow-covered mountain peaks at sunrise, dramatic lighting with low clouds",
"aspect_ratio": "16:9",
"duration": 10,
"resolution": "720p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/xai/grok-imagine-video/cinematic-landscape.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}_operation
stringenum: generate, edit, extendprompt
stringduration
integerminimum: 1maximum: 15aspect_ratio
stringenum: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3resolution
stringenum: 480p, 720psize
stringenum: 848x480, 1696x960, 1280x720, 1920x1080▶image{}
object▶video{}
object▶reference_images[]
arraymaxItems: 10▶output{}
objectuser
stringvideo
string