[SpaceXAI](/ai-gateway/models/labs/xai)

# Grok Imagine

Grok Imagine is SpaceXAI's video generation model. It creates video clips from text prompts and images with motion, generated audio, and lip-sync, available through Vercel AI Gateway. Your use is subject to SpaceXAI's [Terms](https://x.ai/legal/terms-of-service) & [Privacy](https://x.ai/legal/privacy-policy) Policies.

image-to-videotext-to-videovideo-editingaudio-generation

[Use with AI Gateway](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%3Futm_source%3Dgateway-model-page%26utm_campaign%3Dai-gateway-models&title=Get+Started+with+Vercel+AI+Gateway) [View docs](https://vercel.com/docs/ai-gateway)

```
1import { experimental_generateVideo as generateVideo } from 'ai';
2

3const result = await generateVideo({
4  model: 'xai/grok-imagine-video',
5  prompt: 'A serene mountain lake at sunrise.'
6});
```

[Read docs](https://vercel.com/docs/ai-gateway/sdks-and-apis/ai-sdk)

[Overview](/ai-gateway/models/grok-imagine-video) [API](/ai-gateway/models/grok-imagine-video/api) [About](/ai-gateway/models/grok-imagine-video/about) [Providers](/ai-gateway/models/grok-imagine-video/providers) [Similar](/ai-gateway/models/grok-imagine-video/similar) [FAQ](/ai-gateway/models/grok-imagine-video/faq)

## [Copy link to heading](#playground)Playground

Try out Grok Imagine by SpaceXAI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75)Grok Imagine

Images(optional)

Add up to 5 images

Video to edit(optional)

Prompt(optional)

###

Duration8s

Resolution

Auto

480p

720p

Aspect ratio

Auto1:116:99:164:33:43:22:3

Videos to generate

1234

![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=96&q=75)

Your generated video will appear here.

## [Copy link to heading](#providers)Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the [docs](/docs/ai-gateway/provider-options) for more info. Using a provider means you agree to their terms, listed under Legal.

| Provider |
| --- |

| Input | Output | Capabilities | ZDR | No Training | Release Date |  |
| --- | --- | --- | --- | --- | --- | --- |

| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [SpaceXAI](/ai-gateway/models/providers/xai) Legal:[Terms](https://x.ai/legal/terms-of-service)•[Privacy](https://x.ai/legal/privacy-policy) | $0.002/img$0.01/sec | $0.05/sec+1 more |  |  |  | 01/28/2026 |  |
| --- | --- | --- | --- | --- | --- | --- | --- |

## [Copy link to heading](#more-models-by-spacexai)More models by SpaceXAI

All

Text

Code

| Model |
| --- |

| Context | Latency | Throughput | Input | Output | Cache | Web Search | Capabilities | Providers | ZDR | No Training | Release Date |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |

| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.6](/ai-gateway/models/grok-4.6) | 500K | 1.8s | 62tps | $2/M+1 more | $6/M+1 more | Read: $0.5/M+1 more Write: — | $5/K \+ input costs | +1 | ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) |  |  | 08/12/2026 |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.5](/ai-gateway/models/grok-4.5) | 500K | 1.9s | 59tps | $2/M+1 more | $6/M+1 more | Read: $0.3/M+1 more Write: — | $5/K \+ input costs | +3 | ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) |  |  | 07/08/2026 |  |
| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.3](/ai-gateway/models/grok-4.3) | 1M | 0.8s | 168tps | $1.25/M+1 more | $2.50/M+1 more | Read: $0.2/M+1 more Write: — | $5/K \+ input costs | +3 | ![vertex logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) |  |  | 04/30/2026 |  |
| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.20-non-reasoning](/ai-gateway/models/grok-4.20-non-reasoning) | 2M | 0.3s | 71tps | $1.25/M+1 more | $2.50/M+1 more | Read: $0.2/M+1 more Write: — | $5/K \+ input costs | +2 | ![vertex logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) |  |  | 03/10/2026 |  |
| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.1-fast-non-reasoning](/ai-gateway/models/grok-4.1-fast-non-reasoning) | 1M | 0.4s | 79tps | $0.20/M | $0.50/M | Read:$0.05/M Write:— | — | +1 | ![vertex logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) |  |  | 11/19/2025 |  |
| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.1-fast-reasoning](/ai-gateway/models/grok-4.1-fast-reasoning) | 1M | 1.3s | 134tps | $0.20/M | $0.50/M | Read:$0.05/M Write:— | — | +2 | ![vertex logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) |  |  | 11/19/2025 |  |

## [Copy link to heading](#about-grok-imagine)About Grok Imagine

Grok Imagine is SpaceXAI's video generation model, released January 28, 2026 and available through Vercel AI Gateway. It generates video clips from text descriptions and static images with motion, instruction following, and support for complex prompts and follow-up instructions to refine scenes.

The model supports three primary generation modes: text-to-video (creating clips from text descriptions), image-to-video (generating motion from static images), and video editing (modifying existing video content through style changes, object replacement, and scene alterations). It also generates audio timed to the video with lip-sync, so you can skip separate voice recording for many workflows. Grok Imagine produces short clips quickly enough for iterative creative workflows. You can call it from the AI SDK's generateVideo function or the v0 Grok Creative Studio. Video generation is currently available to Pro and Enterprise plan subscribers and paid AI Gateway users.

## [Copy link to heading](#what-to-consider-when-choosing-a-provider)What To Consider When Choosing a Provider

- Configuration: Video generation is currently limited to Pro and Enterprise plans, as well as paid AI Gateway users. Verify your plan supports video generation before integrating.
- Configuration: Grok Imagine understands follow-up instructions to tweak scenes. Use iterative prompting to refine output rather than trying to get the perfect result in a single generation.
- Zero Data Retention: Zero Data Retention is offered on a per-provider and model basis. See the [documentation](https://vercel.com/docs/ai-gateway/security-and-compliance/zdr) for details.
- Authentication: AI Gateway authenticates requests using an [API key](https://vercel.com/docs/ai-gateway/authentication-and-byok#api-key-authentication) or [OIDC token](https://vercel.com/docs/ai-gateway/authentication-and-byok#oidc-token-authentication). You do not need to manage provider credentials directly.

## [Copy link to heading](#when-to-use-grok-imagine)When to Use Grok Imagine

### Best for

- Marketing and social media video content: Where custom clips are needed at scale without traditional video production
- Product demos and explainer videos: That visualize concepts, features, or workflows through generated scenes
- Creative prototyping and storyboarding: Teams iterate on visual concepts before committing to full production
- Content creation pipelines: That generate short video assets programmatically for personalization or A/B testing
- Lip-synced video with native audio: For talking-head content, presentations, or character-driven narratives

### Consider alternatives when

- Static image generation: Grok Imagine Image or Grok Imagine Image Pro handles the task without video overhead
- Long-form video production: Traditional editing tools provide more control over extended content
- Free-tier usage: Video generation currently requires a paid plan

## [Copy link to heading](#conclusion)Conclusion

Grok Imagine brings AI video generation into the Vercel AI Gateway ecosystem. It supports text-to-video, image-to-video, video editing, and audio in one pipeline. Iterative prompting and short clip latency fit production workflows that need custom video without full traditional production.