providers/xAI
xAI · Palo Alto, CA

xAI models on AIgateway — pricing, context, capabilities

xAI ships 2 models on AIgateway spanning text. 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 · 2modalities · textlocation · Palo Alto, CA
text

xAI text models

2 text models from xAI.

Grok 4
★ featured
xai/grok-4
xAI Grok 4 — frontier reasoning, tool use, long context.
$5.00 in · $15.00 out / 1M256,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
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 2 xAI models including Grok 4. 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"). 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?
AIgateway's free tier is 100 requests/day on Kimi K2.6 — any account can test without a card. Paid xAI models require a $5 minimum credit top-up.
Other providers

Browse other labs

AnthropicOpenAIGoogleMoonshotDeepSeekMetaMistralAlibabaDeepgramBlack Forest LabsBAAIAll providers →