Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude Sonnet 4 vs gpt-oss-20b

Anthropic · released

Wins 4 of 6 areas

Coding · Agents · Facts · Long documents

OpenAI · released

Wins 1 of 6 areas

Following instructions

Claude Sonnet 4 is the stronger all-rounder.gpt-oss-20b is cheaper and better at following instructions.

Scores updated · 31 tests both models report · How we compare

Where each one wins

Tests won in each of the six areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.

Long documents and following instructions rest on a single test each.

What it costs

Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.

Claude Sonnet 4$3.00 to read · $15.00 to write$18Price from anthropic
gpt-oss-20b$0.07 to read · $0.18 to write$0.25Price from Artificial Analysis

gpt-oss-20b costs 99% less for the same work.

The biggest differences

The three tests each model wins by the widest margin. Scores are out of 100.

Where Claude Sonnet 4 pulls ahead

  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+65points aheadClaude Sonnet 470.9gpt-oss-20b5.9
  • Reasons across sets of long documentsAA-LCR+35.6points aheadClaude Sonnet 470.3gpt-oss-20b34.7
  • Command-line tasks in a real terminalTerminal-Bench 2.1+22.4points aheadClaude Sonnet 436.3gpt-oss-20b13.9

Where gpt-oss-20b pulls ahead

  • Finds hard-to-locate facts by browsing the webBrowseComp+16.1points aheadgpt-oss-20b28.3Claude Sonnet 412.2
  • Recent programming contest problemsLiveCodeBench v6+12.5points aheadgpt-oss-20b61Claude Sonnet 448.5
  • Follows unfamiliar, precisely checkable instructionsIFBench+10.4points aheadgpt-oss-20b65.1Claude Sonnet 454.7

Every test, side by side

All 31 tests both models report. The winning score is in its model's colour; marks a score checked independently.

CodingClaude Sonnet 4

Full coding ranking

AgentsClaude Sonnet 4

Full agents ranking

ReasoningEven

Full reasoning ranking

FactsClaude Sonnet 4

Full facts ranking

Long documentsClaude Sonnet 4
  • AA-LCRClaude Sonnet 4 by 35.670.334.7+35.6

Full long documents ranking

Following instructionsgpt-oss-20b
  • IFBenchgpt-oss-20b by 10.454.765.1+10.4

Full following instructions ranking

Other results15 tests, not counted

Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.

Questions people ask

Which is better, Claude Sonnet 4 or gpt-oss-20b?

Claude Sonnet 4 wins four of the six areas where both have results: coding, agents, facts and long documents. gpt-oss-20b wins following instructions, and costs 99% less. They are level on reasoning.

Which is better for coding?

Claude Sonnet 4. It wins 5 of the 6 coding tests both models report; gpt-oss-20b wins 1.

Which is cheaper?

Claude Sonnet 4 costs $3.00 per million input tokens and $15.00 per million output tokens; gpt-oss-20b costs $0.07 and $0.18. That makes gpt-oss-20b about 99% cheaper for the same work.

How do you compare the two?

We use the 31 benchmark tests both models have published scores on. The verdict counts the 16 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 15 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.