xAI Bring Your Own Key Guide
Connect your own xAI API key to run AI models in the Playground and Compare tool with zero accounts. Follow the official key setup steps below, review how the stateless proxy operate, and verify your credentials on the Keys page.
How to Get a xAI API Key
Follow these four steps using the official xAI console, then validate your key on /keys.
- Sign in to the xAI Console.
- Open API Keys and click Create API Key.
- Assign the desired model access permissions and copy the key.
- Save the key locally on the Keys page.
How Bring Your Own Key Works With xAI
xAI REST endpoints require server-side calls; requests route through the stateless /api/proxy/xai endpoint.
Official API Base: https://api.x.ai/v1
Official documentation: https://docs.x.ai/docs/api-reference#chat-completions
xAI Supported Models
Models from our directory confirmed on xAI's official model list, loaded from data/model-availability.json with provider-specific IDs, pricing, and requirements.
Consult xAI's Official Live Model List
Enter any official model ID from xAI's documentation directly in the AI Text Generator or Compare tool using Custom Model ID mode (for example grok-3-mini).
Frequently Asked Questions
Does xAI Call Directly From the Browser or Through a Proxy?
xAI REST endpoints require server-side calls; requests route through the stateless /api/proxy/xai endpoint.
Are My xAI Credentials Stored on Your Server?
No. Your xAI key stays in browser local storage only and is never logged, cached, or stored server-side.