Skip to content
llmmodels

GPT-5.4 mini vs GPT OSS 20B

GPT-5.4 mini wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (149.4 vs 134.9). GPT OSS 20B is about 13× cheaper on a blended (3:1 input:output) token price. GPT-5.4 mini has the larger context window (400K vs 128K). GPT OSS 20B has open weights, so you can self-host and fine-tune it; GPT-5.4 mini is API-only.

SpecGPT-5.4 miniGPT OSS 20B
ProviderOpenAIOpenAI
ReleasedMar 17, 2026 (better)Aug 5, 2025
TypeReasoning LLMReasoning LLM
Parameters—21B
Context window400K (better)128K
Max output125K (better)64K
Input price / 1M$0.75$0.075 (better)
Output price / 1M$4.50$0.3 (better)
Input modalitiestext, image, file (better)text
Open weightsNoYes
LicenseProprietaryapache-2.0
Reasoning modeYesYes
Tool callingYesYes
API providers4344 (better)
Epoch Capabilities Index149.4 (better)134.9
GPQA Diamond86.9% (better)60.8%
Terminal-Bench—3.4%
WebDev Arena1397—
OTIS Mock AIME88.9% (better)65.3%
FrontierMath51.2%—
ARC-AGI-218.9%—
SimpleQA Verified29.4%—

Cost example

For a workload of 10M input + 2M output tokens per month: GPT-5.4 mini costs $16.50 and GPT OSS 20B costs $1.35 at list price (OpenAI / openrouter pricing).

About GPT-5.4 mini

GPT-5.4 mini is a proprietary reasoning llm from OpenAI, released Mar 17, 2026. It has a 400K-token context window and accepts text, image, file input. API pricing starts at $0.75 per million input tokens and $4.50 per million output tokens. It is available from 43 API providers. It scores 149.4 on the Epoch Capabilities Index. Full GPT-5.4 mini specs →

About GPT OSS 20B

GPT OSS 20B is an open-weight reasoning llm from OpenAI, released Aug 5, 2025. It has 21B parameters and a 128K-token context window. API pricing starts at $0.075 per million input tokens and $0.3 per million output tokens. It is available from 44 API providers. It scores 134.9 on the Epoch Capabilities Index. Full GPT OSS 20B specs →

Compare other models

FAQ

Which is better, GPT-5.4 mini or GPT OSS 20B?

GPT-5.4 mini wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (149.4 vs 134.9). GPT OSS 20B is about 13× cheaper on a blended (3:1 input:output) token price. GPT-5.4 mini has the larger context window (400K vs 128K). GPT OSS 20B has open weights, so you can self-host and fine-tune it; GPT-5.4 mini is API-only.

Is GPT-5.4 mini cheaper than GPT OSS 20B?

GPT-5.4 mini costs $0.75 input / $4.50 output per 1M tokens; GPT OSS 20B costs $0.075 / $0.3. GPT OSS 20B is cheaper overall.

Which has a bigger context window?

GPT-5.4 mini: 400,000 tokens. GPT OSS 20B: 131,072 tokens.

Are GPT-5.4 mini and GPT OSS 20B open source?

GPT-5.4 mini is proprietary; GPT OSS 20B is open-weight.