Model API

xAI · Grok

xAI · source page ↗ · last checked Aug 24, 2026, 12:00 PM

Current pricing

● live captured Aug 24, 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 (Text)$2.00 / 1M tokens$6.00 / 1M tokens
AgentStarting at $0.05 / min
TTS$15.00 / 1M chars
STT (Batch)$0.10 / hour
STT (Streaming)$0.20 / hour
Image (1K / 2K)Starting at $0.02 / image
Video (480p / 720p / 1080p)Starting at $0.05 / 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 Default tier at $0 spend. Per-model limits vary (e.g., grok-4.6: 150 RPS / 50M TPM). View personalized limits in console.
Tier 1 $50 cumulative spend. Per-model limits scale exponentially (e.g., grok-4.6: 172 RPS / 53M TPM).
Tier 2 $250 cumulative spend. Per-model limits increase further (e.g., grok-4.6: 208 RPS / 60M TPM).
Tier 3 $1,000 cumulative spend. Per-model limits continue to scale (e.g., grok-4.6: 312 RPS / 74M TPM).
Tier 4 $5,000 cumulative spend. Highest published tier (e.g., grok-4.6: 500 RPS / 100M TPM).
Enterprise Available on request via sales@x.ai. Custom limits negotiated.

Limits are per-model and expressed as RPS (requests per second) and TPM (tokens per minute). Exact limits vary by model. All limits are viewable only in xAI Console dashboard; numeric limits not published here except in per-model table. RPS is derived from RPM/60 to prevent burst spending.

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