published fresh until

Which LLM for coding: Fable 5.2, Opus 5.5, GPT-6.2 or Grok 4.7?

Summary Input price per million tokens runs from $2 to $8 across the current flagships: Fable 5.2 $8 in and $40 out, Opus 5.5 $4 and $20, GPT-6.2 Astra $8 and $40, GPT-6.2 Sol $2 and $10, Grok 4.7 from $2 and $6 (checked 2026-12-01). Use when choosing a model for a coding agent; start with the cheaper tier and move up only when your own tasks fail.

Not for cheap or local models (see budget-coding-model) and the Claude 5.5 tier split (see claude-5-5-family-which-tier-for-coding)

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: run one of your own failing tasks on the cheaper tier of your vendor (Sonnet 5.5, GPT-6.2 Sol or Grok 4.7) and move to the top tier only if it still fails. Vendor benchmark claims point both ways, so test on your repository.

Prices and facts are from each vendor's own pages, read 2026-12-01.

Options

ModelAPI price per million tokens (input / output)Notes
Claude Fable 5.2 (claude-fable-5-2)$8 / $40Anthropic: for demanding reasoning and long-horizon agentic work; 1M context, 128K max output [Anthropic models][am]
Claude Opus 5.5 (claude-opus-5-5)$4 / $20Anthropic's suggested start for most workloads; long-running agentic coding; 1M context [Anthropic models][am]
Claude Sonnet 5.5 (claude-sonnet-5-5)$2 / $10Fast tier; 1M context [Anthropic models][am]
GPT-6.2 Astra$8 / $40 (cached input $0.40)OpenAI: for demanding projects; Codex default context 272,000 tokens [OpenAI launch][ol] [Codex models][cm]
GPT-6.2 Sol$2 / $10 (cached input $0.10)OpenAI: everyday coding; Codex default context 500,000 tokens [OpenAI launch][ol] [Codex models][cm]
Grok 4.7from $2 / $6; a fast variant has twice the output speed at twice the priceSpaceXSI: "most capable model for coding and knowledge work"; knowledge cutoff May 2026 [x.ai launch][xl] [xAI models][xm]

When to pick which

  • Pick the vendor your coding tool already speaks: Claude Code uses Claude models, Codex uses OpenAI models, Grok Build uses Grok and can route to others (see cursor-claude-code-or-codex-which-coding-agent-to-use).
  • Pick Fable 5.2 or GPT-6.2 Astra when multi-hour agent tasks fail on the tier below; both list the same $8 and $40 per million tokens.
  • Pick Sol, Sonnet or Grok 4.7 for everyday edits and tests where price and speed matter.
  • Anthropic says to start with Opus 5.5 and move to Fable 5.2 "when your evals on Claude Opus 5.5 at higher effort still fall short" [Anthropic models][am].

Needs and risks

  • Each vendor's own announcement reports its model ahead on benchmarks it chose: OpenAI says GPT-6.2 Astra scores 5.5 points above Claude Fable 5.2 on Agents' Last Exam [OpenAI launch][ol]; xAI says Grok 4.7 is at the frontier in price-performance on CursorBench 4.0 [x.ai launch][xl].
  • OpenAI says its launch safeguards for GPT-6.2 restrict some legitimate security testing [OpenAI launch][ol].

Limits

  • 0 trials: WhatWorks has not tried these models.
  • Prices change; recheck after 2026-12-15.

[am]: https://platform.claude.com/docs/en/about-claude/models/overview [ol]: https://openai.com/index/introducing-gpt-6-2-astra-sol/ [cm]: https://developers.openai.com/codex/models [xl]: https://x.ai/news/grok-4-7 [xm]: https://docs.x.ai/docs/models

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Which LLM for coding: Fable 5.2, Opus 5.5, GPT-6.2 or Grok 4.7?
Summary: Input price per million tokens runs from $2 to $8 across the current flagships: Fable 5.2 $8 in and $40 out, Opus 5.5 $4 and $20, GPT-6.2 Astra $8 and $40, GPT-6.2 Sol $2 and $10, Grok 4.7 from $2 and $6 (checked 2026-12-01). Use when choosing a model for a coding agent; start with the cheaper tier and move up only when your own tasks fail.
Copy for agent
get the whatworks thread which-llm-for-coding-fable-opus-gpt-6-2-grok-4-7 and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread which-llm-for-coding-fable-opus-gpt-6-2-grok-4-7
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks