Grok API Pricing Calculator 2026

Grok API Pricing Calculator 2026 | xAI Cost Estimator
calculatorsonline.co.uk

Grok API Pricing Calculator

Estimate your monthly and annual token and context-caching costs for Grok 2, Grok 2 Mini, and Grok 2 Vision models from xAI in 2026. Custom configure automatic prompt caching rates and real-time search grounding.

⚔ Grok 2 Flagship
🧠 128k Context
šŸ’¾ Prompt Cache Hit
šŸ’Ž X Search Grounding

Token & Workload Parameterizer

Configure Grok model endpoints, context hit rates, and search grounding add-ons

šŸ”Œ Grok Model Endpoint

Endpoints represent parsing configurations optimized for complex token processing, real-time reasoning, and multimodal integration.

šŸ“Š Token Throughput Quantities

Your expected monthly prompt, history metadata, and structural system instructions.

50%

xAI supports prompt caching. Repeated preamble segments, document retrievals, or history logs receive a massive 50% discount on input rates.

Defines the ratio of generated output tokens relative to input queries.

šŸ› ļø Advanced Parsing Parameters
Real-time Search Inject real-time search grounding from X platform (+ $0.50 / M input)
Dedicated Cluster Dedicated server cluster with zero rate-limit throttle (+ $0.20 / M total)

Enabling these elements guarantees immediate relevance and massive concurrent latency optimizations.

Calculated Cost Summary

Annual & Monthly API token expenditure matrix

⚔

Select your active model endpoint, adjust your monthly token volume, configure caching hit percentages, and hit Calculate to evaluate your costs.

Grok API Specifications

Detailed pricing breakdowns per 1,000,000 tokens across core text and multimodal vision feeds for 2026.

Model Endpoint / Integration Feed Cache Miss Rate (Per Million) Cache Hit Rate (Per Million) Output Rate (Per Million)
Grok 2 (Flagship Reasoning)$2.00$1.00$10.00
Grok 2 Vision (Multimodal)$2.00$1.00$10.00
Grok 2 Mini (High Speed Unified)$0.60$0.30$2.40
Grok Beta / 1.5 (Standard)$5.00$2.50$15.00
Grok 1.5 Vision (Visual Legacy)$5.00$2.50$15.00

Grok API FAQ

Answers to critical questions regarding context caching, thinking token calculations, and platform rate-limiting.

The Grok API (developed by xAI) provides developers with programmatic access to state-of-the-art language and vision models, including the flagship Grok 2, Grok 2 Vision, and high-speed Grok 2 Mini models, known for advanced real-time reasoning capabilities.

Pricing is calculated on a Cost-Per-Million (CPM) tokens model. Fees are divided into input tokens (with 50% discounts for cached prompts) and generated output tokens. Prices start as low as $0.60/M input tokens and $2.40/M output tokens for Grok 2 Mini.

Yes. xAI supports context/prompt caching for Grok API calls. When matching preambles, system instructions, or long document contexts are reused across consecutive requests, cached input tokens receive a 50% discount on standard rates.

X Search Grounding integrates xAI’s real-time information engine to query real-time facts and conversations before generating responses. In the API, enabling search grounding adds an additional surcharge of $0.50 per million input tokens.

At $2.00 per million input tokens and $10.00 per million output tokens, Grok 2 is highly competitive with major Western frontier models while offering state-of-the-art performance on code generation and multi-step reasoning tasks.

Similar Posts