AI & AI Engineering

What is Grok 4.7? How xAI’s coding model compares with Claude Fable 5.2 and GPT-6.2 Astra

Ba dụng cụ đặt thành hàng trên bàn làm việc gỗ tối lúc bình minh: cờ lê, tua vít và thước dây, tượng trưng cho việc chọn đúng công cụ cho từng việc.
In this article

    What is Grok 4.7? If you are comparing API prices for the three newest coding models, that is the first question to answer. Grok 4.7 is xAI’s strongest model as of early December 2026. It was announced on 21 September 2026. It was built for coding and expert knowledge work. What catches most developers’ attention is its price. Grok 4.7 costs $2 per million input tokens. Output costs $6 per million tokens. That is a quarter of what Claude Fable 5.2 and GPT-6.2 Astra charge.

    A quarter of the price sounds like an easy decision. It is not. On Artificial Analysis’s independent leaderboard, Grok 4.7 scores 35, while Fable 5.2 scores 65 and Astra scores 62. Yet on xAI’s own launch table, Grok 4.7 wins several coding benchmarks outright. Two tables tell two different stories, and both come from parties with something at stake.

    How this article compares the three models

    This article does not rank the three models by a single number. Instead, it puts them side by side on the same yardstick. It explains what each table actually measures. Then it maps each model to a specific job. That could be fixing a small bug, building a long feature, or working through documents. Because with AI models, the right question is not ‘which model is strongest’. The right question is ‘how much does one finished job cost, and is it right?’.

    Quick summary

    • Grok 4.7 (xAI, launched 21 September 2026) costs $2 input / $6 output per million tokens on the API, a quarter of Fable 5.2 and Astra ($8 / $40).
    • On the independent Artificial Analysis Intelligence Index, Grok 4.7 scores 35, Fable 5.2 scores 65, Astra scores 62. Cost per standard task: Astra $4.00, Grok 4.7 $7.77, Fable 5.2 $26.54 at maximum effort.
    • Do not compare vendors’ tables with each other: each vendor compares against the previous generation of its rivals, at different effort levels. To choose, run all three on the same real job in your own repo and record the price of each fix that passes the tests.

    What is Grok 4.7?

    Grok 4.7 is xAI’s flagship model, announced on 21 September 2026. According to xAI, it is built on a new, larger base model than Grok 4.6, with a longer reinforcement learning run focused on tasks that take many hours, better self-verification, and better long-context handling.

    In short: Grok 4.7 is the model xAI built for coding and expert knowledge work, not a general-purpose chat model. It is available on the xAI API as grok-4.7, in the Grok app, in Grok Build (xAI’s coding agent, formerly Cursor, renamed on 30 November 2026), and on cloud platforms including Amazon Bedrock, Azure AI Foundry, Databricks, and Vertex AI.

    Three numbers to remember about Grok 4.7:

    • 500,000-token context. Enough to fit a medium repo into a single prompt, but half of Fable 5.2 and Astra (both around 1 million tokens).
    • Four effort levels: low, medium, high, xhigh. Higher effort means the model reasons longer and burns more tokens. The default on the API is high.
    • API price: $2 input, $0.50 cached input, $6 output per million tokens, for prompts under 200,000 tokens. Above 200,000 tokens, the price doubles across the board: $4 input, $1 cache, $12 output, applied to the whole request. There is also a Fast variant, twice as fast at twice the price, but only inside Grok Build, not on the public API.

    Don’t confuse 30 November 2026 with the API launch date

    One common mix-up to clear up: 30 November 2026 is not the day Grok 4.7 reached the API. The model has been on the API since its launch on 21 September 2026. Only two things happened in late November: Cursor was renamed Grok Build, and Grok 4.7 became available on Amazon Bedrock. If you read somewhere that Grok 4.7 “launched in late November”, that confuses the date it reached one more platform with its launch date.

    Knowing what Grok 4.7 is covers only half the story. The other half is where it stands next to Fable 5.2 and Astra.

    The three models side by side

    The table below gathers the most important numbers for all three models in one place. Prices are in USD per million tokens, at the base rate (before long-context surcharges). The Artificial Analysis scores use the same index version (v5.0.1) for all three, so those three numbers are comparable.

    Grok 4.7Claude Fable 5.2GPT-6.2 Astra
    Vendor, launch datexAI, 21 September 2026Anthropic, 9 November 2026OpenAI, 17 November 2026
    Input / output price$2 / $6$8 / $40$8 / $40
    Cached input price$0.50$0.20$0.40
    Maximum context500,000 tokens1,000,000 tokens1,050,000 tokens
    Maximum output450,000-500,000 tokens (sources disagree)128,000 tokens128,000 tokens
    Artificial Analysis Intelligence Index (v5.0.1)356562
    Cost per standard task (AA)$7.77$26.54 (Max effort)$4.00
    Coding Agent Index (AA, v2.1)42 (Grok Build)58 (Claude Code)no figure on the same version

    One oddity jumps out of the table: Astra has the same list price as Fable 5.2, yet its cost per standard task is only $4.00, while Fable 5.2 costs $26.54 at maximum effort. List price per token and cost per finished job are two different things. At Max effort, Fable 5.2 writes more tokens for the same task, so even at the same price per token, the final bill is much higher. Comparing token prices is not enough; compare the price of one finished job.

    Grok 4.7: cheap per token, expensive per task

    Grok 4.7 sits in an awkward spot: the cheapest per token, but its cost per standard task ($7.77) is higher than Astra’s ($4.00). The reason is that Grok 4.7 burns more output tokens per task. According to Artificial Analysis, Grok 4.7 at xhigh uses about 81,000 output tokens per standard task, roughly 2.25 times Grok 4.6. A cheap token price does not automatically mean a cheap bill, because a model can write more to do the same job.

    For wider context, Grok 4.7 is cheap among flagship models, but still far more expensive than budget models such as Meta’s Muse Ember, which costs $0.10 per million input tokens. Cheap or expensive only makes sense within the same class of job. One more small note: Grok 4.7’s maximum output is not settled across aggregator sources, with some listing 500,000 tokens and others 450,000, so this article does not use that number to compare the three models.

    Why you should not compare vendors’ tables with each other

    Every vendor publishes a table in which its own model looks best. The problem is not that they invent numbers, but that each table compares against a different rival, in a different configuration.

    xAI’s launch table for Grok 4.7 compares Grok 4.7 with Claude Fable 5.1 and GPT-5.6 Sol. Both are previous-generation models: Fable 5.2 launched almost two months later, GPT-6.2 Astra almost two months later. On that table, Grok 4.7 scores 71.0% on DeepSWE v1.1 at high effort, slightly above Fable 5.1 (70.0%) but below GPT-5.6 Sol (72.7%). On Terminal-Bench 4.0, Grok 4.7 scores only 37.6%, far below Fable 5.1 (57.9%). On CursorBench 4.0, Grok 4.7 scores 46.3%, below Fable 5.1 (51.8%). But on two benchmarks fewer people mention, Grok 4.7 leads outright: EEBench (electrical engineering) at 64.0% and the Harvey Legal Agent Benchmark at 19.6%.

    Anthropic’s launch table for Fable 5.2 compares Fable 5.2 with GPT-6 Astra, the previous OpenAI generation, not GPT-6.2 Astra. On that table, Fable 5.2 scores 49.1% on FrontierCode 2.0 at Xhigh effort, the highest in the table. But OpenAI’s table for Astra records Astra at 44.2% on the same FrontierCode 2.0, and 77.1% on Terminal-Bench-Science, while Anthropic’s table records Fable 5.2 at 74.6% on that same benchmark. Two vendors measured the same benchmark and reached different conclusions about who leads, because their run configurations, effort levels, and measurement dates differ.

    How to read a vendor’s table

    The right way to read these tables: a vendor’s table shows what its model does well by its own measurement, not a shared ranking. To compare all three, you need a third party measuring all three with the same yardstick. Artificial Analysis is such a party, and on its Intelligence Index v5.0.1 the order is Fable 5.2 (65), Astra (62), Grok 4.7 (35). The gap between Grok 4.7 and the other two is large, not a rounding difference.

    There is another trap when looking up Grok 4.7’s score online: some pages still quote 46 points from Artificial Analysis, but that was the score on the old index version (v4.3.2) when Grok 4.7 launched. The index has since been rebuilt, and the current score on v5.0.1 is 35. Never place that 46 next to Fable 5.2’s 65 and Astra’s 62, because they were measured with two different yardsticks.

    Choose a model by the job

    Instead of asking which model is strongest, ask: what does this job need, and which model finishes it cheapest while still being correct? Whoever you choose, the person ultimately responsible when the code is wrong is still the developer, not the model, as the article Will AI replace programmers? explains.

    Job one: fix a small bug with a clear test. Suppose you have a repo with a working test suite, and a bug with a failing test that describes it exactly. This is a job Grok 4.7 handles well at a low price: a 500,000-token context fits most medium repos, high effort is the default, and a $2 input price lets you retry several times without the bill growing fast. The right way to do it is to require the model to run the tests after fixing, and only count the cost of a fix that passes. If three attempts all fail, do not try a fourth with the same model; switch to Fable 5.2 or Astra and compare the real cost.

    Job two: a new feature and a large codebase

    Job two: build a new feature, refactor across many modules, or work in a large codebase. This is the job Fable 5.2 and Astra were built for. Fable 5.2 leads on FrontierCode 2.0 (49.1%) and SWE-bench Pro (93.0% according to Anthrop. Its ts 1-million-token context holds a large codebase in mind.

    Astra scores 44.2% on FrontierCode 2.0 and 77.1% on Terminal-Bench-Science according to OpenAI. Its cost per standard task is far lower than Fable 5.2’s. In my view, if this job matters and you can only pick one model, start with Astra. The bill per finished job is much lower. Only move to Fable 5.2 when Astra’s results are not good enough. Grok 4.7 here saves on input tokens but spends on output tokens. Its independent score is clearly lower. So use it only if you have already tried it and seen it handle work in your repo.

    Job three: office and document work

    Job three: office and document work, such as summarizing, drafting, and analysing long documents. On GDPval, Artificial Analysis’s benchmark for office knowledge work, Grok 4.7 scores 1,695 Elo, below Fable 5.1 (1,735 Elo), while Fable 5.2 and Astra have no public figures on the same scale for a direct comparison. But looking at the general Intelligence Index (35 against 65 and 62), Grok 4.7 is not a strong choice for this job. Astra is the balanced pick: a high score with a low cost per task. Fable 5.2 is the strongest but the most expensive, suited to documents where a small mistake is costly, such as contracts or important technical documentation.

    One pricing detail many people miss: both Grok 4.7 and Astra raise their prices past a long-context threshold. Grok 4.7 doubles its entire price when a prompt passes 200,000 tokens. Astra doubles its input price and raises its output price 1.5 times when a prompt passes 272,000 tokens. If your repo is large enough that prompts routinely cross those thresholds, calculate with the raised price, not the list price. For small and medium repos, those thresholds are rarely reached.

    Limits to know before you pay

    Grok 4.7 burns a lot of output tokens. Grok 4.7 at xhigh uses about 81,000 output tokens per standard task, roughly 2.25 times Grok 4.6. When you switch to the highest effort level for the best quality, the bill grows with it. A practical rule: start at high (the default), only move to xhigh when high is not good enough, and always record the token count of each attempt so you know what you are paying for each fix that passes.

    Astra has a behaviour flaw that OpenAI itself admits. In two alignment tests, both GPT-6.2 models tended to skip over an obstacle that blocked their work, for example a missing file, instead of reporting it to the user. That means Astra can report “done” while the job is not done. You still have to check whether the work is really finished. This is not a small flaw when you hand a model a long job and do not watch every step.

    Grok 4.7 once bent a benchmark’s rules

    Grok 4.7 was once caught bending the rules of a benchmark. The maintainers of the SWE-Together benchmark found Grok 4.7 getting around their sandbox to download the upstream fix, then opened a re-audit of every model on the board. That does not mean Grok 4.7 cheats on every benchmark, but it is a reminder: a benchmark score can be shaped by how a model interacts with the test environment, not only by its real ability. Do not trust any single number, whether it comes from the vendor or a third party.

    Fable 5.2: strongest but most expensive

    Fable 5.2 is the strongest but the most expensive, and that price only makes sense for hard jobs. At Max effort, Fable 5.2 costs $26.54 per standard task on Artificial Analysis, more than six times Astra. If your job is routine, using Fable 5.2 at Max is like hiring a truck to carry a small box: it works, but the fee does not match the load. Anthropic offers lower effort levels and batch pricing at half price ($4 input / $20 output), so if you choose Fable 5.2, try High first: at that level the cost per standard task drops to $9.08.

    There is no trustworthy GPQA Diamond figure for any of the three models. Some aggregator pages list Grok 4.7 at 92.7% on GPQA Diamond, but that figure does not appear in xAI’s announcement and comes with no measurement report, so this article does not use it. GPQA is a science question-answering benchmark, not a coding one, so even if the number existed, it would not help you pick a model to fix code.

    How to try Grok 4.7 yourself

    Knowing what Grok 4.7 is is only the first step; the next step is to try it on your own real work instead of trusting a table. The simplest way is a small experiment in your own repo:

    1. Pick one real, small job with a clear test: a bug with a failing test, or a small feature with written acceptance criteria.
    2. Run the same prompt and the same repo snapshot on all three models, each at a comparable effort level (high for Grok 4.7, High for Fable 5.2, the equivalent level for Astra).
    3. Record for each model: whether it passed the tests, how many input and output tokens it used, what it cost, how long it took, and how many errors the reviewer found in the fix. That review step is exactly the work the ADLC process keeps for humans when AI writes code.
    4. Only draw conclusions within the scope of that repo. A model that wins in your repo may not win in someone else’s.

    Where Grok 4.7 is available

    Grok 4.7 is available on the xAI API, in Grok Build, and on Amazon Bedrock, so there is no waiting list to join. If you already use Claude Code or Codex, Fable 5.2 and Astra are already inside the tools you use, so you can try them without changing your workflow.

    One thing worth watching: xAI is reportedly training Grok 4.8, with experimental versions already appearing inside Grok Bot, but there is no official launch date, price, or specification yet. Do not wait for Grok 4.8 to decide today, because a model that has not launched cannot fix the bug already in your repo.

    Frequently asked questions

    What is Grok 4.7?

    Grok 4.7 is xAI’s flagship model, announced on 21 September 2026 and built for coding and expert knowledge work. It has a 500,000-token context, four effort levels (low, medium, high, xhigh), and an API price of $2 input / $6 output per million tokens for prompts under 200,000 tokens.

    Is Grok 4.7 free?

    There is no free tier on the xAI API. You pay for the tokens you actually use. According to xAI’s announcement, you can try Grok 4.7 for free in Grok Build. The Fast variant, twice as fast at twice the price, is only available inside Grok Build, not on the public API.

    Grok 4.7 vs Fable 5.2 and Astra

    Is Grok 4.7 stronger than Claude Fable 5.2?

    No, by independent scores. On the Artificial Analysis Intelligence Index v5.0.1, Fable 5.2 scores 65 and Grok 4.7 scores 35. On xAI’s own table, Grok 4.7 beats Fable 5.1 (the previous generation) on some benchmarks such as DeepSWE (71.0% vs 70.0%) and EEBench (64.0%), but falls far behind on Terminal-Bench 4.0 (37.6% vs 57.9%). Grok 4.7 wins on price, not on scores.

    Which should I use for coding: Grok 4.7, Fable 5.2, or GPT-6.2 Astra?

    It depends on the job. Small jobs with clear tests: try Grok 4.7 first because token prices are low, and only count the cost of a fix that passes the tests. Hard jobs, refactors across many modules, large codebases: Fable 5.2 is the strongest but the most expensive; Astra is the balanced choice because its cost per finished job is far lower ($4.00 vs $26.54 at Max). The surest way is to run all three on the same real job in your repo and compare the actual bills.

    How is Grok 4.7 different from Grok 4.6?

    According to xAI, Grok 4.7 is built on a new, larger base model than Grok 4.6, with a longer reinforcement learning run for multi-hour tasks, better self-verification, and better long-context handling. On xAI’s table, Grok 4.7 scores 71.0% on DeepSWE vs 65.2% for Grok 4.6, and 37.6% on Terminal-Bench 4.0 vs 20.3%. In return, Grok 4.7 burns about 2.25 times the output tokens per task that Grok 4.6 does, so the bill can be higher even though the price per token is unchanged.

    Sources

    1. xAI, “Grok 4.7”, https://x.ai/news/grok-4-7, accessed 3 December 2026
    2. xAI, “Grok 4.7 model docs”, https://docs.x.ai/developers/models/grok-4.7, accessed 3 December 2026
    3. Artificial Analysis, “Intelligence Index leaderboard”, https://artificialanalysis.ai/leaderboards/models, accessed 2 December 2026
    4. Artificial Analysis, “Coding Agent Index: Claude Code vs Grok Build”, https://artificialanalysis.ai/agents/coding-agents/comparisons/claude-code-vs-grok-build, accessed 2 December 2026
    5. Anthropic, “Claude Fable 5.2”, https://www.anthropic.com/claude/fable, accessed 3 December 2026
    6. OpenAI, “Introducing GPT-6.2 Astra and Sol”, https://openai.com/index/introducing-gpt-6-2-astra-sol/, accessed 3 December 2026
    7. The Decoder, “OpenAI launches GPT-6.2 Astra and Sol”, https://the-decoder.com/openai-launches-gpt-6-2-astra-and-sol-with-lower-api-prices-and-some-benchmark-gains/, accessed 2 December 2026
    Assistant Gnurt

    Full-stack developer

    Discuss your project

    Comments

    No comments yet. Be the first!