LLM Reference

Grok Imagine Video on Vercel AI Gateway

Grok Image · xAI

Serverless

Last refreshed 2026-05-22. Next refresh: weekly.

Why use Grok Imagine Video on Vercel AI Gateway?

Vercel AI Gateway offers Grok Imagine Video with competitive pricing. Vercel AI Gateway is a unified AI proxy providing a single OpenAI-compatible API endpoint to 275+ models from 25+ providers including Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, xAI, Alibaba, Amazon, ByteDance, Cohere, MiniMax, MoonshotAI, KwaiPilot, Black Forest Labs, Recraft, Voyage AI, NVIDIA, and more.

Input / 1M
-
Output / 1M
-
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
export AI_GATEWAY_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
Model ID
xai/grok-imagine-video

Request example

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
    base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
    model="xai/grok-imagine-video",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Gotchas

  • Use provider model ID "xai/grok-imagine-video", not the LLMReference slug "grok-imagine-video".
  • creator/model-name e.g. kwaipilot/kat-coder-pro-v2
  • The examples expect AI_GATEWAY_API_KEY; rename it only if your application config maps the new variable.

Capabilities

Multimodal

About Grok Imagine Video

Grok Imagine Video is the xAI video-generation API model. The official API model ID is grok-imagine-video; Runware is a third-party distribution platform, not part of the canonical slug.

FAQ

What API model ID do I use for Grok Imagine Video on Vercel AI Gateway?

Use the model ID xai/grok-imagine-video when calling Vercel AI Gateway's API.

Who created Grok Imagine Video?

Grok Imagine Video was created by xAI as part of the Grok Image model family.

Is Grok Imagine Video open source?

Grok Imagine Video is not open source; the seed data lists it as proprietary.

Get Started

Model Specs

Released2025-01-01
Architecturevideo-diffusion

Related Models on Vercel AI Gateway