← Back to API models

Grok 4.5

by xAI · new Opus-class flagship · released July 8, 2026

xAI's new flagship — faster, more token-efficient, and lower cost than the prior generation, ranked near the top of the Artificial Analysis Intelligence Index.

Input $2 / 1M
Output $6 / 1M
Context 500K
Tier Flagship
xAI Console ↗ Updated July 9, 2026
§ API pricing

Per-token rates.

Input
$2/1M tokens
Prompt tokens
  • Same rate as Grok 4.20
  • Cached input at $0.50 / 1M
  • Surcharge above 200K tokens
Output
$6/1M tokens
Completion tokens
  • Includes reasoning tokens
  • Low/medium/high effort configurable
  • 3× the input rate
Context
500Ktokens
Window
  • Higher-context surcharge above 200K
  • Web search, X search, code exec
  • Function calling supported
Caching
$0.50/1M cached input
Prompt caching
  • 75% discount on cached input
  • Reuse large system prompts cheaply
  • Available via the xAI API

Grok 4.5 keeps the flagship rate at $2 / 1M input and $6 / 1M output, with cached input at $0.50 / 1M. A higher-context surcharge applies to requests above 200K tokens.

What's new in Grok 4.5

xAI revealed Grok 4.5 in private beta on June 28, 2026, then launched it for developers on July 8 and to the public on July 9. xAI calls it an Opus-class model — faster, more token-efficient, and lower cost than the Grok 4.20 flagship it replaces, at the same $2 / $6 per-1M headline rate. It reportedly ranks near the top of the Artificial Analysis Intelligence Index, a strong showing for a model priced well below Claude Opus 4.8.

The model ships a 500K-token context window with configurable low/medium/high reasoning effort, function calling, web and X search, and code execution. Prompt caching cuts cached input to $0.50 / 1M — a 75% discount — which matters for agents that reuse large system prompts.

Capabilities

Grok 4.5 is built for coding and agentic work: tool-use loops, code execution, and real-time retrieval from the web and X. Its token efficiency and low output price make it attractive for high-volume agent runs, while native X search keeps its edge on current events and social context. Availability spans the xAI API console, Grok Build, Cursor, OpenRouter, Vercel, Cloudflare, and Microsoft Office add-ins.

Typical use cases

  • Coding agents and IDE integrations
  • Real-time research over the web and X/Twitter
  • High-volume agent loops where token efficiency matters
  • Function-calling and tool-use pipelines
  • Current-events analysis and social monitoring

Sibling and rival comparison

ModelInput / 1MOutput / 1MContext
Grok 4.5$2$6500K
Grok 4.1 Fast$0.20$0.502M
Claude Opus 4.8$5$251M
GPT-5.6 Sol$5$301M
Gemini 3.1 Pro$2$121M

Grok 4.5 undercuts the other flagships sharply on output price — half of Gemini 3.1 Pro and a fifth of GPT-5.6 Sol — while claiming Opus-class quality. For the longest contexts and cheapest tokens, Grok 4.1 Fast remains xAI's speed-and-scale option.

← See all Grok / xAI plans