← Back
Vercel
Vercel AI Gateway adds Grok Imagine Video for text-to-video and video editing
Vercel AI SDKVercel · featureintegrationapimodel · vercel.com ↗

Grok Imagine Video Now Available

Vercel has integrated xAI's Grok Imagine Video into its AI Gateway, providing developers with a powerful video generation tool that produces high-quality clips with realistic motion and natural audio. The model is now available for Pro and Enterprise plan subscribers, as well as paid AI Gateway users.

Key Capabilities

Video Generation Features:

  • Text-to-video: Generate videos from text descriptions with configurable duration and resolution (up to 1280x720)
  • Video editing: Transform existing videos by changing style, swapping objects, or altering scenes
  • Audio generation: Native audio synthesis with expressive voices and accurate lip-sync
  • Fast generation: Creates clips in seconds rather than minutes
  • Instruction following: Handles complex prompts and follow-up instructions for scene tweaking

Getting Started

Developers can access Grok Imagine Video through three methods:

  1. v0 Grok Creative Studio: A template-based UI for creating and showcasing video generations without code
  2. AI SDK 6: Use the generateVideo() function to integrate video generation programmatically with full control over model parameters
  3. AI Gateway Playground: Experiment with no-code tools, compare providers, tweak prompts, and download results directly in the browser

Implementation Example

The AI SDK integration is straightforward:

const { videos } = await generateVideo({
  model: 'xai/grok-imagine-video',
  prompt: 'Your text description',
  aspectRatio: '16:9',
  duration: 3,
});

Advanced features like reference-to-video transformations enable style transfer and scene modifications by passing video URLs and transformation prompts.