x-ai / text-generation API-only released 2026-09-21

Grok 4.7

Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...

Input / 1M
$2.00
Output / 1M
$6.00
Context
500K
AA Intelligence
46.4
Closed weights — available only as a hosted API text + image + file → text View on OpenRouter ↗

Pricing

via OpenRouter · USD per 1M tokens · synced 2026-10-24
$2.00
input / 1M
$6.00
output / 1M
$0.50
cached input / 1M
$8.00
1M in + 1M out
Price tiers
  • Above 200K prompt tokens: input $4.00/M, output $12.00/M (2× base)
Context window
500,000 tokens
Max output
450,000 tokens
Providers
1
Cheapest provider
xAI · $2.00 / $6.00
Best throughput
—
AA Intelligence / Coding / Agentic
46.4 / — / —
✓ Tool calling ✓ Reasoning ✓ Structured outputs ✓ Image input ✓ File input ✗ Audio input ✓ Prompt caching

Price history

tracking started — chart appears after 7 days of snapshots (6 recorded)
Current: $2.00 input · $6.00 output per 1M tokens

Benchmarks

Third-party indices as published through OpenRouter — Artificial Analysis and Design Arena. Not measured by us.

AA Intelligence Index
46.4
AA Coding Index
—
AA Agentic Index
—
Design Arena
CategoryEloWin %Rank
3d 1274 48.2% #24
codecategories 1272 48% #29
dataviz 1238 46.1% #40
gamedev 1318 53.1% #12
uicomponent 1274 48.9% #29
website 1252 46% #43

Providers

1 provider · per 1M tokens · last 30 min metrics
ProviderQuantContextInputOutputUptimeTok/s
xAI unknown 500K $2.00 $6.00 100% —
xAI unknown 500K $2.00 $6.00 100% —
xAI unknown 500K $2.20 $6.60 100% —
xAI unknown 500K $4.00 $12.00 — —
xAI unknown 500K $4.00 $12.00 — —
Provider data from OpenRouter's endpoint listing, refreshed daily.

Specifications

Organisation
x-ai
Released on OpenRouter
2026-09-21
Context window
500,000 tokens
Max output
450,000 tokens
Input
text, image, file
Output
text
Tokenizer
Grok
Moderated by provider
No
OpenRouter id
x-ai/grok-4.7
Compare with
Prices, context and providers from the public OpenRouter API, snapshotted daily; benchmark indices from Artificial Analysis. See /methodology.