providers/xAI
xAI · Palo Alto, CA

xAI models on AIgateway — pricing, context, capabilities

xAI ships 19 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, no seat fees, no minimum.

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

xAI audio-stt models

1 audio-stt model from xAI.

Grok STT
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
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
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
Grok Imagine Image Quality
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/edit
Edit images precisely with xAI's Grok Imagine model
$0.020 / image
text

xAI text models

7 text models from xAI.

Grok 4.5
★ featured
xai/grok-4.5
xAI's Grok 4.5, a frontier model built for coding, agentic tasks, and knowledge work. Accepts text and image inputs, and supports function calling, structured outputs, and configurable reasoning effort (low, medium, high).
$1.00 in · $1.00 out / 1M500,000 ctx
Grok 4.20 Multi-Agent
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
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
Grok Imagine Video (Edit Video)
xai/grok-imagine-video/edit-video
Edit videos using xAI's Grok Imagine
$0.050 / sec
Grok Imagine Extend Video
xai/grok-imagine-video/extend-video
Extend videos with xAI's Grok Imagine video model
$0.050 / sec
Grok Imagine Video (Image To Video)
xai/grok-imagine-video/image-to-video
Generate videos from images with audio using xAI's Grok Imagine Video model.
$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 19 xAI models including Grok 4.5. 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.5"). Request and response shapes are identical to OpenAI.
How much do xAI models cost on AIgateway?
Pass-through xAI pricing. 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 adds no platform fee on those calls.
Where is xAI based?
xAI is headquartered in Palo Alto, CA.
Is there free credit?
A payment method is required to call the API — adding a card is free and never charges you, and grants $1 in credit across a curated trial catalog led by GLM-5.2. The $1 expires 30 days after you add the card. Paid xAI models require a $5 minimum credit top-up.
Other providers

Browse other labs

AnthropicOpenAIGoogleMoonshotDeepSeekMetaMistralAlibabaDeepgramBlack Forest LabsBAAIAll providers →