Seedance 2.0 API — 即将上线Get early access

Grok Imagine Video API

使用 xAI 的 Grok Imagine 将创意转化为 6-10 秒动态视频。提供 fun、normal、spicy 三种风格模式,无需视频编辑技能即可创作。

A futuristic city at sunset

Parameters
Duration
6s
Mode
normal
Type
T2V
Base Price (6s)
4.6 Credits
Sample Result

No sample available

0 (suggested: 2,000)

Click Generate to see preview

History

最多保留20条

0 运行中 · 0 已完成

您的生成历史将显示在这里

xAI Grok Imagine Video API 创意视频生成

从文本或图片生成 6-10 秒视频,支持 fun、normal、spicy 三种风格模式。

Grok Imagine Video API 展示

Pricing

Popular
Text to Video
Text to Video
resolution:480p
duration:6s
Price:
$0.0639/ video
(4.6 Credits)
Text to Video
Text to Video
resolution:480p
duration:10s
Price:
$0.1278/ video
(9.2 Credits)
Text to Video
Text to Video
resolution:720p
duration:6s
Price:
$0.1278/ video
(9.2 Credits)
Text to Video
Text to Video
resolution:720p
duration:10s
Price:
$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 将文本提示转换为动态视频。选择 fun、normal 或 spicy 模式来匹配您的创意愿景。

文生视频展示

图生视频动画

使用 Grok Imagine 的图生视频功能让静态图片动起来。上传图片并描述您想要的动作。

图生视频展示

规模化创意内容

快速生成多个视频变体,用于社交媒体、营销活动或创意项目。

内容扩展展示

为什么选择 Grok Imagine Video API

Grok Imagine Video API 提供灵活的视频生成功能,具有独特的风格模式,适合创意内容创作。

多种风格模式

选择 fun、normal 或 spicy 模式来匹配您的创意愿景和内容需求。

文本和图片支持

从文本提示生成视频或为现有图片添加自然动作。

灵活的时长

创建 6 秒或 10 秒视频,支持多种宽高比选项。

如何使用 Grok Imagine Video API

按照以下步骤使用 Grok Imagine Video API 生成视频。

1

准备输入

编写文本提示或准备图片 URL 用于图生视频。

2

配置参数

设置时长(6秒或10秒)、模式(fun/normal/spicy)和宽高比。

3

生成并下载

提交请求并在准备好后下载生成的视频。

Grok Imagine Video API 核心功能

来自 xAI 的强大视频生成能力。

T2V

文生视频

直接从文本描述生成视频,支持自定义参数。

I2V

图生视频

将静态图片动画化为具有自然动作的动态视频。

模式

风格模式

选择 fun、normal 或 spicy 模式获得不同的创意效果。

时长

灵活时长

根据需求生成 6 秒或 10 秒视频。

格式

宽高比

支持 16:9、9:16 和 1:1 宽高比,适配不同平台。

API

简单集成

通过 Evolink AI 统一接口轻松集成 API。

Grok Imagine Video API 常见问题

Everything you need to know about the product and billing.

Grok Imagine Video API 是 xAI 的视频生成服务,可从文本提示或图片创建视频。支持多种风格模式和时长选项。
Grok Imagine 提供三种风格模式:fun(有趣和创意)、normal(平衡和自然)、spicy(大胆和戏剧性)。
您可以使用 Grok Imagine Video API 生成 6 秒或 10 秒的视频。
文生视频支持 16:9(横屏)、9:16(竖屏)和 1:1(方形)宽高比。
POST
/v1/videos/generations

Create 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-video

Video generation model name.

Examplegrok-imagine-text-to-video
promptstringRequired

Text prompt describing the video content to generate.

ExampleA cat playing piano in a cozy room
durationintegerOptionalDefault: 6

Video duration in seconds.

ValueDescription
66 seconds
1010 seconds
Example6
qualitystringOptionalDefault: 480p

Video resolution quality.

ValueDescription
480pStandard definition (default)
720pHigh definition
Example480p
modestringOptionalDefault: normal

Style mode for video generation.

ValueDescription
funPlayful and creative style
normalBalanced and natural style
spicyBold and dramatic style
Examplenormal
aspect_ratiostringOptionalDefault: 16:9

Video aspect ratio (Text-to-Video only).

ValueDescription
16:9Landscape
9:16Portrait
3:2Landscape
2:3Portrait
1:1Square
Example16:9
callback_urlstringOptional

HTTPS callback address after task completion.

Notes
  • Triggered on completion, failure, or cancellation
  • HTTPS only
  • Max length: 2048 chars
  • Timeout: 10s, Max 3 retries
Examplehttps://your-domain.com/webhooks/video-completed

Request Example

{
  "model": "grok-imagine-text-to-video",
  "prompt": "A cat playing piano in a cozy room",
  "duration": 6,
  "quality": "480p",
  "mode": "normal",
  "aspect_ratio": "16:9"
}

Response Example

{
  "created": 1757169743,
  "id": "task-unified-1757169743-abc123",
  "model": "grok-imagine-text-to-video",
  "object": "video.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 120,
    "video_duration": 6
  },
  "type": "video",
  "usage": {
    "billing_rule": "per_call",
    "credits_reserved": 4.6,
    "user_group": "default"
  }
}
Grok Imagine Video API: 文生视频 & 图生视频 | Evolink AI