gpt-oss-20b is 74.1× cheaper per million tokens (blended). Grok 4.7 has the larger context window (500,000 vs 131,072 tokens, 3.8×). gpt-oss-20b is open-weights; the other is not.

gpt-oss-20b vs Grok 4.7

Live catalog fields. Best-in-row is highlighted.

gpt-oss-20bopen

OpenAI · openai__gpt-oss-20b

Grok 4.7

xAI · x-ai__grok-4.7

Identity

Fieldopenai__gpt-oss-20bx-ai__grok-4.7
ProviderOpenAIxAI
Slugopenai__gpt-oss-20bx-ai__grok-4.7
Statuslivelive
Open weightsYesNo
License——
HuggingFaceopenai/gpt-oss-20b—

Quality

Fieldopenai__gpt-oss-20bx-ai__grok-4.7
Quality index (0–100)——

Cost

Fieldopenai__gpt-oss-20bx-ai__grok-4.7
Input $ / 1M tokens$0.02$2.00
Cached input $ / 1M$0.01$0.50
Output $ / 1M tokens$0.09$6.00

Context

Fieldopenai__gpt-oss-20bx-ai__grok-4.7
Max context tokens131,072500,000
Max output tokens32,768450,000

Modalities

Fieldopenai__gpt-oss-20bx-ai__grok-4.7
Inputtexttext, image, file
Outputtexttext