grok-imagine-video-1.5 AI 视频 API
grok-imagine-video-1.5 可通过 Flatkey 使用,适用于视频生成;Flatkey 通过 /v1/videos 路由此模型,供应商为 xAI。$0.088 per second。
输出
预览使用 Seedance 2.0 生成
请求摘要
- 接口
- POST /v1/videos
- 模型 ID
- grok-imagine-video-1.5
- 画面比例
- 9:16
- 分辨率
- —
- 时长
- 5s
- 参考媒体
- 无
仅供预览。登录后即可向 Flatkey 提交此请求。
{
"model": "grok-imagine-video-1.5",
"prompt": "Creative direction: In a flat 2D illustrated desk scene, a woman opens a folded white articulated lamp beside her notebook. Its two jointed arms extend and the existing light panel tilts over the page. She writes one short line as the work surface becomes evenly lit.\n\nVisual treatment: Clean 2D illustration with consistent lamp joints, soft graphic light and a limited cream-and-blue palette.\n\nShot sequence: 1. Show the folded lamp and unlit notebook; 2. Extend the existing joints and tilt the light panel over the page; 3. Hold the illuminated writing surface with the lamp geometry unchanged\n\nContinuity: Keep the product silhouette, cap or hinge, materials and prop positions stable; hold the final hero frame.\nExclude: extra people or props, text, logos and watermarks.",
"duration": 5
}API 性能
grok-imagine-video-1.5 API 可靠性与可用性
当生产流量达到足够规模后,这里会显示 grok-imagine-video-1.5 的 Flatkey 实时请求遥测数据。
API 活动
grok-imagine-video-1.5 API 使用量与请求活动
查看最近统计窗口内 grok-imagine-video-1.5 的请求量和成功推理活动。
grok-imagine-video-1.5 价格
grok-imagine-video-1.5 API 价格与计费
下方价格来自当前模型的 Flatkey 定价数据,以及定价 API 返回的可见分组。
充值余额
图像、视频、音频和文本模型共用同一个 Flatkey 余额和 API Key。
- 模型类型
- 文生视频
- API
- /v1/videos
- 计费依据
- 秒
- 时长
- 1–15s
- 画面比例
- adaptive
grok-imagine-video-1.5 AI 视频生成器与 API: 核心能力
xAI 的 grok-imagine-video-1.5 路由支持 文本 · 图像 · 视频。目录分类:Marketing。
grok-imagine-video-1.5视频生成
通过 /v1/videos 将文字简报转换为视频生成结果。
grok-imagine-video-1.5参考工作流
当 grok-imagine-video-1.5 路由接受参考媒体或上下文时,可使用已有参考进行创作。
grok-imagine-video-1.5渠道适配版本
将一个创意调整为店铺、营销活动或内容流水线所需的不同版本。
grok-imagine-video-1.5生产交接
将确认后的结果从提示词探索带入可重复的 Flatkey 生成工作流。
对比
grok-imagine-video-1.5 API 对比:能力与访问方式
在调整集成前,将 grok-imagine-video-1.5 的目录事实与上一代基线进行对比。
| 能力 | 上一代 | grok-imagine-video-1.5 |
|---|---|---|
| 供应商 | 此目录快照未验证 | xAI |
| 模态 | 此目录快照未验证 | 文本 · 图像 · 视频 |
| 上下文 | 此目录快照未验证 | 目录未列出上下文窗口 |
| 端点 | 此目录快照未验证 | /v1/videos |
| 计费 | 此目录快照未验证 | $0.088 per second |
接入前先选对请求方式
核对支持的工作流、当前配置的实时费用,以及 Flatkey 实际使用的参数契约。
当目录提供固定单价时,根据当前 Playground 配置和实时目录价格计算。
- 当前配置
- 5s
- 实时单价
- $0.088 / 秒
- 本次预估
- $0.440 $0.088 × 5s
最终费用以实际提交的请求和账户分组为准。Token 或分层计费无法简化成一个固定预估值。
工作流与 Model ID
只使用标记为可用的工作流。Flatkey 对外保持一个模型 ID,由请求体选择输入方式。
文生视频
通过文本提示词和支持的输出参数生成视频。
- 模型 ID
grok-imagine-video-1.5- 接口
/v1/videos
图生视频
让一张或多张参考图动起来,并尽量保持主体与构图。
- 模型 ID
grok-imagine-video-1.5- 接口
/v1/videos
参数兼容矩阵
以下取值与 Playground 和请求预览使用同一份模型配置。
duration时长1–15
默认值: 5image参考素材上限1 个文件
接口: /v1/videos从首次测试到生产接入
Playground 与 API 使用同一套请求契约,并明确处理参数校验、余额、任务状态和产物获取。
请求生命周期
- 1
校验模型、提示词、参考素材和输出设置。
- 2
提交 POST 请求并保存返回的任务 ID。
- 3
轮询任务状态或处理已配置的回调。
- 4
从产物接口获取文件,并在失效前保存到自己的存储。
生产检查项
提交前拦截不支持的尺寸、时长、比例、格式或参考素材数量。
分别处理无效密钥、余额不足、限流和账户分组价格。
明确指出被拒绝的提示词或素材,让用户只替换失败的输入。
保留任务 ID,限制重试次数,且不能把超时当成生成成功。
提示词库
grok-imagine-video-1.5 视频生成提示词示例
先使用一个面向视频生成的 grok-imagine-video-1.5 提示词,再调整 Playground 中显示的请求字段。
使用 Seedance 2.0 生成
Creative direction: A 2D animated woman in a library opens a teal book and watches a glowing origami bird emerge from the pages. The bird circles the room and flies toward the window as the sky outside turns pink at sunset. Visual treatment: Flat 2D storybook animation with clean contours and a warm sunset transition. Shot sequence: 1. Establish the illustrated woman opening the teal library book.; 2. Let the glowing origami bird rise and circle among the shelves.; 3. Follow it toward the window as the exterior sky becomes sunset pink. Continuity: Keep the character's face, clothing and key prop consistent; preserve screen direction across cuts. Exclude: extra people or props, text, logos and watermarks.
使用 Seedance 2.0 生成
Creative direction: In a flat 2D illustrated desk scene, a woman opens a folded white articulated lamp beside her notebook. Its two jointed arms extend and the existing light panel tilts over the page. She writes one short line as the work surface becomes evenly lit. Visual treatment: Clean 2D illustration with consistent lamp joints, soft graphic light and a limited cream-and-blue palette. Shot sequence: 1. Show the folded lamp and unlit notebook; 2. Extend the existing joints and tilt the light panel over the page; 3. Hold the illuminated writing surface with the lamp geometry unchanged Continuity: Keep the product silhouette, cap or hinge, materials and prop positions stable; hold the final hero frame. Exclude: extra people or props, text, logos and watermarks.
使用 Seedance 2.0 生成
Creative direction: An illustrated traveler stands on a bridge at sunset reading a green map. Red vehicles pass behind while a hot-air balloon drifts overhead; the camera eases closer to the map and returns to the layered city view. Visual treatment: Illustrated travel scene with layered city depth, sunset colors and clear graphic silhouettes. Shot sequence: 1. Establish the traveler and green map on the sunset bridge.; 2. Ease toward the map while red vehicles pass behind.; 3. Widen back to include the drifting balloon and layered city. Continuity: Maintain scene geography, subject scale and motivated light direction throughout the camera move. Exclude: extra people or props, text, logos and watermarks.
使用 Seedance 2.0 生成
Creative direction: A masked blue ninja runs across a neon rooftop and snaps open a large white paper umbrella as a shield. Track the sprint from the side and hold as the umbrella fills the frame against the glowing city. Visual treatment: Stylized ninja animation with blue costume, white paper and neon background contrast. Shot sequence: 1. Track the masked blue ninja sprinting across the rooftop.; 2. Keep the hand visible as the white paper umbrella snaps open.; 3. Stop on the braced shield pose with the umbrella dominant in frame. Continuity: Maintain character design, equipment geometry and travel direction from first to final frame. Exclude: extra people or props, text, logos and watermarks.
使用 Seedance 2.0 生成
Creative direction: A flat illustrated presenter rearranges three cards showing a sprout, a bush, and a mature tree. The presenter points from the first stage to the final tree while the camera holds the simple infographic layout. Visual treatment: Flat vector explainer with consistent outlines, simple plant cards and limited colors. Shot sequence: 1. Hold the presenter and three growth-stage cards in a flat layout.; 2. Rearrange the sprout, bush and tree into a clear progression.; 3. Follow the pointing hand from the sprout to the final tree and pause. Continuity: Keep demonstration props, layout and hand contact consistent so the action remains legible. Exclude: extra people or props, text, logos and watermarks.
使用 Seedance 2.0 生成
Creative direction: A flat graphic musician in a blue suit plays an electronic keyboard on a pale yellow background. Red ribbon-like waveforms grow behind the performer with each phrase, ending in a wide band across the frame. Visual treatment: Flat graphic music animation with a blue suit, pale yellow field and red waveforms. Shot sequence: 1. Establish the blue-suited musician at the keyboard.; 2. Grow red ribbon waveforms behind the figure in successive phrases.; 3. Hold the completed wide waveform band on the pale yellow background. Continuity: Keep the main subject, palette and light behavior consistent as the visual pattern develops. Exclude: extra people or props, text, logos and watermarks.
为什么使用 grok-imagine-video-1.5 API
为什么通过 Flatkey 使用 grok-imagine-video-1.5?
通过一个网关管理 grok-imagine-video-1.5、账户控制以及模型目录中的其他模型。
一个 API 使用 grok-imagine-video-1.5
明确保留 grok-imagine-video-1.5 模型 ID 和端点,同时与其他工作负载共用 Flatkey 密钥。
实时目录价格
发送请求前查看当前 grok-imagine-video-1.5 计费维度,并在账户中确认最终预估。
实用的模型交接
在公开 Playground 中测试 grok-imagine-video-1.5 提示词,再将相同设置带入经过身份验证的集成。
用量与路由控制
集中管理 grok-imagine-video-1.5 的密钥、配额和路由,无需改变应用面向供应商的工作流。
grok-imagine-video-1.5 API
grok-imagine-video-1.5 API 集成指南
使用上方模型 ID 调用 /v1/videos;为当前路由保留已记录的请求字段和计费单位。
curl https://router.flatkey.ai/v1/videos \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-***" \ -d '{"model":"grok-imagine-video-1.5","prompt":"Creative direction: A 2D animated woman in a library opens a teal book and watches a glowing origami bird emerge from the pages. The bird circles the room and flies toward the window as the sky outside turns pink at sunset.\n\nVisual treatment: Flat 2D storybook animation with clean contours and a warm sunset transition.\n\nShot sequence: 1. Establish the illustrated woman opening the teal library book.; 2. Let the glowing origami bird rise and circle among the shelves.; 3. Follow it toward the window as the exterior sky becomes sunset pink.\n\nContinuity: Keep the character'"'"'s face, clothing and key prop consistent; preserve screen direction across cuts.\nExclude: extra people or props, text, logos and watermarks.","duration":5}' # Poll for the result (replace TASK_ID with the returned task id) curl "https://router.flatkey.ai/v1/videos/TASK_ID" \ -H "Authorization: Bearer sk-***"
常见问题
grok-imagine-video-1.5 API
价格、功能与使用常见问题
关于 grok-imagine-video-1.5 价格、能力、端点访问和目录限制的答案。