$0.026
10,000 input tokens cost $0.020 and 1,000 output tokens cost $0.006.
MODEL REFERENCE / XAI
xAI's frontier model for coding, agentic tasks and knowledge work — with verified pricing, long-context economics, API behavior and launch benchmarks separated from interpretation.
QUICK ANSWER
Grok 4.7 is xAI's September 2026 frontier model for coding, long-running agents and professional knowledge work. It accepts text and images, has a 500K-token context window, supports low through xhigh reasoning, function calling and structured outputs, and has no separately documented text-output cap.
For prompts below 200K input tokens, the xAI API lists $2.00 input, $0.50 cached input and $6.00 output per million tokens. Once a prompt reaches the long-context threshold, the request moves to the higher price band.
Released September 21, 2026 · Model ID grok-4.7 · Knowledge cutoff May 2026 · Last SXF verification 2026-10-03
ON THIS PAGE
Jump directly to the part of the model decision you need.
WHAT CHANGED
xAI says Grok 4.7 uses a new, larger base model than Grok 4.6 and received a longer reinforcement-learning run over a harder mix of tasks weighted toward work that can take hours to complete. The release emphasizes better self-verification, longer-context management and stronger performance in coding and knowledge work.
xAI also says the model was trained to understand the Grok Bot harness natively. That matters for conversational and agentic workflows where the model needs to plan, use tools, preserve state and keep working through multi-step tasks rather than stop after one answer.
API PRICING
The price cliff is important: when prompt input reaches the documented threshold, xAI applies the higher rates to the entire request rather than only the tokens beyond 200K.
| Prompt size | Input / 1M | Cached input / 1M | Output / 1M |
|---|---|---|---|
| Below 200,000 prompt tokens | $2.00 | $0.50 | $6.00 |
| At / above 200,000 prompt tokens | $4.00 | $1.00 | $12.00 |
Long-context billing: crossing 200K prompt tokens reprices all applicable tokens in that request at the long-context rates.
Priority processing: xAI documents a 2× premium over standard token rates when a request is actually served at the priority tier.
Regional processing: xAI's Grok 4.7 guide documents a US regional endpoint with a 10% token-price premium; availability can depend on account and model support.
Tool costs: server-side tools can add separate usage charges, so token prices alone are not always the full cost of an agentic request.
COST EXAMPLES
Examples use the published global Standard token rates and exclude optional tool charges, regional premiums and priority processing.
10,000 input tokens cost $0.020 and 1,000 output tokens cost $0.006.
100,000 input tokens cost $0.20 and 10,000 output tokens cost $0.06.
20K uncached input is $0.04, 80K cached input is $0.04, and 10K output is $0.06.
The request is in the long-context tier: 250K input costs $1.00 and 10K output costs $0.12.
xAI API responses expose per-request billed cost through usage.cost_in_usd_ticks. One US dollar equals 10 billion ticks, so production systems can log actual billed request cost instead of relying only on estimates.
API & CAPABILITIES
The model is designed for more than plain text completion: xAI documents structured outputs, external tools, configurable reasoning and long-running agent workflows.
xAI documents Grok 4.7 on the Responses API, including multi-turn reasoning behavior.
Connect the model to application functions, external systems and custom actions.
Constrain responses into predictable machine-readable structures for production workflows.
xAI's Grok 4.7 guide lists web search and X search for information-retrieval workflows.
Use code execution when a workflow benefits from computation, transformation or verification.
High is the documented default. Reasoning cannot be treated as a free extra because reasoning tokens contribute to usage.
The current model page lists 150 RPS; team-level limits can vary with API tier.
The current model page lists 50,000,000 TPM.
xAI currently marks Grok 4.7 as unsupported by Batch API.
MULTI-TURN REASONING
xAI documents a Grok 4.7-specific behavior on the Responses API: responses include reasoning.encrypted_content even when the request does not explicitly ask to include it. For compatible multi-turn reasoning, xAI instructs developers to pass those reasoning items back unchanged in the next request's input.
Chat Completions does not adopt that automatic encrypted-reasoning behavior. This distinction matters when migrating an agent loop between API surfaces: preserve the response items the Responses API returns rather than flattening every turn into plain visible text.
PROMPT CACHING
xAI recommends a stable conversation-routing key so repeat turns are more likely to reach the same server and reuse cached prompt prefixes. On the Responses API that means prompt_cache_key; with Chat Completions, xAI documents the x-grok-conv-id header.
For long-running coding or agent workflows, large repeated prefixes can include system instructions, repository context and tool definitions. If those prefixes repeatedly miss cache, the application can pay the full input rate even though the visible workload has barely changed.
GROK 4.7 FAST
xAI describes Fast as the same model served on faster infrastructure rather than a separately trained capability tier.
xAI says Fast costs twice the normal token rates for standard short-context requests.
The Fast multiplier is lower for long-context requests than for the standard short-context price band.
Fast is not available through the public xAI API. xAI documents it for Cursor and Grok Build, billed through those product plans.
OFFICIAL BENCHMARKS
These are xAI's launch-time figures, not SXF-run tests. Competitor values shown here reproduce the comparison table published by xAI; treat vendor benchmarks as one signal, then validate against your own workload.
| Evaluation | Grok 4.7 xHigh | Grok 4.6 High | GPT-5.6 Sol Max | Fable 5.1 Max |
|---|---|---|---|---|
| CursorBench 4.0 | 46.3% | 40.4% | 41.7% | 51.8% |
| DeepSWE v1.1 | 71.0%* | 65.2% | 72.7% | 70.0% |
| EEBench | 64.0% | 53.0% | 39.4% | 56.4% |
| AA Briefcase v1.1 | 1,657 | 1,546 | 1,487 | 1,678 |
| Terminal-Bench 4.0 | 37.6% | 20.3% | 37.3% | 57.9% |
| Harvey Legal Agent Benchmark | 19.6% | 15.8% | 2.5% | 6.7% |
| HealthBench Professional | 56.7% | 48.5% | 60.5% | 62.1% |
* xAI marks the Grok 4.7 DeepSWE score as high-effort rather than xhigh in the launch table.
GROK 4.7 VS GROK 4.6
The upgrade decision is not driven by context size or Standard token list price: both models are documented at 500K context with the same $2 input / $0.50 cached / $6 output short-context rates.
| Attribute | Grok 4.7 | Grok 4.6 |
|---|---|---|
| Release | Sep 21, 2026 | Aug 12, 2026 |
| Context | 500K | 500K |
| Short input / output | $2 / $6 | $2 / $6 |
| Reasoning | low → xhigh | low → xhigh |
| Base model | New, larger base model | Previous generation |
| Training emphasis | Harder multi-hour tasks, self-verification, long-context management | Long-running agents, interactive and visual work |
| CursorBench 4.0 | 46.3% | 40.4% |
| Terminal-Bench 4.0 | 37.6% | 20.3% |
BEST-FIT WORKLOADS
xAI's release emphasizes difficult coding tasks that require sustained progress, verification and multiple steps rather than single-turn code generation.
xAI highlights stronger document and presentation work and evaluates the model on multi-hour professional tasks.
Function calling plus xAI-hosted search and code tools make Grok 4.7 relevant when the workflow must gather evidence or act through external systems.
500K context supports large working sets, but long-context billing and cache behavior make prompt architecture economically important.
SAFETY & CYBERSECURITY
The following numbers are vendor-reported launch metrics and should be read as xAI's evaluation claims rather than independent SXF measurements.
xAI reports a 62.4% result on LatchBio's biosafety benchmark and describes Grok 4.7 as stronger at balancing benign utility with refusal of dangerous biological requests.
xAI reports that 3.3% of risky dual-use prompts were allowed on its HackerBench v0.3 evaluation while aiming to keep false refusals on legitimate security work low.
xAI describes Grok 4.7 as using a new safeguard stack and reports stronger refusal and jailbreak-resistance behavior than its earlier models.
AVAILABILITY
Use model ID grok-4.7 through xAI's API for metered production inference.
xAI documents Grok 4.7 as the default model in Grok Build.
xAI's model guide documents Grok 4.7 in Cursor, with the Fast serving variant also available there.
xAI lists these gateways as places where Grok 4.7 can be accessed through third-party routing layers.
DECISION GUIDE
Start with 4.7 when you want xAI's current frontier generation and your workload benefits from multi-step coding, tools or professional knowledge work.
The release specifically targets longer tasks where checking intermediate work can improve final quality.
Where Fast is available, evaluate it for user-facing coding or agent interactions where output speed matters more than minimum token cost.
Existing systems should migrate only after representative evaluation of quality, latency, tools and total token usage.
LIMITS & CAVEATS
No separate output limit is not infinite output. Generation still shares a finite context budget and remains subject to runtime, account and API constraints.
500K context can become expensive. Reaching the long-context threshold changes the rate applied across the whole request.
Reasoning tokens affect real cost. Higher effort can improve difficult tasks but can also increase usage and latency. Benchmark at the effort level you intend to deploy.
Vendor benchmarks are not your benchmark. The launch table is valuable evidence of positioning, but production acceptance rate, tool reliability and cost per successful task matter more.
Knowledge cutoff is May 2026. Later facts require current context or a search/retrieval tool rather than relying on model memory.
FAQ
Grok 4.7 is xAI's September 2026 frontier model for coding, agentic tasks and knowledge work. xAI says it uses a larger base model than Grok 4.6 and was trained with a longer reinforcement-learning run on harder, multi-hour tasks.
xAI documents a 500,000-token context window for Grok 4.7. The model accepts text and image input and returns text output.
Below 200,000 prompt tokens, the published xAI API rates are $2 per million input tokens, $0.50 per million cached input tokens and $6 per million output tokens. At 200,000 prompt tokens and above, the published rates are $4, $1 and $12 respectively, and the higher rates apply to the entire request.
xAI documents no separate text output limit for Grok 4.7. That does not mean generation is infinite: the model still operates inside its finite 500,000-token context budget and normal API constraints.
Grok 4.7 supports low, medium, high and xhigh reasoning effort. xAI documents high as the default.
Yes. xAI lists function calling and structured outputs as supported capabilities, alongside reasoning. Its Grok 4.7 guide also documents web search, X search and code execution for tool-using workflows.
The xAI model page currently lists 150 requests per second and 50,000,000 tokens per minute for Grok 4.7. Actual limits available to a team can depend on its API tier.
No. xAI currently lists Batch API support as unavailable for Grok 4.7.
Grok 4.7 Fast is the same model served on faster infrastructure. xAI says it costs 2x standard token rates for short-context requests and 1.5x the normal long-context rates. It is available in Cursor and Grok Build, not through the public xAI API.
xAI reports higher Grok 4.7 results than Grok 4.6 across its launch benchmark table, including CursorBench 4.0, DeepSWE v1.1, EEBench, AA Briefcase, Terminal-Bench 4.0, Harvey Legal Agent Benchmark and HealthBench Professional. Your own production evaluation should still decide whether the upgrade is worthwhile.
Yes. xAI recommends using prompt_cache_key on the Responses API or x-grok-conv-id with Chat Completions so related turns are routed consistently and are more likely to hit prompt cache.
For Grok 4.7, xAI says Responses API outputs include reasoning.encrypted_content even when it is not explicitly requested. Pass those reasoning items back unchanged on later turns to preserve compatible reasoning context.
OFFICIAL SOURCES
Core claims on this page are tied to xAI's model guide, model detail page, release notes and Grok 4.7 launch announcement.
WHAT CHANGED
No post-baseline factual changes recorded for Grok 4.7 since 2026-10-03.
VERIFIED CHANGE HISTORY
Baseline verified: 500,000 context · No separate limit max output · $2.00 input / $0.50 cached / $6.00 output per 1 million tokens
Official evidence ↗Append-only SXF ledger · 1 verified event · chain head 5cb61a0bb057…
COMPARE GROK 4.7
EVALUATION EVIDENCE
composite intelligence · reasoning xhigh
Evidence ↗Scores are shown only with their evaluator, benchmark version and model configuration. They are not merged into a universal model score.