providers/xAI
xAI · Palo Alto, CA

xAI models on AIgateway — pricing, context, capabilities

xAI ships 18 models on AIgateway spanning audio-stt, audio-tts, image, text, video. Call any of them via the OpenAI-compatible endpoint at api.aigateway.sh/v1 with one key. Pass-through inference pricing plus a 5% platform fee at credit top-up. No per-call markups, no seat fees, no minimum.

Get your key →See pricingVisit xAI
models · 18modalities · audio-stt, audio-tts, image, text, videolocation · Palo Alto, CA
audio-stt

xAI audio-stt models

1 audio-stt model from xAI.

Grok STT
★ featured
xai/grok-stt
xAI's Grok speech-to-text model. Transcribes audio files into text across 25 languages with word-level timestamps, multichannel transcription, speaker diarization, and key-term biasing.
$0.0017 / min
audio-tts

xAI audio-tts models

1 audio-tts model from xAI.

Grok TTS
★ featured
xai/grok-tts
xAI's Grok text-to-speech model. Generates high-fidelity spoken audio in 5 expressive voices (eve, ara, rex, sal, leo) with 20+ supported languages. Supports inline speech tags for laughter, whispers, and pauses.
$0.0150 / 1k chars
image

xAI image models

3 image models from xAI.

Grok Imagine Image Quality
★ featured
xai/grok-imagine-image-quality
xAI's higher-fidelity text-to-image model optimized for sharper details, more accurate compositions, and stronger text rendering. Supports image editing via reference images and masks. Trades speed for quality compared to grok-imagine-image. Default output at 2k resolution.
$0.050 / image
Grok Imagine Image
xai/grok-imagine-image
xAI's Grok Imagine image model. Generates and edits images from text and reference-image inputs with configurable aspect ratio and resolution.
$0.020 / image
Xai Grok Imagine Image Edit
xai/grok-imagine-image/edit
$0.020 / image
text

xAI text models

6 text models from xAI.

Grok 4.20 Multi-Agent
★ featured
xai/grok-4.20-multi-agent-0309
xAI's Grok 4.20 multi-agent model with a 2M-token context window. Multiple agents collaborate in parallel to perform deep research tasks, with function calling, structured outputs, and reasoning capabilities.
$2.00 in · $6.00 out / 1M2,000,000 ctx
Grok 4.20 Non-Reasoning
xai/grok-4.20-0309-non-reasoning
xAI's Grok 4.20 non-reasoning model. Skips the thinking trace for fast, single-pass responses while keeping the same training as the reasoning variant.
$2.00 in · $6.00 out / 1M2,000,000 ctx
Grok 4.20 Reasoning
xai/grok-4.20-0309-reasoning
xAI's Grok 4.20 reasoning model. Uses extended thinking to work through complex problems, returning a reasoning trace alongside the final answer.
$2.00 in · $6.00 out / 1M2,000,000 ctx
Grok 4.3
xai/grok-4.3
xAI's Grok 4.3 model with a 1M-token context window and strong agentic tool calling with minimal hallucinations. Accepts text and image inputs, and supports function calling, structured outputs, and configurable reasoning effort (none, low, medium, high).
$1.25 in · $2.50 out / 1M1,000,000 ctx
Grok 4 Fast
xai/grok-4-fast
xAI Grok 4 Fast — low-latency variant.
$0.500 in · $2.00 out / 1M256,000 ctx
Grok 4
xai/grok-4
xAI Grok 4 — frontier reasoning, tool use, long context.
$5.00 in · $15.00 out / 1M256,000 ctx
video

xAI video models

7 video models from xAI.

Grok Imagine Video 1.5 Preview
★ featured
xai/grok-imagine-video-1.5-preview
xAI's next-generation video generation model. Generates, edits, and extends videos from text and image inputs. Supports multiple aspect ratios and resolutions with improved quality over the previous generation.
$0.080 / sec
Grok Imagine Video
xai/grok-imagine-video
xAI's video generation model. Generates, edits, and extends videos from text and image inputs with native synchronized audio including dialogue, sound effects, and music. Supports multiple creative modes (normal, fun, custom).
$0.050 / sec
Xai Grok Imagine Video Edit Video
xai/grok-imagine-video/edit-video
$0.050 / sec
Xai Grok Imagine Video Extend Video
xai/grok-imagine-video/extend-video
$0.050 / sec
Xai Grok Imagine Video (Image To Video)
xai/grok-imagine-video/image-to-video
$0.050 / sec
Xai Grok Imagine Video Reference To Video
xai/grok-imagine-video/reference-to-video
$0.050 / sec
Xai Grok Imagine Video V1.5 (Image To Video)
xai/grok-imagine-video/v1.5/image-to-video
$0.010 / sec
About xAI

Who they are, what they focus on

xAI builds the Grok family. Grok 4 is strong on real-time awareness (live search integration), competitive on math and code, and known for a distinctive tone. Good pick when freshness matters.

Headquartered in Palo Alto, CA. Homepage: x.ai.

FAQ

Common questions about xAI on AIgateway

Which xAI models does AIgateway support?
AIgateway routes 18 xAI models including Grok 4.20 Multi-Agent. Full catalog with pricing and context windows is in the sections above.
How do I call a xAI model from my code?
Point the OpenAI SDK at https://api.aigateway.sh/v1 with your AIgateway key and set model to the xAI slug (e.g. "xai/grok-4.20-multi-agent-0309"). Request and response shapes are identical to OpenAI.
How much do xAI models cost on AIgateway?
Pass-through xAI pricing plus a 5% platform fee applied at credit top-up, not per call. No seat fees, no minimum beyond the $5 top-up floor.
Can I bring my own xAI API key (BYOK)?
Yes. Attach your xAI key in the AIgateway dashboard. Calls to xAI models flip to pass-through and AIgateway waives the 5% platform fee on those calls.
Where is xAI based?
xAI is headquartered in Palo Alto, CA.
Is there a free tier?
Every new account gets $5 in signup credit (no card required) spendable on a curated edge-tier shortlist. Paid xAI models require a $5 minimum credit top-up.
Other providers

Browse other labs

AnthropicOpenAIGoogleMoonshotDeepSeekMetaMistralAlibabaDeepgramBlack Forest LabsBAAIAll providers →