59 Models →
100K GPU Colossus Flagship

xAI Grok 3 API Pricing, Token Economics & Architecture (2026)

xAI Grok 3 API pricing, token spend calculator, mathematical reasoning benchmarks, and Colossus supercluster inference performance.

Input Token Price
$3.00
Per 1 Million Tokens
Output Token Price
$15.00
Per 1 Million Tokens
Prompt Cache Read
$1.500
Up to 90% Savings
Context Window
131,072
Tokens Max Input

Interactive 30-Day xAI Grok 3 Production Spend Simulator

Model your estimated monthly API expenditure with live prompt caching discounts and batch processing economics.

Daily Input Tokens: 10,000,000
Daily Output Tokens: 2,000,000
Prompt Cache Hit Rate (%): 60%
Estimated Monthly Bill
$0.00
Savings from Prompt Caching: $0.00
Based on 30-day billing cycle • Excludes applicable taxes

Multi-Provider Price Arbitrage & Latency Matrix

Real-time benchmark comparison of xAI Grok 3 hosting endpoints, token pricing, Time-To-First-Token, and context limits.

Provider / Host Input / 1M Output / 1M Cached Read Speed Context Limit Key SLA & Capabilities
xAI Official (Grok 3)$3.00$15.00$1.50 (50%)70 tok/s131KTrained on Colossus 100K H100 cluster, native search grounding
xAI Grok 3 Mini$0.60$3.00$0.30 (50%)110 tok/s131KHigh-speed reasoning model for math and code
xAI Batch Mode$1.50$7.50N/AAsync (24h)131K50% off for queued bulk evaluations

Independent Benchmark & Coding IQ Evaluations

Standardized evaluation metrics demonstrating software engineering, mathematical logic, and agentic reasoning performance.

Evaluation Benchmark Score Benchmark Category & Meaning
MATH-50093.2%Advanced Mathematical Olympiad
MMLU-Pro79.4%Multi-Discipline Reasoning
LiveBench AI71.2%Uncontaminated Benchmark
HumanEval88.4%Code Synthesis

Architectural Deep-Dive & Serving Economics

Hardware sizing, KV-cache memory footprints, and attention mechanisms dictating operational unit economics.

Neural Architecture Massive Dense/MoE Multimodal Model trained on 100,000 Liquid-Cooled H100s
Active Parameters Proprietary Sparse/Dense Network
KV Cache Footprint Optimized Attention Mechanisms
Reasoning Mechanism Integrated 'Think' chain-of-thought capabilities
Time-To-First-Token (TTFT) Approx. 400 ms average across global inference clusters
Throughput Speed 70 tok/s generation velocity

Real-World Production Cost Modeling

Modeled scenarios for real engineering workloads showing exact token volume calculations and financial ROI.

Scenario 1: Real-Time Financial Market Sentiment

Analyzing Live Breaking News & Social Telemetry

Synthesizing 10,000 market rumors, SEC filings, and executive posts to identify microeconomic supply chain shocks.

$75.00 per daily report Native live X search grounding avoids paying for separate third-party news scrapers
Scenario 2: Advanced Physics & Engineering Simulation

Aerodynamic & Propulsion Calculations

Formulating Navier-Stokes fluid dynamics boundary approximations with extensive multi-step mathematical reasoning.

$1.80 per simulation brief Achieves Olympiad-level mathematical accuracy
Scenario 3: High-Context Competitive Intelligence

Quarterly Competitor Product Roadmap Analysis

Auditing 20 technology competitors across patent filings and hiring trends.

$36.00 total run Provides unfiltered, candid architectural trade-off evaluations

Production Implementation & Real-Time Cost Tracking

Copy-paste Python code with streaming token usage calculation and cost auditing.

from openai import OpenAI

# Connect to xAI's OpenAI-compatible endpoint
client = OpenAI(
    api_key="your_xai_api_key",
    base_url="https://api.x.ai/v1"
)

response = client.chat.completions.create(
    model="grok-3",
    messages=[
        {"role": "user", "content": "Analyze the latest breakthroughs in fusion tokamak stellarator designs..."}
    ]
)

usage = response.usage
cost = (usage.prompt_tokens / 1e6 * 3.00) + (usage.completion_tokens / 1e6 * 15.00)
print(f"Grok 3 Cost: ${cost:.6f} | Output: {response.choices[0].message.content[:80]}...")

Frequently Asked Developer Questions

In-depth answers to common questions regarding tokens, caching, rate limits, and compliance.

What is the difference between Grok 3 and Grok 3 Mini?

Grok 3 is the flagship frontier model ($3.00/M in, $15.00/M out) designed for state-of-the-art reasoning and multimodal analysis. Grok 3 Mini is an 80% cheaper ($0.60/M in, $3.00/M out) high-speed reasoning model specialized for STEM and code.

Does Grok 3 have real-time web access?

Yes, Grok 3 features native search grounding across real-time global web data and the live X firehose.

What is the context window of Grok 3?

Grok 3 supports 131,072 tokens of context.

Does xAI offer prompt caching for Grok 3?

Yes, xAI automatically caches prompt prefixes longer than 1,024 tokens at a 50% discount ($1.50/M cached reads).

How was Grok 3 trained?

Grok 3 was trained on xAI's 'Colossus' supercomputer in Memphis, Tennessee, featuring 100,000 liquid-cooled NVIDIA H100 GPUs.

Does Grok 3 support OpenAI SDK compatibility?

Yes, xAI provides a fully compliant OpenAI-compatible REST endpoint at `https://api.x.ai/v1`.

Colossus 100k GPU Supercluster Architecture, Reasoning Throughput & API Pricing Dynamics

xAI's flagship Grok-3 represents a pinnacle in massive-scale foundation model engineering, trained on the monumental 100,000 NVIDIA H100 liquid-cooled "Colossus" supercluster in Memphis. Grok-3 delivers state-of-the-art benchmark performance across complex reasoning, competitive code generation, and multidisciplinary scientific evaluation, surpassing GPT-4o and Claude 3.5 Sonnet across MATH, GPQA, and SWE-bench Verified. Grok-3 is offered in both standard autoregressive completion and deep thinking reasoning configurations with dynamic chain-of-thought token generation.

Grok-3 API Pricing Tiers & Production Latency Matrix

Model Variant Input Rate / 1M Output Rate / 1M Context Window P95 Latency (TTFT)
Grok-3 Standard $3.00 $15.00 131,072 tokens 420 ms
Grok-3 Deep Thinking $3.00 $15.00 (Incl. CoT) 131,072 tokens 1,650 ms
Grok-3 Mini $0.20 $1.00 131,072 tokens 280 ms

Production xAI API Integration in Python

Call Grok-3 using the OpenAI SDK format with temperature controls:

from openai import OpenAI
import os

client = OpenAI(
    api_key=os.environ["XAI_API_KEY"],
    base_url="https://api.x.ai/v1"
)

response = client.chat.completions.create(
    model="grok-3",
    messages=[
        {"role": "system", "content": "You are an expert distributed systems engineer."},
        {"role": "user", "content": "Architect a multi-region Raft consensus engine with sub-10ms failover."}
    ],
    temperature=0.2
)
print(response.choices[0].message.content)

Colossus Real-Time Search & Live X Grounding

A unique capability of Grok-3 is its native real-time grounding in the live X (formerly Twitter) platform firehose and web search index. Rather than relying on static pre-training cutoffs, Grok-3 synthesizes breaking global events, real-time developer sentiment, and active zero-day software vulnerabilities as they occur, providing unmatched situational intelligence for market intelligence and security operations teams.

xAI Colossus Cluster Interconnect & High Concurrency SLAs

Operating across 100,000 liquid-cooled H100 GPUs interconnected via 3.2 Tbps optical network fabrics, xAI's Colossus cluster delivers sustained high-concurrency inference with median generation latencies under 450 milliseconds. For mission-critical enterprise workflows, xAI provisioned throughput agreements guarantee dedicated compute reservations with 99.95% availability SLAs.

4.9 out of 5
★★★★★
Developer Community Benchmark Rating
Verified across 189 community production token & cost audits
Rate this benchmark: