Token Quota Checker
Advertisement 728x90 Leaderboard / Responsive Ad Slot
Frontier Commercial LLM APIs

xAI API Pricing & Models

Official verified rates for xAI models.

Model Name Skills (0–100) Input / 1M Cached Input / 1M Output / 1M Context
Grok 4.20
85
$3.00 $0.750 $15.00 256,000

Side-by-Side xAI Comparisons

Most-Searched xAI FAQs (Overview)

Key answers covering xAI billing, caching, and quotas. Open the full FAQ hub below for rate limits and primary vendor documentation.

How do you maximize Grok Prompt Caching hits on the xAI API?

Pass a consistent session UUID in the x-grok-conv-id HTTP header (or prompt_cache_key in the Responses API) and strictly append new turns without editing earlier messages so xAI routes requests to the server holding your KV slice.

When does xAI apply long-context pricing on Grok models?

When total prompt tokens in a request cross the 200,000-token threshold, xAI switches the request to its long-context rate card (typically doubling base input/output per-million token prices).

How does xAI enforce burst protection and usage tier upgrades?

xAI scales Tiers 0 through 4 permanently based on cumulative spend ($0 to $5,000+) and caps bursts using Requests Per Second (RPS) derived from RPM / 48 (minimum 2 RPS).

Want deeper xAI FAQs & official vendor sources?

Open the dedicated FAQ hub for detailed caching TTLs, batch/off-peak schedules, rate-limit tiers, and primary source links.

Read Detailed xAI FAQ Hub β†’
Advertisement 300x250 Medium Rectangle / Responsive Ad Slot