Claude vs Gemini on SWE-bench: 79.6% vs 63.8% Compares Different Models

The SWE-bench pairing that circulates for Claude vs Gemini sets two models from different generations against each other. Anthropic’s Claude Sonnet 4.6 system card reports Claude Sonnet 4.6 at 79.6% on SWE-bench Verified, the same figure TensorFeed’s SWE-bench leaderboard lists (checked November 14, 2026), while the 63.8% belongs to Gemini 2.5 Pro, as stated in DeepMind’s Gemini 2.5 announcement. The sections below set out both scores, the Sonnet 4.6 context window, the current per-prompt costs and a curl pair for switching APIs.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Two scores from different model generations

DeepMind’s post says Gemini 2.5 Pro “scores 63.8% with a custom agent setup” on SWE-bench Verified. That is not a Gemini 3 result, and the agent setup is part of the figure. The 15.8-point difference (79.6 minus 63.8) therefore separates Sonnet 4.6 from an older Gemini model, and the two scores may not share a test setup either. Google Cloud’s model documentation lists gemini-3.5-flash with a release date of May 19, 2026, a newer Gemini than the 2.5 Pro behind the 63.8%. On that same TensorFeed leaderboard, Gemini 3.6 Flash is listed at 79.6%, level with Sonnet 4.6. TensorFeed marks the 3.6 Flash entry as independent and dates it 2026-07, while the Sonnet 4.6 entry is dated 2026-02, so even that pair may not share a test setup.

For a fair call, take both models’ Verified scores from one leaderboard under the same test setup. The TensorFeed board cited above is one such source, though its entries carry different labels. A gap of a few points on a public board should shortlist models, not decide between them. On the published figures Sonnet 4.6 and Gemini 3.6 Flash tie at 79.6%, so coding score does not separate them; decide on price and window, then pilot both on your own repository. Claude’s own tiers are compared in our Opus, Sonnet and Haiku comparison, and if the job is agent-driven coding, our Claude Code vs GitHub Copilot comparison covers the tool itself.

Sonnet 4.6 has a 1M token context window, not 200K

Claude Sonnet 4.6 has a 1M token context window, not 200K, so the old 200K-versus-2M framing no longer describes it; BenchLM’s SWE-bench Verified table lists Gemini 2.5 Pro with a 1M window too. Anthropic’s API release notes say Sonnet 4.6 and Opus 4.6 support the full 1M token context window at standard pricing with no beta header required (checked November 14, 2026). Chat plans differ: our plan window comparison notes that, per Anthropic’s usage and length limits page, Claude Pro windows are 1M, 500K or 200K tokens depending on the model chosen.

What one full prompt costs at the published rates

Anthropic’s pricing page lists Sonnet 4.6 at $3 input and $15 output per 1M tokens, the current Sonnet 5.5 at $2 input and $10 output, and Opus 4.6 at $5 input and $25 output (checked November 14, 2026). On the Google side, Google Cloud’s Model Garden pricing page lists Gemini 3.1 Pro Preview at $2.00 for input and $12.00 for text output at the global rate, next to a second column showing $4.00 and $18.00; read that column’s heading on the page before pricing a long prompt. Sonnet 5.5 and Gemini 3.1 Pro Preview therefore list the same input rate, with output at $10 against $12.

Multiplying tokens by the input rate gives the cost of the prompt itself, before any output. A full 1M-token Sonnet 4.6 prompt costs $3.00 in input (1M tokens at $3 per 1M); the same prompt on Sonnet 5.5 costs $2.00.

ModelInput per 1M tokensOutput per 1M tokensInput cost of a 200K-token prompt
Claude Sonnet 4.6$3$15$0.60
Claude Sonnet 5.5 (current Sonnet)$2$10$0.40
Claude Opus 4.6$5$25$1.00
Gemini 3.1 Pro Preview (Google Cloud, global)$2.00$12.00n/a: Google’s page lists $2.00 only in the column read above

Moving one request between the two APIs

The Claude call uses the current Sonnet ID, claude-sonnet-5-5, rather than the Sonnet 4.6 scored above; the Gemini ID is left for you to set.

set -euo pipefail
: "${ANTHROPIC_API_KEY:?set ANTHROPIC_API_KEY}"

curl -sSf https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model": "claude-sonnet-5-5", "max_tokens": 1024,
       "messages": [{"role": "user", "content": "Explain quicksort in Python"}]}' \
  | jq -r '.content[0].text'
set -euo pipefail
: "${GEMINI_API_KEY:?set GEMINI_API_KEY}"
: "${GEMINI_MODEL:?set GEMINI_MODEL to a model ID from Google's models page}"

curl -sSf "https://generativelanguage.googleapis.com/v1beta/models/${GEMINI_MODEL}:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "content-type: application/json" \
  -d '{"contents": [{"role": "user", "parts": [{"text": "Explain quicksort in Python"}]}]}' \
  | jq -r '.candidates[0].content.parts[0].text'
Nadia Dubois

Nadia Dubois

AI, software and the business of tech

Nadia Dubois covers AI, software and the business of tech for Tech Insider: AI models and the products built on them, developer and productivity software, pricing, and the company decisions and regulation that shape the industry.

View all articles