grok-imagine 视频请求示例
이 콘텐츠는 아직 번역되지 않았습니다.
Grok Imagine Video 1.5
Section titled “Grok Imagine Video 1.5”API 主模型:grok-imagine-video-1.5。
| 参数 | 类型 | 范围/默认 | 说明 |
|---|---|---|---|
| seconds | number | 默认 6 | 当前插件只有通用正数校验;真实上游最大时长尚需确认,不把 3600 秒代码防护上限当模型能力 |
| resolution | string | 480p / 720p / 1080p | 默认 720p |
| aspect_ratio | string | 16:9 / 9:16 | 当前插件允许的比例 |
| images | string[] | 可选 | 首图转为 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、音频或任意张数。
Grok Imagine Video 1.5
Section titled “Grok Imagine Video 1.5”API 主模型:grok-imagine-video-1.5。
| 参数 | 类型 | 范围/默认 | 说明 |
|---|---|---|---|
| seconds | number | 默认 6 | 当前插件只有通用正数校验;真实上游最大时长尚需确认,不把 3600 秒代码防护上限当模型能力 |
| resolution | string | 480p / 720p / 1080p | 默认 720p |
| aspect_ratio | string | 16:9 / 9:16 | 当前插件允许的比例 |
| images | string[] | 可选 | 首图转为 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、音频或任意张数。