Models / xAI / Grok 4.5
xAI

Grok 4.5

BYOKClosedReleased 8 Jul 2026

A closed, large-context model from xAI, released July 2026, priced above the registry median. Its strongest results are on mathematics and science, with a 500k context window and reasoning mode.

Read the full description ↓

Spec sheet

Family
xAI
Released
8 Jul 20265 months ago
Weights
Closed
Context window
500k tokens
Largest response
500k tokens
Accepts
text, image, file
Supports
tools, reasoning, structured output
Knowledge cutoff
–
Intelligence index
65.3#38
Input price
$2 / 1M
Output price
$6 / 1M
Blended price (3:1)
$3 / 1M
Index points per $
21.8#74
Speed
61 tokens/sec#104
Popularity
#75 of 194by usage
Providers
2

Benchmarks

Score · rank among models tested

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
xAIBYOKxai:grok-4.5 $2$0.3$6$3
OpenRouterBYOKopenrouter:x-ai/grok-4.5 $2$0.3$6$3

Every provider charges the same. Blended price assumes three input tokens for each output token.

Example code

# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['XAI_API_KEY'] = '...'

agent = Agent('xai:grok-4.5', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)

Ask Grok 4.5 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

Grok 4.5vsGemini 3.6 Flash
Intelligence indexOur composite of the benchmarks below, 0-100
Grok 4.565.3
Gemini 3.6 Flash65.6
GPQA DiamondGraduate-level science questions, multiple choice
Grok 4.593.4%
Gemini 3.6 Flash94.1%
OTIS Mock AIMECompetition mathematics problems with exact answers
Grok 4.597.8%
Gemini 3.6 Flash94.2%
FrontierMathOriginal research-level mathematics problems, tiers 1 to 3
Grok 4.557.2%
Gemini 3.6 Flash58.9%
ARC-AGI-2Abstract visual puzzles that test learning a new rule from a few examples
Grok 4.552.6%
Gemini 3.6 Flash60.4%
SimpleQA VerifiedShort factual questions answered from memory, without search
Grok 4.548.3%
Gemini 3.6 Flash66.2%
SciCodeScientific programming problems written by researchers
Grok 4.555%
Gemini 3.6 Flash53.4%
WebDev ArenaRating from human votes on web apps the models built
Grok 4.51555.1
Gemini 3.6 Flash1537
APEX-AgentsLong professional tasks (banking, consulting, law) passed on the first attempt
Grok 4.556.2%
Gemini 3.6 Flash46.9%
LMArena textRating from blind human votes between pairs of chat responses
Grok 4.51447.9
Gemini 3.6 Flash1479.3
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
Grok 4.5155
Gemini 3.6 Flash155.2
Input pricePer 1M tokens, lower is better
Grok 4.5$2
Gemini 3.6 Flash$0.75
Output pricePer 1M tokens, lower is better
Grok 4.5$6
Gemini 3.6 Flash$3.75
EfficiencyIndex points per blended $
Grok 4.522
Gemini 3.6 Flash44
SpeedOutput tokens per second
Grok 4.561 t/s
Gemini 3.6 Flash124 t/s
Context windowTokens
Grok 4.5500k
Gemini 3.6 Flash1M
Model stringFor Pydantic AI
Grok 4.5xai:grok-4.5
Gemini 3.6 Flashgateway/google-cloud:gemini-3.6-flash

About Grok 4.5

Description written by an LLM from the data on this page

A closed, large-context model from xAI, released July 2026, priced above the registry median. Its strongest results are on mathematics and science, with a 500k context window and reasoning mode.

Grok 4.5 is a closed model from xAI, released in July 2026. It accepts text, image and file input, supports tool calling, structured output and reasoning mode, and offers a 500k context window. It is served by xAI and OpenRouter. Its overall Intelligence index of 65.3 ranks 40th of 114, above the registry median of 59.5.

The model's clearest results are in mathematics and science. It scores 97.8% on OTIS Mock AIME and 93.4% on GPQA Diamond, both above their medians. Its results on abstract reasoning and research-level mathematics are weaker: 52.6% on ARC-AGI-2 and 57.2% on FrontierMath both fall below the registry medians. Factual recall on SimpleQA Verified is close to the median, and agentic professional tasks on APEX-Agents are slightly above it.

Price is the main drawback. At $3 per million tokens blended, it costs roughly three times the registry median, and it ranks 132nd of 194 on price. Its knowledge cutoff is not stated.

Strengths

  • 97.8% on OTIS Mock AIME, 32nd of 95, above the 94.2% median
  • 93.4% on GPQA Diamond, 21st of 94, above the 89.8% median
  • 500k context window and 500k largest response
  • Accepts text, image and file input, with tool calling and structured output

Weaknesses

  • Blended price $3 per million tokens, well above the $1.01 median
  • 52.6% on ARC-AGI-2, 43rd of 68, below the 61.3% median
  • 57.2% on FrontierMath, 49th of 80, below the 64.6% median

Best for

Math and science-heavy agent tasks with long inputs, where tool calling and structured output are needed and cost is less of a concern.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs