Grok Imagine (xAI)
文生视频
Grok Imagine 文生视频 —— 基于文本提示生成视频(xAI)
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "grok-imagine/text-to-video",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "金色余晖下,小狗冲浪越过巨浪,电影感",
"duration": 10,
"ratio": "16:9",
"resolution": "720p",
"mode": "normal"
}
}'
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
Grok Imagine 文生视频 —— 基于文本提示生成视频(xAI)
curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "grok-imagine/text-to-video",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "金色余晖下,小狗冲浪越过巨浪,电影感",
"duration": 10,
"ratio": "16:9",
"resolution": "720p",
"mode": "normal"
}
}'
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
grok-imagine/text-to-video —— $0.007 / 秒。
duration:6、10、12、15 秒ratio:1:1、16:9、9:16resolution:480p、720pmode:fun、normal、spicy、customgrok-imagine/text-to-video。curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "grok-imagine/text-to-video",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "金色余晖下,小狗冲浪越过巨浪,电影感",
"duration": 10,
"ratio": "16:9",
"resolution": "720p",
"mode": "normal"
}
}'
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}