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
| Field | openai__gpt-oss-20b | x-ai__grok-4.7 |
|---|---|---|
| Provider | OpenAI | xAI |
| Slug | openai__gpt-oss-20b | x-ai__grok-4.7 |
| Status | live | live |
| Open weights | Yes | No |
| License | — | — |
| HuggingFace | openai/gpt-oss-20b | — |
Quality
| Field | openai__gpt-oss-20b | x-ai__grok-4.7 |
|---|---|---|
| Quality index (0–100) | — | — |
Cost
| Field | openai__gpt-oss-20b | x-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
| Field | openai__gpt-oss-20b | x-ai__grok-4.7 |
|---|---|---|
| Max context tokens | 131,072 | 500,000 |
| Max output tokens | 32,768 | 450,000 |
Modalities
| Field | openai__gpt-oss-20b | x-ai__grok-4.7 |
|---|---|---|
| Input | text | text, image, file |
| Output | text | text |