gpt-oss-20b vs phi-4

Specs, VRAM requirements and download trends — updated 10 November 2026.

openai · A · Open weights
Params
21.5 B
Context
131,072
30d
5.8 M
apache-2.0 · commercial OK
microsoft · B · Open weights
Params
14.7 B
Context
16,384
30d
276 K
mit · commercial OK

Specification comparison

Differences are highlighted; identical values are muted.

Specification gpt-oss-20b phi-4
Deployment Open weights · also via API Open weights · also via API
Parameters 21.5 B 14.7 B
Architecture GptOssForCausalLM Phi3ForCausalLM
Context length 131,072 16,384
Licence apache-2.0 mit
Commercial use Allowed Allowed
Languages — 1
Downloads 30d 5,830,063 275,580
Downloads all time 108.5 M 14.9 M
Quantizations on the Hub SAFETENSORS SAFETENSORS
Gated No No
First seen on the Hub 2025-08-04 2024-12-11
API input price / 1M tokens $0.03 $0.07
API output price / 1M tokens $0.13 $0.14
Est. cost per 1M input + 1M output tokens $0.16 $0.21
Cached input / 1M tokens $0.03 —
AA Intelligence Index — —
AA Coding Index 20.7 —
AA Agentic Index 1.2 —
Max output tokens 117,964 14,745
API providers 10 1
Tool calling Yes No
Reasoning mode Yes No

API cost

Estimated cost of 1M input + 1M output tokens via OpenRouter

gpt-oss-20b $0.16
phi-4 $0.21

gpt-oss-20b is 1.3× cheaper at list price.

Download trend

Daily snapshots, last 90 days (13 Aug – 10 Nov)

8.1 M276 K
gpt-oss-20b phi-4

VRAM side by side

On RTX 4090 · 24 GB · 8K context unless noted

phi-4 · fp16 34.9 GB / 24 GB
❌ Won’t fit
gpt-oss-20b · fp16 @ 128K ctx 82.4 GB / 24 GB
❌ Won’t fit

Adjacent comparisons