LiteLLMLiteLLM/ MODELS

Grok 4.5 vs Grok 4.6

As of November 23, 2026, Grok 4.5 and Grok 4.6 cost the same: $2.00 per 1M input tokens and $6.00 per 1M output tokens, and both have a 500K-token context window.

Prices from LiteLLM's price fileChecked

Grok 4.5 vs Grok 4.6 side by side

Headline prices in US dollars per 1M tokens: each model's own lab where it sells it, otherwise its cheapest provider. Source: LiteLLM model price file, as of November 23, 2026.
Grok 4.5Grok 4.6
Input, per 1M tokens$2.00$2.00
Output, per 1M tokens$6.00$6.00
Cache read, per 1M tokens$0.30$0.50
Cache write, per 1M tokens––
Context window500,000 tokens500,000 tokens
Max output500,000 tokens500,000 tokens
Image inputYesYes
Tool callingYesYes
Structured output (JSON)YesYes
Prompt cachingYesYes
ReasoningYesYes
Providers on LiteLLM611
Price shown is fromxAIxAI
Added to LiteLLMJuly 9, 2026August 13, 2026

Cheapest provider for each

Benchmark scores

From the Epoch AI Benchmarking Hub (CC BY 4.0), data as of August 27, 2026. Some results were run by Epoch and others collected by Epoch from each benchmark's own leaderboard, linked in the first column. Each model's best reported reasoning setting is shown in brackets. Higher is better. Only benchmarks with a score for both models are shown.
BenchmarkGrok 4.5Grok 4.6
Overall
Epoch Capabilities Index155.0157.8
Coding and agents
FrontierCode42.4%48.0%
APEX-Agents56.2%65.3%
Reasoning and knowledge
GPQA Diamond93.4% (high)94.0% (high)
ARC-AGI-252.6% (high)67.1% (xhigh)
SimpleQA Verified48.3% (high)49.3% (high)
Math
FrontierMath (tiers 1-3)57.2% (high)66.0% (xhigh)
FrontierMath (tier 4)24.4% (high)31.7% (xhigh)
OTIS Mock AIME 2024-202597.8% (high)99.2% (xhigh)

Call Grok 4.5 or Grok 4.6 with LiteLLM

Both use the OpenAI format through LiteLLM, so switching is a model name change. Set each provider's API key in the environment first.

Python SDK
from litellm import completion

messages = [{"role": "user", "content": "Hello!"}]

# Grok 4.5
response = completion(model="xai/grok-4.5", messages=messages)

# Grok 4.6
response = completion(model="xai/grok-4.6", messages=messages)

# Grok 4.5, falling back to Grok 4.6 if the call fails
response = completion(model="xai/grok-4.5", messages=messages, fallbacks=["xai/grok-4.6"])

FAQ

Which is cheaper, Grok 4.5 or Grok 4.6?

They cost the same: $2.00 per 1M input tokens and $6.00 per 1M output tokens, as of November 23, 2026.

Which has the larger context window, Grok 4.5 or Grok 4.6?

Both have a 500,000-token context window.

Can I switch from Grok 4.5 to Grok 4.6 without changing my code?

Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "xai/grok-4.5" to "xai/grok-4.6", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.