Grok Imagine Video API
使用 xAI 的 Grok Imagine 将创意转化为 6-10 秒动态视频。提供 fun、normal、spicy 三种风格模式,无需视频编辑技能即可创作。
A futuristic city at sunset
No sample available
Click Generate to see preview
History
最多保留20条0 运行中 · 0 已完成
xAI Grok Imagine Video API 创意视频生成
从文本或图片生成 6-10 秒视频,支持 fun、normal、spicy 三种风格模式。

Pricing
| Model | Mode | resolution | duration | Price |
|---|---|---|---|---|
| Text to Video | Text to Video | 480p | 6s | Popular $0.0639/ video(4.6 Credits) |
| Text to Video | Text to Video | 480p | 10s | $0.1278/ video(9.2 Credits) |
| Text to Video | Text to Video | 720p | 6s | $0.1278/ video(9.2 Credits) |
| Text to Video | Text to Video | 720p | 10s | $0.1917/ video(13.8 Credits) |
If it's down, we automatically use the next cheapest available—ensuring 99.9% uptime at the best possible price.
使用 Grok Imagine Video API 可以构建什么
为什么选择 Grok Imagine Video API
Grok Imagine Video API 提供灵活的视频生成功能,具有独特的风格模式,适合创意内容创作。
多种风格模式
选择 fun、normal 或 spicy 模式来匹配您的创意愿景和内容需求。
文本和图片支持
从文本提示生成视频或为现有图片添加自然动作。
灵活的时长
创建 6 秒或 10 秒视频,支持多种宽高比选项。
如何使用 Grok Imagine Video API
按照以下步骤使用 Grok Imagine Video API 生成视频。
准备输入
编写文本提示或准备图片 URL 用于图生视频。
配置参数
设置时长(6秒或10秒)、模式(fun/normal/spicy)和宽高比。
生成并下载
提交请求并在准备好后下载生成的视频。
Grok Imagine Video API 核心功能
来自 xAI 的强大视频生成能力。
文生视频
直接从文本描述生成视频,支持自定义参数。
图生视频
将静态图片动画化为具有自然动作的动态视频。
风格模式
选择 fun、normal 或 spicy 模式获得不同的创意效果。
灵活时长
根据需求生成 6 秒或 10 秒视频。
宽高比
支持 16:9、9:16 和 1:1 宽高比,适配不同平台。
简单集成
通过 Evolink AI 统一接口轻松集成 API。
Grok Imagine Video API 常见问题
Everything you need to know about the product and billing.
API Reference
Select endpoint
Authentication
All APIs require Bearer Token authentication.
Authorization:
Bearer YOUR_API_KEY/v1/videos/generationsCreate Video
Grok Imagine Text to Video (grok-imagine-text-to-video) - Generate video from text prompt.
Asynchronous processing mode, use the returned task ID to .
Generated video links are valid for 24 hours, please save them promptly.
Request Parameters
modelstringRequiredDefault: grok-imagine-text-to-videoVideo generation model name.
grok-imagine-text-to-videopromptstringRequiredText prompt describing the video content to generate.
A cat playing piano in a cozy roomdurationintegerOptionalDefault: 6Video duration in seconds.
| Value | Description |
|---|---|
| 6 | 6 seconds |
| 10 | 10 seconds |
6qualitystringOptionalDefault: 480pVideo resolution quality.
| Value | Description |
|---|---|
| 480p | Standard definition (default) |
| 720p | High definition |
480pmodestringOptionalDefault: normalStyle mode for video generation.
| Value | Description |
|---|---|
| fun | Playful and creative style |
| normal | Balanced and natural style |
| spicy | Bold and dramatic style |
normalaspect_ratiostringOptionalDefault: 16:9Video aspect ratio (Text-to-Video only).
| Value | Description |
|---|---|
| 16:9 | Landscape |
| 9:16 | Portrait |
| 3:2 | Landscape |
| 2:3 | Portrait |
| 1:1 | Square |
16:9callback_urlstringOptionalHTTPS callback address after task completion.
Notes
- Triggered on completion, failure, or cancellation
- HTTPS only
- Max length: 2048 chars
- Timeout: 10s, Max 3 retries
https://your-domain.com/webhooks/video-completed

