Model API

xAI · Grok

xAI · source page ↗ · last checked Nov 16, 2026, 12:00 PM

Current pricing

● live captured Nov 16, 2026, 12:00 PM
Model / itemInputOutput
grok-4.3$1.25 / 1M tokens$2.50 / 1M tokens · Chat API; 1M context. Cached input: $0.20 / 1M tokens
grok-4.20-multi-agent-0309$1.25 / 1M tokens$2.50 / 1M tokens · Chat API; 1M context. Cached input: $0.20 / 1M tokens
grok-4.20-0309-reasoning$1.25 / 1M tokens$2.50 / 1M tokens · Chat API; 1M context. Cached input: $0.20 / 1M tokens
grok-4.20-0309-non-reasoning$1.25 / 1M tokens$2.50 / 1M tokens · Chat API; 1M context. Cached input: $0.20 / 1M tokens
grok-build-0.1$1.00 / 1M tokens$2.00 / 1M tokens · Chat API; 256k context. Cached input: $0.20 / 1M tokens
grok-imagine-image$0.002 / image (media input)$0.02 / image (1K and 2K resolution) · Image generation (Text, Image to Image)
grok-imagine-image-quality$0.01 / image (media input)$0.05 / image (1K); $0.07 / image (2K) · Image generation (Text, Image to Image)
grok-imagine-video$0.01 / sec + $0.002 / image (media input)$0.05 / sec (480p); $0.07 / sec (720p) · Video generation (Text, Image, Video to Video)
grok-imagine-video-1.5-preview$0.01 / image (media input)$0.08 / sec (480p); $0.14 / sec (720p) · Video generation (Image to Video)
Voice — Realtime$0.05 / min ($3.00 / hr) · Voice Agent API
Voice — Realtime Text Input$0.004 / message · Voice Agent API
Voice — Text to Speech$15.00 / 1M characters
Voice — Speech to Text$0.10 / hr (REST); $0.20 / hr (Streaming)
Tool — Web Search$5 / 1k calls · Server-side tool invocation (web_search); billed on top of token usage
Tool — X Search$5 / 1k calls · Server-side tool invocation (x_search); billed on top of token usage
Tool — Code Execution$5 / 1k calls · Server-side tool invocation (code_execution / code_interpreter)
Tool — File Attachments$10 / 1k calls · Server-side tool invocation (attachment_search)
Tool — Collections Search (RAG)$2.50 / 1k calls · Server-side tool invocation (collections_search / file_search)
File storage$0.025 / GiB / day · Files and collections pricing
Collection storage$0.10 / GiB / day · Files and collections pricing
File / Collection downloads$0.20 / GiB downloaded · Flat rate per GiB transferred
Grok$2.00 / 1M tokens$6.00 / 1M tokens
VisionStarting at $0.02 / image—
Real-time AudioStarting at $0.02 / sec—

Usage/token API pricing (no subscription tiers). All prices in USD. IMPORTANT: the requested page itself (https://docs.x.ai/docs/models) currently contains NO price table — it only carries model-selection guidance, model aliases, image-input limits, and knowledge-cutoff notes (page last updated May 29, 2026). The verified prices above were extracted from the companion canonical pricing page https://docs.x.ai/docs/pricing (last updated May 27, 2026), which explicitly states "for per-model details, see the models page" — they are the same xAI docs set. Note: an automated WebFetch summary of the /docs/models URL fabricated a pricing table that did not exist on that page, so figures were re-verified against the raw /docs/pricing scrape. Batch API: text/language models billed at 20%-50% off standard rates (image/video generation billed at standard rates in Batch). Image Understanding, X Video Understanding, and Remote MCP tools are token-based (no flat invocation fee). Prices subject to change.

Rate & usage limits ● livestructure only

This provider doesn't publish numeric request/token limits on its docs — only the usage-tier structure below. Your actual limits appear in your account dashboard.

Tier Notes
Tier 0 $0 spend threshold (default). Per-model RPS limits vary by model (e.g., 37 RPS for grok-4.20 models, 150 RPS for grok-4.7). TPM limits vary by model (e.g., 10M for grok-4.20 models, 50M for grok-4.7).
Tier 1 $50 cumulative spend threshold. Per-model RPS limits vary (e.g., 50 RPS for grok-4.20, 172 RPS for grok-4.7). TPM limits vary (e.g., 15M for grok-4.20, 53M for grok-4.7).
Tier 2 $250 cumulative spend threshold. Per-model RPS limits vary (e.g., 75 RPS for grok-4.20, 208 RPS for grok-4.7). TPM limits vary (e.g., 25M for grok-4.20, 60M for grok-4.7).
Tier 3 $1,000 cumulative spend threshold. Per-model RPS limits vary (e.g., 125 RPS for grok-4.20, 312 RPS for grok-4.7). TPM limits vary (e.g., 45M for grok-4.20, 74M for grok-4.7).
Tier 4 $5,000 cumulative spend threshold. Per-model RPS limits vary (e.g., 208 RPS for grok-4.20, 500 RPS for grok-4.7). TPM limits vary (e.g., 85M for grok-4.20, 100M for grok-4.7).
Enterprise Available on request; contact sales@x.ai for custom limits.

Limits are per-model and measured in RPS (requests per second) and TPM (tokens per minute). RPM is not published; per-second limit is derived from per-minute request budget (RPM / 48, minimum 2). Image & video model limits require sales contact. View personalized limits in xAI Console.

Source: https://docs.x.ai/developers/rate-limits

In the news · xAI

Importance-filtered press coverage (Google News) mentioning xAI. Headlines link to the original; verify before acting.

Change history