Skip to main content
Stateless Proxy · Bring Your Own Key

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.


Onboarding

How to Get a xAI API Key

Follow these four steps using the official xAI console, then validate your key on /keys.

  1. Sign in to the xAI Console.
  2. Open API Keys and click Create API Key.
  3. Assign the desired model access permissions and copy the key.
  4. Save the key locally on the Keys page.
Source: xAI API ReferenceVerified 2026-11-30

Transport & Security

How Bring Your Own Key Works With xAI

xAI REST endpoints require server-side calls; requests route through the stateless /api/proxy/xai endpoint.

Transport Path:Stateless Proxy (/api/proxy/xai)

Official API Base: https://api.x.ai/v1

Official documentation: https://docs.x.ai/docs/api-reference#chat-completions


Confirmed Availability

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.

Related Tools and Key Management