
Grok 4.6 API pricing and benchmarks: what xAI's coding model costs to run
Grok 4.6 scores 95.6% on SWE-bench Verified (Vals AI, 4th) and 40.4% on CursorBench 4.0 at High. API pricing per 1M tokens, 500k context, how to call it.
Grok 4.6 resolves 95.6% of SWE-bench Verified tasks on Vals AI's board, fourth of the models Vals ran, nine points above Grok 4.5. xAI released it on August 12, 2026 for long-running coding and knowledge-work agents. On UnificAlly it is billed per token as xai/grok-4.6, from $0.30/1M tokens of input and $0.90/1M tokens of output, through the Grok 4.6 API.
TL;DR: Three months on, Grok 4.6 is no longer xAI's flagship (Grok 4.7 arrived September 21), and several launch-week numbers have gone stale. What still holds: 95.6% SWE-bench Verified, a 500k-token context, and four reasoning efforts. Run it at High, not Extra High: on CursorBench 4.0 the top effort adds 1.0 point for 20% more tokens. It is slow, about 66 output tokens per second with 38 seconds before the first answer token.
Grok 4.6 in six numbers, three months after launch
- 95.6% on SWE-bench Verified, fourth on Vals AI's board. Vals stopped running that benchmark on September 1, 2026, so the score is frozen; only Claude Opus 5, DeepSeek V4 Pro and GPT-5.6 Sol sit above it.
- 40.4% on CursorBench 4.0 at High effort. Cursor replaced the 3.x task set on September 10. The 70.8% that topped CursorBench 3.2 in August is archived and cannot be compared with 4.0 scores.
- An index score of 31 from Artificial Analysis (version 5.0.1), 54th of 80 models in its class. The "61" quoted at launch came from an older index version that has since been rescaled.
- 66 output tokens per second and 38.47 seconds to the first answer token at Xhigh, per Artificial Analysis. It is built to be left alone with a hard task.
- 500,000 tokens of context, text and image input, text output. Prompts past 200k tokens move to a higher rate tier.
- Still unknown: xAI has not published a knowledge cutoff or a parameter count for Grok 4.6 in its model docs.
Grok 4.6 specs and limits: 500k context, four efforts, a 200k rate tier
| Attribute | Grok 4.6 |
|---|---|
| Developer | xAI |
| Type | Reasoning language model, closed weights |
| Status | Live; succeeded by Grok 4.7 on September 21, 2026 |
| Release date | August 12, 2026 |
| Modality | Text and image in, text out |
| Context window | 500,000 tokens; higher rates once the prompt passes 200k (official) |
| Output limit | None set by xAI (official release note) |
| Reasoning effort | low, medium, high (default), xhigh |
| Pricing | $0.30/1M tokens input, $0.90/1M tokens output, $0.045/1M tokens cache read on UnificAlly |
| API model ID | xai/grok-4.6 on UnificAlly, grok-4.6 on xAI |
xAI trained Grok 4.6 on top of Grok 4.5 rather than on a new base. Per xAI's Grok 4.6 announcement, the supplemental training run was longer, the optimizer and recipe changed, and Grok 4.5 itself regenerated the fine-tuning trajectories, which a model-based filter then cleaned. Reinforcement learning covered knowledge work, general coding, kernel optimization, web development and CAD. xAI says the visible effect is more self-checking on long runs and stronger first drafts of visual, interactive apps. Grok 4.7 broke that pattern with a new, larger base model.
Grok 4.6 benchmarks: SWE-bench 95.6%, and the launch scores that went stale
xAI's launch table compared Grok 4.6 at High effort with GPT-5.6 Sol and Claude Fable 5 at their top settings. These are the vendor's numbers, with competitor scores taken from published system cards:
| Benchmark (xAI launch table) | Grok 4.6 High | Grok 4.5 High | GPT-5.6 Sol Max | Fable 5 Max | Leader |
|---|---|---|---|---|---|
| GDPVal-AA v2 (Elo) | 1753 | 1526 | 1728 | 1741 | Grok 4.6 |
| AA-Briefcase | 1577 | 1313 | 1502 | 1574 | Grok 4.6 |
| Harvey LAB (Vals) | 15.8% | 12.9% | 2.5% | 11.3% | Grok 4.6 |
| FrontierCode v1.1 | 61.3% | 56.6% | 60.6% | 63.6% | Fable 5 |
| APEX-Agents | 57.5% | 47.1% | 56.7% | 59.2% | Fable 5 |
| DeepSWE v1.1 | 65.9% | 54.0% | 73.0% | 70.0% | GPT-5.6 Sol |
| Terminal-Bench v3.0 | 26.0% | 15.7% | 34.6% | 34.1% | GPT-5.6 Sol |
On xAI's own table the model led on office and legal work and trailed on terminal tasks by about eight points. An earlier version of this post put Claude Opus 5 at 43.5% on Terminal-Bench 3.0; we could not find that figure in xAI's published table, so it is gone.

The card above records launch week. Two of its three numbers have moved: the Intelligence Index 61 became 31 when Artificial Analysis moved to version 5.0.1 (the set of evaluations changed, the model did not), and CursorBench 3.2, where Grok 4.6 at Extra High posted 70.8% against Claude Fable 5 Max at 70.5%, was archived.
The Grok 4.6 SWE-bench score survived, and Vals AI's SWE-bench Verified leaderboard shows what it costs to get there. Every model in this table ran the same Mini-SWE-agent harness:
| Model | Resolved | Tokens per task | Time per task |
|---|---|---|---|
| Claude Opus 5 | 97.0% | 1.09M | 9 min 37 s |
| DeepSeek V4 Pro 0813 | 96.4% | 764k | 4 min 00 s |
| GPT-5.6 Sol | 96.2% | 512k | 3 min 02 s |
| Grok 4.6 | 95.6% | 969k | 10 min 04 s |
| Claude Fable 5 | 95.0% | 723k | 5 min 56 s |
| Kimi K3 | 93.4% | 884k | 10 min 19 s |
Grok 4.6 spends almost twice the tokens of GPT-5.6 Sol per SWE-bench Verified task and takes more than three times as long, for 0.6 points less. That ratio shapes every pick later in this post. On Vals AI's Grok 4.6 page the model also scores 94.7% on GPQA Diamond (third of 138) and 88.2% on LiveCodeBench (seventh of 143), while Terminal-Bench 4.0 stays weak at 17.2%.
Grok 4.6 High vs Extra High: one point for 20% more tokens
Cursor's CursorBench 4.0 board lists the Grok 4.6 CursorBench result at every effort level, which makes the effort choice measurable instead of a guess:
| Effort | CursorBench 4.0 | Tokens per task | Agent steps per task |
|---|---|---|---|
| Low | 33.4% | 16,307 | 32 |
| Medium | 36.1% | 24,893 | 40 |
| High (default) | 40.4% | 41,387 | 48 |
Extra High (xhigh) | 41.4% | 49,814 | 56 |
Medium to High is the big step: 4.3 points. High to Extra High adds 1.0 point while token use grows by a fifth and each task takes eight more agent steps. Cursor's own note says small score gaps on its board may not be statistically meaningful, and a single point is small. Our call: leave Grok 4.6 on its default high and reserve xhigh for single prompts where one more correct answer is worth the wait, not for agent loops that call the model hundreds of times.
Low effort deserves a mention too. At 16,307 tokens per task it uses under 40% of High's budget and lands seven points behind it, which suits triage, extraction and routing steps inside a bigger agent.
Why Grok 4.6 is slow: 66 tokens per second, 38 seconds to the first answer
Artificial Analysis measures Grok 4.6 at Xhigh effort at 66 output tokens per second, 38.47 seconds to the first answer token, and 14.9 minutes per Intelligence Index task against a 13.3-minute median for comparable models. Most of that wait is reasoning: the model thinks before the first visible word arrives. Over the full index run it wrote 79.9M output tokens, a little above the 77.3M median.
The practical rule is to set client timeouts in minutes, stream the response, and never put Grok 4.6 behind a chat box that users expect to answer in a second or two. For that job, Gemini 3.7 Flash or Grok 4.6 at low effort fits better.
Grok 4.6 vs Grok 4.5 and Grok 4.7
Against Grok 4.5, the upgrade is clear on every shared benchmark: SWE-bench Verified 86.6% to 95.6% on the same Vals harness, GDPVal-AA up 227 Elo, DeepSWE up 11.9 points. The two share a per-token rate on our card today, so the only reason to stay on 4.5 is a prompt set already tuned for it.
Against Grok 4.7 the trade runs the other way. xAI's Grok 4.7 table puts it ahead on CursorBench 4.0 (46.3% at xHigh vs 40.4% for Grok 4.6 High) and far ahead on Terminal-Bench 4.0 (37.6% vs 20.3%). Artificial Analysis scores it 35 against 31 on Index v5.0.1. The cost of those gains is output: 148M tokens on the index run against Grok 4.6's 79.9M, and 26.4 minutes per task against 14.9.
Grok 4.7 writes about 1.85 times as many output tokens as Grok 4.6 on Artificial Analysis's index run, for four more points. If the agent spends its life in a terminal or runs for hours, pay for 4.7. If it edits code in an editor and the bill is per task, Grok 4.6 at High still holds up.
Grok 4.6 vs GPT-5.6 Sol on coding agents
The two split the scores. xAI's table has Grok 4.6 ahead on GDPVal-AA (1753 vs 1728), FrontierCode (61.3% vs 60.6%) and Harvey LAB, and Grok 4.6 High beats Sol at Extra High on CursorBench 4.0 (40.4% vs 37.7%), although Sol at Max reaches 41.7%. GPT-5.6 Sol leads DeepSWE by 7.1 points, Terminal-Bench 3.0 by 8.6, and finishes a SWE-bench Verified task in 3 minutes where Grok 4.6 needs 10.
For an editor-style agent that waits on each answer, Sol's speed decides it. For background jobs judged by the finished diff, Grok 4.6 holds its own. If Kimi K3 is also on your list, our GPT-5.6 Sol vs Kimi K3 comparison covers that pair.
Grok 4.6 API pricing per 1M tokens on UnificAlly
Grok 4.6 pricing on UnificAlly has three lines (input, cached input and output), each with a second, higher tier once the prompt passes 200k tokens. The card below covers Grok 4.5, 4.6 and 4.7 side by side, since that is the choice most Grok API pricing searches end in:
| Model | Seçenek | Bizim fiyatımız |
|---|---|---|
| Grok 4.6 | input (prompt up to 200k) | $0.30/1M token |
| output (prompt up to 200k) | $0.90/1M token | |
| cache read (prompt up to 200k) | $0.045/1M token | |
| input (prompt over 200k) | $0.60/1M token | |
| output (prompt over 200k) | $1.80/1M token | |
| cache read (prompt over 200k) | $0.09/1M token | |
| Grok 4.7 | input (prompt up to 200k) | $0.30/1M token |
| output (prompt up to 200k) | $0.90/1M token | |
| cache read (prompt up to 200k) | $0.075/1M token | |
| input (prompt over 200k) | $0.60/1M token | |
| output (prompt over 200k) | $1.80/1M token | |
| cache read (prompt over 200k) | $0.15/1M token | |
| Grok 4.5 | input (prompt up to 200k) | $0.30/1M token |
| output (prompt up to 200k) | $0.90/1M token | |
| cache read (prompt up to 200k) | $0.045/1M token | |
| input (prompt over 200k) | $0.60/1M token | |
| output (prompt over 200k) | $1.80/1M token | |
| cache read (prompt over 200k) | $0.09/1M token |
On November 16, 2026 the three models shared the same input and output lines, and Grok 4.7's cache-read line sat above Grok 4.6's. With equal per-token rates, Grok 4.6 cost per task comes down to how many tokens the model spends, and that is where 4.6 and 4.7 differ most. The Grok 4.6 price per 1M tokens is the same whichever reasoning effort you pick; higher efforts cost more only because they write more.
A worked example. One coding-agent turn sends a 120k-token prompt, 90k of which is a repeated repository context that hits the cache, and gets 6k tokens back:
- 30k fresh input tokens: $0.009
- 90k cached input tokens: $0.00405
- 6k output tokens: $0.0054
The same turn with a 210k-token prompt moves every line to the over-200k tier in the table, so trim context before it crosses that line rather than after. At the scale of a benchmark run the token gap between versions shows: the output tokens Grok 4.6 wrote on Artificial Analysis's full index cost $71.91 at our base output rate, and Grok 4.7's cost $133.20.
The xAI API pricing for its own console is published in xAI's docs; on UnificAlly the same key and prepaid balance also cover image, video and audio models, and new accounts start with $0.50 to test with.
Calling the Grok 4.6 API on direct-api.unifically.com
Use https://direct-api.unifically.com for Grok 4.6, not api.unifically.com. Our Grok 4.6 docs page explains why: the main host sits behind a proxy whose timeout can cut a long language-model reply short, and the tokens generated before the cut are still billed. With 38 seconds of thinking before the first answer token at high efforts, Grok 4.6 replies are a likely candidate for that cut. Earlier versions of this post used the proxied host; the request below is the corrected one.
curl -X POST https://direct-api.unifically.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "xai/grok-4.6",
"reasoning_effort": "high",
"stream": true,
"stream_options": { "include_usage": true },
"messages": [
{ "role": "user", "content": "Find the race condition in this worker pool and write a failing test for it." }
]
}'
stream_options.include_usage adds a final chunk with prompt and completion token counts, which is the number to log if you want the per-task cost from the worked example above. Tools, tool_choice and response_format work in the same request, and the model also accepts the Responses (/v1/responses) and Messages (/v1/messages) formats with the same key.
Run the Grok 4.6 API in the playground, or put the same prompt through the Grok 4.7 API and the GPT-5.6 Sol API with one key.
Grok 4.6 FAQ
What model ID does Grok 4.6 use?
On UnificAlly, Grok 4.6 is xai/grok-4.6, called with a POST to https://direct-api.unifically.com/v1/chat/completions. The same ID works on /v1/responses and /v1/messages. On xAI's own API the name is grok-4.6.
What is the Grok 4.6 context window?
The context window is 500,000 tokens for Grok 4.6, with text and image input and text output. Prompts longer than 200k tokens are billed on a higher rate tier, so long-context work costs more per token above that line.
Is Grok 4.6 better than Grok 4.5?
Yes. Grok 4.6 scores 95.6% against 86.6% for Grok 4.5 on Vals AI's SWE-bench Verified board, and gains 227 Elo on GDPVal-AA and 11.9 points on DeepSWE in xAI's launch table.
Is Grok 4.6 good for coding agents?
Yes, for agents judged by the finished result. It resolves 95.6% of SWE-bench Verified tasks and scores 40.4% on CursorBench 4.0 at High effort. It is weak on terminal work (20.3% on Terminal-Bench 4.0 in xAI's table), where Grok 4.7 or GPT-5.6 Sol fit better.
Why is Grok 4.6 slow?
Grok 4.6 reasons at length before answering: Artificial Analysis measures 38.47 seconds to the first answer token and 66 output tokens per second at Xhigh effort. On SWE-bench Verified it averages 10 minutes and about 969k tokens per task, against 3 minutes for GPT-5.6 Sol.
Should I run Grok 4.6 at high or extra high effort?
High, in most cases. On CursorBench 4.0, Grok 4.6 scores 40.4% at High and 41.4% at Extra High, while tokens per task rise from 41,387 to 49,814. Keep xhigh for single hard prompts, not agent loops that call the model many times.


