Models / OpenAI / gpt-oss-20b
OpenAI

gpt-oss-20b

BYOKOpen weightsReleased 5 Aug 2025

Open-weights model from OpenAI and among the cheapest tested, with tool calling and reasoning mode. It ranks last of 114 on the intelligence index, so it suits cost-sensitive work rather than hard tasks.

Read the full description ↓

Spec sheet

Family
OpenAI
Released
5 Aug 202516 months ago
Weights
Open
Context window
131k tokens
Largest response
118k tokens
Accepts
text
Supports
tools, reasoning, structured output
Knowledge cutoff
June 2024
Intelligence index
28.5#111
Input price
$0.04 / 1M
Output price
$0.3 / 1M
Blended price (3:1)
$0.1 / 1M
Index points per $
271.4#9
Speed
117 tokens/sec#30
Popularity
#51 of 194by usage
Providers
6
Weights on
openai/gpt-oss-20b

Benchmarks

Score · rank among models tested

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
Doublewordgateway/doubleword:openai/gpt-oss-20b $0.04–$0.3$0.1
Groqgateway/groq:openai/gpt-oss-20b $0.075$0.037$0.3$0.13
OpenRouterBYOKopenrouter:openai/gpt-oss-20b $0.03$0.009$0.14$0.058
OVHcloudBYOKovhcloud:gpt-oss-20b $0.05–$0.18$0.083
FireworksBYOKfireworks:gpt-oss-20b $0.07$0.035$0.3$0.13
Cloudflare Workers AIBYOK–$0.2–$0.3$0.23

The cheapest provider is highlighted. Blended price assumes three input tokens for each output token.

Example code

# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/doubleword:openai/gpt-oss-20b', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)

Ask gpt-oss-20b a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

gpt-oss-20bvsQwen3.5-9B
Intelligence index
205590$0.1$1$10Qwen3.5-9B: 34.6 at $0.23 blendedgpt-oss-20b: 28.5 at $0.1 blended
GPQA Diamond
5075100$0.1$1$10Qwen3.5-9B: 79% at $0.23 blendedgpt-oss-20b: 60.8% at $0.1 blended
OTIS Mock AIME
4070100$0.1$1$10Qwen3.5-9B: 61.7% at $0.23 blendedgpt-oss-20b: 65.3% at $0.1 blended
Terminal-Bench
04590$0.1$1$10Qwen3.5-9B: 9.2% at $0.23 blendedgpt-oss-20b: 3.4% at $0.1 blended
SciCode
204570$0.1$1$10Qwen3.5-9B: 29.5% at $0.23 blendedgpt-oss-20b: 38.9% at $0.1 blended
LMArena text
128014101540$0.1$1$10gpt-oss-20b: 1287.6 at $0.1 blended
Epoch Capabilities Index
120150180$0.1$1$10Qwen3.5-9B: 139.5 at $0.23 blendedgpt-oss-20b: 134.9 at $0.1 blended

Score against blended price per 1M tokens (log scale). gpt-oss-20b   Qwen3.5-9B   other models

Intelligence indexOur composite of the benchmarks below, 0-100
gpt-oss-20b28.5
Qwen3.5-9B34.6
GPQA DiamondGraduate-level science questions, multiple choice
gpt-oss-20b60.8%
Qwen3.5-9B79%
OTIS Mock AIMECompetition mathematics problems with exact answers
gpt-oss-20b65.3%
Qwen3.5-9B61.7%
Terminal-BenchTasks completed in a terminal; the best result of any agent using the model
gpt-oss-20b3.4%
Qwen3.5-9B9.2%
SciCodeScientific programming problems written by researchers
gpt-oss-20b38.9%
Qwen3.5-9B29.5%
LMArena textRating from blind human votes between pairs of chat responses
gpt-oss-20b1287.6
Qwen3.5-9B–
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
gpt-oss-20b134.9
Qwen3.5-9B139.5
Input pricePer 1M tokens, lower is better
gpt-oss-20b$0.04
Qwen3.5-9B$0.08
Output pricePer 1M tokens, lower is better
gpt-oss-20b$0.3
Qwen3.5-9B$0.7
EfficiencyIndex points per blended $
gpt-oss-20b271
Qwen3.5-9B147
SpeedOutput tokens per second
gpt-oss-20b117 t/s
Qwen3.5-9B54.5 t/s
Context windowTokens
gpt-oss-20b131k
Qwen3.5-9B262k
Model stringFor Pydantic AI
gpt-oss-20bgateway/doubleword:openai/gpt-oss-20b
Qwen3.5-9Bgateway/doubleword:Qwen/Qwen3.5-9B

About gpt-oss-20b

Description written by an LLM from the data on this page

Open-weights model from OpenAI and among the cheapest tested, with tool calling and reasoning mode. It ranks last of 114 on the intelligence index, so it suits cost-sensitive work rather than hard tasks.

gpt-oss-20b is an open-weights model from OpenAI, released August 2025. It takes text input only and offers a 131k context window, tool calling, structured output and a reasoning mode. Input costs $0.04 per million tokens and output $0.30 per million, a blended $0.11 against a registry median of $1.01, which ranks sixth cheapest of 194.

Capability is the weak point. Its intelligence index is 28.5, last of 114 against a median of 59.5. It ranks near the bottom on every benchmark given, including 60.8% on GPQA Diamond (92nd of 94), 3.4% on Terminal-Bench (35th of 35) and 1287.6 on LMArena, last of 114.

It suits high-volume, simple work where cost dominates, and its ninth place on efficiency reflects that low price more than output quality. Six providers serve it, and it is available through the Gateway.

Strengths

  • Blended price of $0.11 per million tokens, 6th cheapest of 194
  • Efficiency of 271 intelligence points per dollar, 9th of 194
  • Supports tool calling, structured output and reasoning mode
  • Open weights, 131k context window and six providers

Weaknesses

  • Intelligence index 28.5, last of 114 against a median of 59.5
  • Terminal-Bench 3.4%, last of 35; GPQA Diamond 60.8%, 92nd of 94
  • LMArena rating 1287.6, last of 114 against a median of 1437.6

Best for

High-volume, simple text tasks where low cost matters more than accuracy, such as classification, extraction or routing with tool calls.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs