xAI Grok · LLM API pricing
Grok 4.5 API pricing: cheapest provider
2 providers sell Grok 4.5. xAI is cheapest, and listed prices are close.
- Cheapest$3.00per 1M · xAI
- Input · output$2.00 / $6.00per 1M tokens
- Price gap1.0×across 2 providers
- Context2Mmax tokens
Standard list prices in USD from each provider's pricing page · last price change Nov 8, 2026 · How we collect and rank prices
Ranked for your volume
Grok 4.5 monthly cost by provider
Change the monthly tokens and the ranking updates instantly, using each provider's standard list price.
More requirements: caching, context, features, provider
Cheapest provider for your volume
xAI
Same price at all 2 options
| Provider | Estimated / month | Input / 1M | Output / 1M | Cached input / 1M | Context |
|---|---|---|---|---|---|
1 | $120.00 | $2.00 | $6.00 | $0.30 | 500K |
2 | $120.00 | $2.00 | $6.00 | $0.50 | 2M |
Order depends on listed price for your volume only. No provider pays for its position.
What this estimate leaves out
Input volume includes the cached share, not an additional token volume. This is a list-price estimate, not a quote: cache-write charges, cache eligibility/TTL, batch discounts, long-context surcharges, regional pricing and taxes are excluded. Check the provider's terms for your workload before switching.
Price history
The cheapest price has not changed since tracking started on Sep 28, 2026: $3.00 per 1M tokens at xAI. All price changes
Switch to the cheapest provider
Already using the OpenAI SDK? Change the base URL, key and model name.
Show the code
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.x.ai/v1",
api_key=os.environ["XAI_API_KEY"],
)
response = client.chat.completions.create(
model="grok-4.5",
messages=[{"role": "user", "content": "Hello"}],
)Compare Grok 4.5 with another model
Or pick any model
Before you pick a provider
The developer's own API (xAI) has the lowest listed blended price for Grok 4.5.
Context windows differ by provider, from 500K to 2M tokens. A cheaper host may not accept your longest prompts.
2 of 2 providers list a cached-input price. Repeated system prompts or documents can cost much less there than the standard input rate shown above.