MODEL REFERENCE / XAI

Grok 4.7
pricing, benchmarks & API reference.

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.

500,000context tokens
$2 / $6input / output per 1M
2026-10-03last verified

QUICK ANSWER

Grok 4.7 at a glance.

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

MODEL IDgrok-4.7
CONTEXT WINDOW500,000tokens
MAX OUTPUTNo separate limitxAI documentation
KNOWLEDGE CUTOFFMay 2026
REASONINGlow · medium · high · xhighdefault: high
MODALITIESText + image → text

ON THIS PAGE

Grok 4.7 reference map.

Jump directly to the part of the model decision you need.

WHAT CHANGED

A larger base model trained for harder, longer work.

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

Grok 4.7 pricing, including the 200K long-context threshold.

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 sizeInput / 1MCached input / 1MOutput / 1M
Below 200,000 prompt tokens$2.00$0.50$6.00
At / above 200,000 prompt tokens$4.00$1.00$12.00
01

Long-context billing: crossing 200K prompt tokens reprices all applicable tokens in that request at the long-context rates.

02

Priority processing: xAI documents a 2× premium over standard token rates when a request is actually served at the priority tier.

03

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.

04

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

What Grok 4.7 requests cost at list rates.

Examples use the published global Standard token rates and exclude optional tool charges, regional premiums and priority processing.

10K IN + 1K OUT

$0.026

10,000 input tokens cost $0.020 and 1,000 output tokens cost $0.006.

100K IN + 10K OUT

$0.26

100,000 input tokens cost $0.20 and 10,000 output tokens cost $0.06.

80K CACHED OF 100K + 10K OUT

$0.14

20K uncached input is $0.04, 80K cached input is $0.04, and 10K output is $0.06.

250K IN + 10K OUT

$1.12

The request is in the long-context tier: 250K input costs $1.00 and 10K output costs $0.12.

Exact cost tracking

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

What Grok 4.7 supports for production systems.

The model is designed for more than plain text completion: xAI documents structured outputs, external tools, configurable reasoning and long-running agent workflows.

RESPONSES APISupported

xAI documents Grok 4.7 on the Responses API, including multi-turn reasoning behavior.

FUNCTION CALLINGSupported

Connect the model to application functions, external systems and custom actions.

STRUCTURED OUTPUTSSupported

Constrain responses into predictable machine-readable structures for production workflows.

WEB & X SEARCHDocumented tools

xAI's Grok 4.7 guide lists web search and X search for information-retrieval workflows.

CODE EXECUTIONDocumented tool

Use code execution when a workflow benefits from computation, transformation or verification.

REASONINGlow · medium · high · xhigh

High is the documented default. Reasoning cannot be treated as a free extra because reasoning tokens contribute to usage.

RATE LIMIT150 requests / second

The current model page lists 150 RPS; team-level limits can vary with API tier.

THROUGHPUT LIMIT50M tokens / minute

The current model page lists 50,000,000 TPM.

BATCH APINot supported

xAI currently marks Grok 4.7 as unsupported by Batch API.

MULTI-TURN REASONING

Responses API returns encrypted reasoning automatically.

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

Stable routing can materially change Grok 4.7 economics.

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

Same model, faster serving, different economics.

MODEL

Same Grok 4.7

xAI describes Fast as the same model served on faster infrastructure rather than a separately trained capability tier.

SHORT CONTEXT

2× token rates

xAI says Fast costs twice the normal token rates for standard short-context requests.

LONG CONTEXT

1.5× normal long-context rates

The Fast multiplier is lower for long-context requests than for the standard short-context price band.

AVAILABILITY

Cursor + Grok Build

Fast is not available through the public xAI API. xAI documents it for Cursor and Grok Build, billed through those product plans.

OFFICIAL BENCHMARKS

Grok 4.7 benchmark results reported by xAI.

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.

EvaluationGrok 4.7 xHighGrok 4.6 HighGPT-5.6 Sol MaxFable 5.1 Max
CursorBench 4.046.3%40.4%41.7%51.8%
DeepSWE v1.171.0%*65.2%72.7%70.0%
EEBench64.0%53.0%39.4%56.4%
AA Briefcase v1.11,6571,5461,4871,678
Terminal-Bench 4.037.6%20.3%37.3%57.9%
Harvey Legal Agent Benchmark19.6%15.8%2.5%6.7%
HealthBench Professional56.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

Same headline price and context, different capability target.

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.

AttributeGrok 4.7Grok 4.6
ReleaseSep 21, 2026Aug 12, 2026
Context500K500K
Short input / output$2 / $6$2 / $6
Reasoninglow → xhighlow → xhigh
Base modelNew, larger base modelPrevious generation
Training emphasisHarder multi-hour tasks, self-verification, long-context managementLong-running agents, interactive and visual work
CursorBench 4.046.3%40.4%
Terminal-Bench 4.037.6%20.3%

BEST-FIT WORKLOADS

Where Grok 4.7 is designed to be evaluated.

CODING AGENTS

Longer software-engineering trajectories

xAI's release emphasizes difficult coding tasks that require sustained progress, verification and multiple steps rather than single-turn code generation.

KNOWLEDGE WORK

Research, documents and professional workflows

xAI highlights stronger document and presentation work and evaluates the model on multi-hour professional tasks.

TOOL-USING AGENTS

Search, code and application actions

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.

LONG CONTEXT

Large repositories and document sets

500K context supports large working sets, but long-context billing and cache behavior make prompt architecture economically important.

SAFETY & CYBERSECURITY

xAI also changed the safeguard stack in Grok 4.7.

The following numbers are vendor-reported launch metrics and should be read as xAI's evaluation claims rather than independent SXF measurements.

BIOSAFETY

62.4%

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.

HACKERBENCH v0.3

3.3% risky prompts allowed

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.

SAFEGUARDS

New stack

xAI describes Grok 4.7 as using a new safeguard stack and reports stronger refusal and jailbreak-resistance behavior than its earlier models.

AVAILABILITY

Where Grok 4.7 runs.

XAI API

Public API model

Use model ID grok-4.7 through xAI's API for metered production inference.

GROK BUILD

Default coding-agent model

xAI documents Grok 4.7 as the default model in Grok Build.

CURSOR

Available across plans

xAI's model guide documents Grok 4.7 in Cursor, with the Fast serving variant also available there.

MODEL GATEWAYS

OpenRouter · Vercel · Cloudflare

xAI lists these gateways as places where Grok 4.7 can be accessed through third-party routing layers.

DECISION GUIDE

When to choose Grok 4.7.

CHOOSE 4.7

New xAI coding or agent systems

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.

CHOOSE 4.7

Self-verification matters

The release specifically targets longer tasks where checking intermediate work can improve final quality.

TEST FAST

Latency is worth a premium

Where Fast is available, evaluate it for user-facing coding or agent interactions where output speed matters more than minimum token cost.

KEEP 4.6

Regression stability beats novelty

Existing systems should migrate only after representative evaluation of quality, latency, tools and total token usage.

LIMITS & CAVEATS

What a model spec sheet can hide.

01

No separate output limit is not infinite output. Generation still shares a finite context budget and remains subject to runtime, account and API constraints.

02

500K context can become expensive. Reaching the long-context threshold changes the rate applied across the whole request.

03

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.

04

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.

05

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 questions, answered.

What is Grok 4.7?

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.

What is the Grok 4.7 context window?

xAI documents a 500,000-token context window for Grok 4.7. The model accepts text and image input and returns text output.

How much does Grok 4.7 cost?

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.

Does Grok 4.7 have an output token limit?

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.

What reasoning levels does Grok 4.7 support?

Grok 4.7 supports low, medium, high and xhigh reasoning effort. xAI documents high as the default.

Does Grok 4.7 support function calling and structured outputs?

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.

What are the Grok 4.7 API rate limits?

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.

Does Grok 4.7 support the Batch API?

No. xAI currently lists Batch API support as unavailable for Grok 4.7.

What is Grok 4.7 Fast?

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.

Is Grok 4.7 better than Grok 4.6?

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.

Does Grok 4.7 support prompt caching?

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.

What happens to reasoning in multi-turn Responses API calls?

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

Primary-source verification.

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

Grok 4.7: what changed.

No post-baseline factual changes recorded for Grok 4.7 since 2026-10-03.

HISTORICAL BASELINE2026-10-03Original ledger snapshot, not the latest source check. See Last verified above.

VERIFIED CHANGE HISTORY

Grok 4.7 verified history.

Open ledger JSON ↗
BASELINE

Grok 4.7

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

Put this model in context.

Open Compare Engine ↗

EVALUATION EVIDENCE

Grok 4.7 benchmark observations.

Evaluation methodology ↗
independentArtificial Analysis

Artificial Analysis Intelligence Index 4.3.2

46

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.