Grok 4.7 is xAI's language model with a 500K context window and up to 450K output tokens, available from 3 providers, starting at $1.20 / 1M input and $3.60 / 1M output. A flagship reasoning LLM with vision, tool-use, and structured-output support, specialized for long-running software engineering and agentic coding tasks.
Specifications
Canonical IDxai-grok-4-7
TypeLanguage
StatusActive
CreatorxAIxAI
Providers
Context Window500K tokens
Max Output450K tokens
Input ModalitiesImagePDFText
Output ModalitiesText
Reasoning Effortsdefault
Release Date · 2 days ago
Benchmarks
Intelligence Index
#8
HLE
#20
Time to First Token
#383
SciCode
#12
LCR
#68
Output TPS
#194

Capabilities

Input3/5
Text
Image
Audio·
Video·
PDF
Output1/5
Text
Image·
Audio·
Video·
Embedding·
Capabilities6/13
Reasoning
Adaptive Reasoning·
Function Calling
Parallel Function Calling·
Structured Outputs
Native JSON Schema
Web Search
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching
Assistant Prefill·

Pricing by Provider

US Dollar ($)
Per 1M tokens
ProviderStandardFastBatch
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Web Search
$ / request
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
OpenRouter logo
OpenRouter
x-ai/grok-4.7
$1.60$4.80$0.4$0.0050
Vercel AI Gateway logo
Vercel AI Gateway
spacexai/grok-4.7
$1.20$3.60$0.3N/A$2.40$7.20$0.6
xAI logo
xAI
grok-4.7
$2.00$6.00$0.5N/A$1.00$3.00$0.25

Cost Calculator

US Dollar ($)
Preset:

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
Grok 4.7500K$1.20$3.60Current
Grok 4.6524K$2.00$6.00Available
Grok 4.5500K$2.00$6.00Available
Grok 4.31.0M$1.25$2.50Available
Grok 4.202.0M$1.25$2.50Available
Grok 4.20 Multi-Agent2.0M$1.25$2.50Available
Grok 4.20 Multi-Agent Beta2.0M$1.25$2.50Available
Grok 4.20 Non-Reasoning2.0M$1.25$2.50Available
Grok 4.20 Reasoning2.0M$1.25$2.50Available
Grok 4.1 Reasoning2.0M$0.200$0.500Deprecated
Grok 4.1 Fast2.0M$1.25$2.50Deprecated

Model IDs

grok-4-7
grok-4-7-high
grok-4.7
openrouter/x-ai/grok-4.7
spacexai/grok-4.7
x-ai/grok-4.7
xai-grok-4-7
xai/grok-4.7