Bỏ qua để đến nội dung
Trang chính Tin tức Bảng điều khiển

grok-imagine 视频请求示例

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

API 主模型:grok-imagine-video-1.5。

参数类型范围/默认说明
secondsnumber默认 6当前插件只有通用正数校验;真实上游最大时长尚需确认,不把 3600 秒代码防护上限当模型能力
resolutionstring480p / 720p / 1080p默认 720p
aspect_ratiostring16:9 / 9:16当前插件允许的比例
imagesstring[]可选首图转为 image,其余转为 reference_images;上游数量上限待确认

文生视频:POST /v1/videos

{
"model": "grok-imagine-video-1.5",
"prompt": "镜头缓慢推进,展现阳光下的陶瓷杯与桌面光影。",
"seconds": 6,
"aspect_ratio": "16:9",
"resolution": "720p"
}

图生视频:POST /v1/videos

{
"model": "grok-imagine-video-1.5",
"prompt": "镜头缓慢推进,展现阳光下的陶瓷杯与桌面光影。",
"seconds": 6,
"aspect_ratio": "16:9",
"resolution": "720p",
"images": [
"https://docs.4allapi.com/examples/flow/ref-1.png"
]
}
  • multipart 上传限制 100 MiB;素材可用公开 URL,data URI 能通过插件本地格式校验,实际限制仍以上游合同为准。
  • 不因为字段可透传就宣称支持未验证的 V2V、音频或任意张数。

API 主模型:grok-imagine-video-1.5。

参数类型范围/默认说明
secondsnumber默认 6当前插件只有通用正数校验;真实上游最大时长尚需确认,不把 3600 秒代码防护上限当模型能力
resolutionstring480p / 720p / 1080p默认 720p
aspect_ratiostring16:9 / 9:16当前插件允许的比例
imagesstring[]可选首图转为 image,其余转为 reference_images;上游数量上限待确认

文生视频:POST /v1/videos

{
"model": "grok-imagine-video-1.5",
"prompt": "镜头缓慢推进,展现阳光下的陶瓷杯与桌面光影。",
"seconds": 6,
"aspect_ratio": "16:9",
"resolution": "720p"
}

图生视频:POST /v1/videos

{
"model": "grok-imagine-video-1.5",
"prompt": "镜头缓慢推进,展现阳光下的陶瓷杯与桌面光影。",
"seconds": 6,
"aspect_ratio": "16:9",
"resolution": "720p",
"images": [
"https://docs.4allapi.com/examples/flow/ref-1.png"
]
}
  • multipart 上传限制 100 MiB;素材可用公开 URL,data URI 能通过插件本地格式校验,实际限制仍以上游合同为准。
  • 不因为字段可透传就宣称支持未验证的 V2V、音频或任意张数。