Claude Fable 5 vs Gemini 3.1 Pro: July 2026 Comparison

TL;DR
Claude Fable 5 vs Gemini 3.1 Pro: Anthropic's $10/$50 API-only model vs Google's $2/$12 preview on price, context and benchmarks, and how Opus 5 shifts it.
Last updated: July 31, 2026
What Changed on July 31, 2026#
- Fable 5 is API-only. Since July 9, Fable 5 is no longer included in any subscription plan; it is available through the API at $10/$50 per MTok (verified July 31, 2026 on Anthropic's pricing page).
- Claude Opus 5 launched July 24 at $5/$25 - half the Fable 5 price, near-Fable quality on most benchmarks, and it now tops the Artificial Analysis Intelligence Index. The "capability play" tier of this comparison is now Opus 5, not Fable 5, for most teams.
- Gemini 3.5 Pro is here. The wildcard from the June version of this post is now GA (late June 2026), with a 2M context window and Deep Think mode. Its pricing still has no row on the Gemini pricing page as of July 31 - we say what we know below.
- Gemini 4 Argon is now the next watch item. We are tracking the limited rollout, pricing caveats, and developer-readiness gap in the Gemini 4 Argon developer guide.
- Gemini 3.1 Pro Preview pricing is unchanged - $2/$12 under 200K tokens, $4/$18 above (verified July 31, 2026).
- Gemini 4 Argon changes the next comparison. Google's September 30 announcement adds a 1M-output-token frontier model with staged access and introductory $2/$10 API pricing; see the Gemini 4 Argon developer guide before treating this older 3.1-era comparison as current buying advice.
Official Sources#
| Resource | Link | Last Verified |
|---|---|---|
| Anthropic Claude Fable 5 Announcement | anthropic.com/news/claude-fable-5-mythos-5 | July 31, 2026 |
| Anthropic API Pricing | platform.claude.com/docs/en/about-claude/pricing | July 31, 2026 |
| Anthropic Claude Opus 5 Announcement | anthropic.com/news/claude-opus-5 | July 31, 2026 |
| Gemini API Pricing | ai.google.dev/gemini-api/docs/pricing | July 31, 2026 |
| Gemini 3.1 Pro Announcement | blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-1-pro | July 31, 2026 |
| Gemini 3.5 Pro Developer Guide | /blog/gemini-3-5-pro-developer-guide-2026 | July 31, 2026 |
| Gemini CLI Guide | /blog/gemini-cli-guide | July 31, 2026 |
Anthropic shipped Claude Fable 5 on June 9, 2026, and after the OpenAI comparisons the next question is the Google one. Search "claude fable 5 vs gemini" right now and you get thin results, because the two models sit in different price classes and most coverage treats them separately. For teams not on OpenAI, these are two of the frontier options that matter: Fable 5 at $10 per million input tokens and $50 per million output with a flat-priced 1M context window - now API-only since July 9 - and Gemini 3.1 Pro Preview at $2/$12 with a price step above 200K tokens. Add the now-GA Gemini 3.5 Pro with its 2M context, and the decision has more moving parts than it did in June.
We have already covered how Fable 5 stacks up against OpenAI's lineup and against DeepSeek V4 on cost versus quality. This post covers the Google side, with every number checked against the live pricing pages on July 31, 2026. Because Opus 5 shipped at half the Fable 5 price with near-Fable quality, we also updated the decision guide - the honest answer for most teams now involves all three models.
The Short Answer#
Gemini 3.1 Pro is the value play and Fable 5 is the capability play, and the gap in both directions is large enough that most teams will not agonize over this choice for long. The July complication: Opus 5 now sits between them and is the right default for most Anthropic-side work.
Gemini 3.1 Pro costs a fifth of Fable 5 on input and roughly a quarter on output below 200K context, and it posts genuinely strong scores - 80.6% on SWE-bench Verified and a verified 77.1% on ARC-AGI-2. Fable 5 is the first publicly available Mythos-class model, and where both have published numbers it leads by 10 to 20 points. You pay for that lead on every token, and Fable 5 is noticeably slower in interactive use. The new wrinkle: Opus 5 at $5/$25 is within a point or two of Fable 5 on most coding benchmarks, which collapses the "pay Fable prices for capability" case for most workloads.
The context-pricing wrinkle is unchanged: Anthropic bills the full 1M window flat, while Google doubles the input price above 200K tokens. That narrows the cost gap on long-context work but never closes it.
Head-to-Head: Specs and Pricing#
All pricing verified July 31, 2026 against the live pages: Anthropic's pricing docs and the Gemini API pricing page.
| Claude Fable 5 | Claude Opus 5 | Gemini 3.1 Pro Preview | |
|---|---|---|---|
| Status | API-only since July 9, 2026 | GA since July 24, 2026 | Preview since February 19, 2026 |
| API model ID | claude-fable-5 | claude-opus-5 | gemini-3.1-pro-preview |
| Input price (per MTok) | $10 flat across full context | $5 flat | $2.00 up to 200K / $4.00 above 200K |
| Output price (per MTok) | $50 flat | $25 flat | $12.00 up to 200K / $18.00 above 200K |
| Cache read | $1.00 | $0.50 | $0.20 up to 200K / $0.40 above, plus $4.50 per MTok per hour storage |
| Batch pricing | $5 input / $25 output | $2.50 input / $12.50 output | $1.00-$2.00 input / $6.00-$9.00 output |
| Context window | 1M tokens | 1M tokens | 1M tokens |
| Max output | 128K tokens | 128K tokens | 64K tokens |
Two notes the table hides. First, Anthropic states that Fable 5's full 1M window bills at standard pricing - a 900K-token request costs the same per-token rate as a 9K one. Second, the same page notes the tokenizer Fable 5 inherits from Opus 4.7 can produce up to 35% more tokens for the same text versus older Claude models, so sticker prices understate its real cost if your baseline was measured on an older tokenizer.
Pricing Math: Flat 1M vs the 200K Step#
The headline framing you will see elsewhere is "Claude charges flat, Google penalizes long context." That is true but easy to over-read, so here is the actual math, verified July 31, 2026 against the Gemini API pricing page and Anthropic's pricing docs.
A typical request under the step - 150K input tokens, 8K output:
- Fable 5: $1.50 input + $0.40 output = $1.90
- Opus 5: $0.75 input + $0.20 output = $0.95
- Gemini 3.1 Pro: $0.30 input + $0.096 output = about $0.40
Fable 5 costs roughly 4.8x Gemini. Now a long-context request - 500K input tokens, 10K output:
- Fable 5: $5.00 input + $0.50 output = $5.50
- Opus 5: $2.50 input + $0.25 output = $2.75
- Gemini 3.1 Pro (above-200K tier): $2.00 input + $0.18 output = $2.18
The gap narrows to about 2.5x, because Gemini's input price doubles while Fable 5 stays flat. So the honest version: Gemini 3.1 Pro is cheaper at every context length. Fable 5's flat pricing is not a discount, it is predictability - no step function in your cost model when an agent's context crosses 200K mid-session. And if your workloads live under 200K tokens, Gemini's higher tier never even triggers. Opus 5 splits the difference at half the Fable price, which is why it has become the default Anthropic recommendation. For deeper modeling on the Anthropic side, see our Fable 5 cost-per-task analysis and the Opus 5 vs Fable 5 comparison. For the family-level view, see the Claude vs Gemini comparison.
Benchmarks: A Tier Apart, With Caveats#
On paper this is not close, but the numbers come from different reporters and partially different benchmark versions, so treat the table as directional.
| Benchmark | Claude Fable 5 | Gemini 3.1 Pro |
|---|---|---|
| SWE-bench Verified | 95.0% | 80.6% |
| Terminal-Bench | 88.0% (v2.1) | 68.5% (v2.0) |
| Humanity's Last Exam (no tools) | 59.0% | 44.4% |
| ARC-AGI-2 | not published | 77.1% (verified) |
| GPQA Diamond | not published | 94.3% |
| OSWorld-Verified | 85.0% | not published |
Fable 5's figures come from kingy.ai's benchmark roundup, which compiles Anthropic and Vals data; Gemini's from nxcode's Gemini 3.1 Pro guide and Google's announcement. The Terminal-Bench versions differ (2.1 vs 2.0), neither vendor publishes the other's headline metric, and Anthropic's own claim is the unsurprising "state-of-the-art on nearly all tested benchmarks". The consistent 10-20 point spread across independent compilations is the signal, not any single cell.
Qualitative reports back the spread. Simon Willison, after 5.5 hours of release-day testing, called Fable 5 "a beast" that is "slow, expensive" but so capable that "the challenge is finding tasks that it can't do." Meanwhile Gemini 3.1 Pro's verified 77.1% on ARC-AGI-2 - more than double its predecessor's reasoning score per Google - is a real result on a benchmark designed to resist memorization. These are different strengths: Fable 5 is built for long autonomous runs, Gemini 3.1 Pro for strong reasoning at workhorse prices.
One Fable 5 quirk to know before committing: it ships safety classifiers covering cybersecurity, biology/chemistry, and distillation, and requests that trip them are handled by Claude Opus 4.8 instead. Anthropic reports more than 95% of sessions involve no fallback, but in those domains part of your traffic will quietly run on a different model.
Ecosystem and Access#
Gemini 3.1 Pro is unusually easy to reach: Google lists the Gemini API via AI Studio, Gemini CLI, Android Studio, the Antigravity agent platform, Vertex AI, Gemini Enterprise, the Gemini app, and NotebookLM as launch surfaces. If you live in the terminal, our Gemini CLI guide covers the workflow. The catch is the label: more than five months after release it is still gemini-3.1-pro-preview, with no stable GA model ID, which matters if your org has policies about preview models in production.
Fable 5 went GA on day one via the Claude API, and Anthropic included it on subscription plans through the June 22 cutoff, after which it required usage credits. On July 9, 2026 that changed again: Fable 5 moved to API-only access, and the API price has stayed at $10/$50 per MTok (verified July 31, 2026). If you want to feel the difference before committing API budget, the cheapest way now is through Opus 5 at half the price on a Max plan, not through Fable itself.
The Gemini 3.5 Pro Wildcard#
The strongest argument for waiting was the model Google had not shipped. Gemini 3.5 Pro reached general availability in late June 2026 after an enterprise preview on Vertex AI, with a 2-million-token context window and a Deep Think reasoning mode that trades latency for accuracy on hard problems. As of July 31, 2026 it has no row on the live Gemini API pricing page - the page lists Gemini 3.5 Flash ($1.50/$9.00) and the 3.1 Pro Preview, but not 3.5 Pro. Our Gemini 3.5 Pro developer guide tracks what is known; the estimate from enterprise preview reports is $12-$15 input / $36-$45 output per MTok.
Two things follow. If those numbers hold, Google's new flagship lands in Fable 5's price class, not Gemini 3.1 Pro's, which reframes the "Google is the cheap option" assumption. And pre-GA pricing is not a plan: choose between the models you can call today, then re-evaluate when 3.5 Pro has a pricing row and third-party numbers.
Decision Guide by Persona#
- Solo dev or side project: Gemini 3.1 Pro. The 5x input price gap buys a lot of iterations, and the preview label matters less when you are the only stakeholder.
- Team running long-horizon coding agents: Opus 5 first. At $5/$25 with a 1M flat context and 128K output ceiling, it covers most long-horizon work at half the Fable 5 price, and it outranks Fable 5 on the Artificial Analysis Intelligence Index. Reserve Fable 5 for tasks you have measured Opus 5 failing on. If you are already on Anthropic, start with our Opus 5 vs Fable 5 decision guide.
- Enterprise standardized on Google Cloud: Gemini 3.1 Pro on Vertex AI is the path of least resistance, with the caveat that you are running a preview model until Google ships GA - or evaluate Gemini 3.5 Pro's enterprise preview if your org has allowlist access.
- High-volume, cost-sensitive pipelines: Neither. Look at Gemini 3.5 Flash ($1.50/$9.00, verified July 31, 2026 on the Gemini pricing page) or the open-weights options in our Fable 5 vs DeepSeek V4 comparison.
- Interactive chat and quick answers: Gemini 3.1 Pro. Willison's "slow, expensive" assessment of Fable 5 is the consistent early report; deep reasoning is friction when the question is routine.
When to Skip Fable 5 and When to Skip Gemini#
Skip Fable 5 if your workload is mostly routine completions, latency-sensitive, or budget-capped - at 2.5x to 5x Gemini's price, plus a tokenizer that can inflate counts up to 35% versus older Claude models, the premium only pays when the capability gap saves you failed runs or human rework. With Opus 5 at half the Fable price, the Fable premium now has to justify itself against Opus 5 as well, which is a much higher bar. Also think twice if you work heavily in cybersecurity or life-science domains, where classifier fallbacks reroute part of your traffic.
Skip Gemini 3.1 Pro if you need more than 64K output tokens per call, if preview status is a compliance blocker, or if you have already watched cheaper frontier models fail on your hardest agentic tasks - the benchmark spread suggests Fable 5 (or Opus 5 at half the price) will convert some of those failures, and a converted failure is usually worth more than the token savings.
And stay where you are if your current model completes your tasks reliably. All of these launches reward teams that measure completion rates before switching, not after.
FAQ#
Is Claude Fable 5 better than Gemini 3.1 Pro for coding?#
On published numbers, yes by a wide margin: 95.0% vs 80.6% on SWE-bench Verified and 88.0% vs 68.5% on Terminal-Bench, though the Terminal-Bench versions differ (2.1 vs 2.0) and the figures come from different compilers. The gap matters most on long autonomous coding runs; for routine completions, Gemini 3.1 Pro is strong and far cheaper. Since July 24, Opus 5 at $5/$25 sits within a point or two on most coding benchmarks, which makes it the more relevant comparison for most Anthropic-side teams.
How much more expensive is Claude Fable 5 than Gemini 3.1 Pro?#
At standard rates verified July 31, 2026: $10 vs $2.00 per million input tokens (5x) and $50 vs $12.00 per million output (about 4.2x) below 200K context. Above 200K, Gemini moves to $4.00/$18.00 while Fable 5 stays flat, narrowing the total-cost gap to roughly 2.5x on input-heavy requests. Opus 5 splits the difference at $5/$25 with flat pricing.
Does Gemini 3.1 Pro really charge more above 200K tokens?#
Yes. The live Gemini API pricing page lists $2.00 input/$12.00 output for prompts up to 200K tokens and $4.00/$18.00 for prompts above it, with cache reads also doubling from $0.20 to $0.40 per MTok. Anthropic prices Fable 5's full 1M window flat.
Should I wait for Gemini 3.5 Pro instead of choosing now?#
Gemini 3.5 Pro is now GA (late June 2026) with a 2M context and Deep Think mode, but it still has no row on the Gemini API pricing page as of July 31, 2026. Estimate from enterprise preview reports: $12-$15 input / $36-$45 output per MTok - Fable 5's price class, not Gemini 3.1 Pro's. Decide between shipping models today and revisit when 3.5 Pro has published pricing and independent numbers.
Can I use both models in one stack?#
Yes, and the economics often argue for it: route routine and interactive work to Gemini 3.1 Pro at $2/$12 and reserve Fable 5's $10/$50 for the long-horizon tasks where cheaper models fail - or route through Opus 5 at $5/$25 first and only escalate to Fable when Opus fails. Both providers offer 50% batch discounts and prompt caching to tune costs further.
Sources#
- Anthropic: Claude Fable 5 and Claude Mythos 5 announcement - accessed July 31, 2026
- Anthropic: Claude API pricing documentation - accessed July 31, 2026
- Anthropic: Claude Opus 5 announcement - accessed July 31, 2026
- Google: Gemini API pricing - accessed July 31, 2026
- Google: Gemini 3.1 Pro announcement - accessed July 31, 2026
- Simon Willison: Initial impressions of Claude Fable 5 - accessed June 9, 2026
- kingy.ai: Claude Fable 5 benchmarks explained - accessed July 31, 2026
- nxcode: Gemini 3.1 Pro complete guide - accessed July 31, 2026
Continue Reading#
- Claude Opus 5 vs Opus 4.8 vs Fable 5 Comparison - the Anthropic-internal decision, with benchmarks and cost per task
- Frontier Model API Pricing: July 2026 - same-day-verified pricing across all four major providers
- Gemini 3.5 Pro Developer Guide - context window, Deep Think, and where to get access
- Claude Fable 5 Cost-Per-Task Analysis - when Fable pricing pays for itself
- Fable 5 vs DeepSeek V4 Cost-Quality - the open-weights alternative at 178x less
Get the next comparison like this in your inbox
One email a week on claude and the rest of the AI dev stack. Free.
Read next on Claude Code
Claude Opus 5 vs Opus 4.8 vs Fable 5: Benchmark Comparison (July 2026)
Claude Opus 5 launched July 24, 2026 at $5/$25 per MTok - matching Opus 4.8 pricing while delivering near-Fable 5 intelligence. Full benchmark comparison across 7 evals, pricing breakdown, and decision guide.
22 min readAntigravity CLI vs Claude Code vs Codex: The Terminal Agent Field Guide (July 2026)
Antigravity CLI vs Claude Code vs Codex: how Google's Gemini CLI replacement compares on architecture, pricing, multi-agent workflows, and daily coding.
9 min readBudget AI Coding Models, October 2026: Haiku 5.5 vs GPT-6 Luna
Claude Haiku 5.5 and GPT-6 Luna both list at $0.10/$0.50 per MTok. The price tie breaks at Haiku's 100K cliff, and Anthropic's benchmarks favor Haiku. Checked Oct 8, 2026.
11 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.








