Skip to main content

Grok API key setup

xAI's Grok models — frontier reasoning, vision, voice, and image/video generation through one API. Usage-based pricing, no minimums.

Get your key

  1. Open the Grok API keys page: console.x.ai/
  2. Create an account and generate an API key.
  3. Paste it into the Dracon key manager — stored encrypted (AES-256-GCM), used browser-direct, works in every Dracon tool.

Free tier

No recurring free tier advertised as of the last check (2026-07-10). Usage is billed per the provider's listed pricing — you pay them directly, no Dracon markup.

Rate limits: Usage-based, no minimums; per-model rate limits apply (see xAI docs)

Connection details

Base URL
https://api.x.ai/v1
API shape
OpenAI-compatible
Env var
XAI_API_KEY
Models
grok-4, grok-3, grok-3-mini
Model lineup
Grok 4.5, Grok 4.3, Grok 4.20 (reasoning), Grok 4.20 (non-reasoning), Grok 4.20 Multi-Agent
Add your Grok key Build a fallback chain Compare free tiers