Grok 4.7 is xAI's language model with a 524K context window and up to 450K output tokens, available from 13 providers, starting at $2.00 / 1M input and $6.00 / 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 Window524K tokens
Max Output450K tokens
Input ModalitiesImagePDFText
Output ModalitiesText
Reasoning Effortsdefault
Release Date · 2 months ago
Deprecation Date
Benchmarks
Intelligence Index
#26
HLE
#35
Time to First Token
#575
SciCode
#20
LCR
#53
Output TPS
#203

Capabilities

Input3/5
Text✓
Image✓
Audio·
Video·
PDF✓
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities7/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
ProviderStandardFlexFastBatch
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Cache Write 5m
$ / 1M
Web Search
$ / request
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Web Search
$ / request
Amazon Bedrock logo
Amazon Bedrock
global.xai.grok-4.7
$2.20$6.60$0.66N/AN/A$1.10$3.30$0.33$3.85$11.55$1.16$1.10$3.30N/AN/A
Azure AI Foundry logo
Azure AI Foundry
azure_ai/grok-4.7
$2.00$6.00$0.5N/AN/A——————————
Databricks logo
Databricks
databricks/databricks-grok-4-7
$2.50$7.50$0.625$2.50N/A——————————
GitHub Models logo
GitHub Models
github_copilot/grok-4.7
$2.00$6.00$0.5N/AN/A——————————
GMI Cloud logo
GMI Cloud
gmi/xai/grok4.7
$2.00$6.00$0.5N/AN/A——————————
Google Vertex AI logo
Google Vertex AI
vertex_ai/xai/grok-4.7
$2.00$6.00$0.5N/AN/A——————————
Kyma
kyma/grok-4.7
$2.16$6.48$0.54N/AN/A——————————
Opencode Go
opencode_go/grok-4.7
$2.00$6.00$0.5N/AN/A——————————
OpenRouter logo
OpenRouter
x-ai/grok-4.7
$2.00$6.00$0.5N/A$0.0050——————N/AN/AN/AN/A
OpenRouter logo
OpenRouter
x-ai/grok-4.7:batch
———————————$1.60$4.80$0.4$0.0050
Perplexity logo
Perplexity
perplexity/xai/grok-4.7
$2.00$6.00$0.5N/AN/A——————————
Snowflake logo
Snowflake
grok-4.7
$2.40$7.20N/AN/AN/A——————$1.20$3.60N/AN/A
Vercel AI Gateway logo
Vercel AI Gateway
spacexai/grok-4.7
$2.00$6.00$0.5N/AN/A———$4.00$12.00$1.00————
xAI logo
xAI
grok-4.7
$2.00$6.00$0.5N/AN/A——————$1.00$3.00$0.25N/A

Cost Calculator

US Dollar ($)
Preset:

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
Grok 4.7524K$2.00$6.00Current
Grok 4.62.0M$2.00$6.00Deprecating
Grok 4.52.0M$2.00$6.00Deprecated
Grok 4.31.0M$1.25$2.50Deprecating
Grok 4.3 Batch1.0M$1.00$2.00Available
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 Multi-Agent2.0M$1.00$2.00Available
Grok 4.20 Non-Reasoning2.0M$1.25$2.50Deprecating
Grok 4.20 Non-Reasoning2.0M$1.00$2.00Available

Model IDs

azure_ai/grok-4.7
bedrock_mantle/us-gov-east-1/xai.grok-4.7
bedrock_mantle/us-gov-west-1/xai.grok-4.7
bedrock_mantle/xai.grok-4.7
databricks/databricks-grok-4-7
github_copilot/grok-4.7
global.xai.grok-4.7
gmi/xai/grok4.7
grok-4-7
grok-4-7-high
grok-4-7-low
grok-4.7
kyma/grok-4.7
opencode_go/grok-4.7
openrouter/x-ai/grok-4.7
perplexity/xai/grok-4.7
spacexai/grok-4.7
us-gov.xai.grok-4.7
us.xai.grok-4.7
vertex_ai/xai/grok-4.7
x-ai/grok-4.7
xai-grok-4-7
xai.grok-4.7
xai/grok-4.7