Model detail
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 managing long context, and it improves on its predecessor at professional knowledge work such as drafting documents and presentations. The model was trained with a longer reinforcement learning run weighted toward problems that take many hours to complete, and natively understands the Grok Bot harness for conversational tasks. It ships with a new safeguard stack that pairs strong jailbreak resistance with low refusal rates for legitimate cybersecurity and biology work. SpaceXAI's reported benchmark results use the xhigh reasoning effort.
Model specs
- Model ID
-
grok-4.7
- Context length
- 500K
- Max output
- 450K
- I/O modalities
- Released
- 2026-09
02
API endpoints
One MixRoute gateway, OpenAI-compatible
-
OpenAI-compatible
/v1/chat/completionsPOST -
OpenAI-compatible
/v1/responsesPOST
03
Tiered pricing
Unit: /1M Tokens
| Tier | Input /1M Tokens | Output /1M Tokens | Cache read /1M Tokens |
|---|---|---|---|
| standard Length ≤ 200K | $2.0000 | $6.0000 | $0.5000 |
| long_context Length > 200K | $4.0000 | $12.0000 | $1.0000 |
05
Selection summary
Quickly judge whether it fits your workload
What is this model good for?
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.
What should you check before using it?
500,000 context, 450,000 output tokens
grok-4.7 supports reasoning, tool calling, structured output, streaming, prompt caching, vision input and the OpenAI SDK. Knowledge cutoff: 2026-05. Released 2026-09-21.
Why use it through MixRoute?
Swap the base URL, keep the grok-4.7 client
MixRoute serves grok-4.7 on the OpenAI-compatible endpoint /v1/chat/completions; point your existing client at https://api.mixroute.ai/v1 with the model ID grok-4.7 and re-run your integration tests.
07
Capabilities & compatibility
Unconfirmed capabilities stay "Unknown," no guesses
Tool calling
grok-4.7 supports function and tool calls.
tools definition; the response returns tool_calls to execute and feed results back.
Structured output
grok-4.7 can produce JSON-formatted output on demand.
response_format: { type: "json_schema" } forces valid JSON output.
Streaming
grok-4.7 supports streamed responses.
stream: true streams tokens incrementally, so chat UIs render as they arrive.
Prompt caching
grok-4.7 supports prompt caching under supported routing conditions.
Vision input
grok-4.7 can process image inputs alongside text.
image_url content part alongside text messages.
OpenAI SDK
Call grok-4.7 through MixRoute's OpenAI-compatible endpoint.
base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.
08
Token cost estimator
Live estimate from this page's pricing, not an actual bill
Share of the same prefix read repeatedly, up to 100%
09
FAQ
Recorded results for grok-4.7: aa_intelligence_index 79.5; arena_text 87.5. Benchmark positions are a coarse filter only — run your own prompts against the candidate models before you commit, because ranking shifts with task shape and prompt style.
One endpoint, a testable decision
Test this model and alternate routes with the same request format
Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.