Skip to content
llmmodels

GPT OSS 20B vs Grok 4.7

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

SpecGPT OSS 20BGrok 4.7
ProviderOpenAIxAI
ReleasedAug 5, 2025Sep 21, 2026 (better)
TypeReasoning LLMReasoning LLM
Parameters21B2.1T
Context window128K500K (better)
Max output64K500K (better)
Input price / 1M$0.075 (better)$2
Output price / 1M$0.3 (better)$6
Input modalitiestexttext, image, pdf, file (better)
Open weightsYesNo
Licenseapache-2.0Proprietary
Reasoning modeYesYes
Tool callingYesYes
API providers44 (better)37
Epoch Capabilities Index134.9156.4 (better)
GPQA Diamond60.8%92.7% (better)
Terminal-Bench3.4%—
WebDev Arena—1638
OTIS Mock AIME65.3%98.1% (better)
FrontierMath—53.0%
ARC-AGI-2—61.4%
SimpleQA Verified—56.0%

Cost example

For a workload of 10M input + 2M output tokens per month: GPT OSS 20B costs $1.35 and Grok 4.7 costs $32.00 at list price (openrouter / xai pricing).

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 →

About Grok 4.7

Grok 4.7 is a proprietary reasoning llm from xAI, released Sep 21, 2026. It has 2.1T parameters, a 500K-token context window and accepts text, image, pdf, file input. API pricing starts at $2 per million input tokens and $6 per million output tokens. It is available from 37 API providers. It scores 156.4 on the Epoch Capabilities Index. Full Grok 4.7 specs →

Compare other models

FAQ

Which is better, GPT OSS 20B or Grok 4.7?

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

Is GPT OSS 20B cheaper than Grok 4.7?

GPT OSS 20B costs $0.075 input / $0.3 output per 1M tokens; Grok 4.7 costs $2 / $6. GPT OSS 20B is cheaper overall.

Which has a bigger context window?

GPT OSS 20B: 131,072 tokens. Grok 4.7: 500,000 tokens.

Are GPT OSS 20B and Grok 4.7 open source?

GPT OSS 20B is open-weight; Grok 4.7 is proprietary.