Codestral vs gpt-oss-20b: price, context and capabilities

Choose gpt-oss-20b for self-hosting and data control; on the other points the two are level or the data is missing.

In short

  • A price comparison is not possible: one of them has no comparable published price.
  • gpt-oss-20b reads more per request: 131k tokens against 128k.
  • Only gpt-oss-20b offers reasoning, self-hostable.

Open in the full comparison table

Which should you choose?

Each answer below comes straight from the published prices, specifications and independent benchmark results.

Self-hosting and data control

Choose gpt-oss-20b

gpt-oss-20b has open weights, so you can run it on your own servers; Codestral is only available through its provider.

Specifications side by side

Codestralgpt-oss-20b
ProviderMistral AIOpenAI
CategoryLanguage modelsLanguage models
StatusGenerally availableGenerally available
Headline priceNo dataNo data
InputNo dataNo data
OutputNo dataNo data
Cached inputNo dataNo data
Context window128k131k
Max outputNo data131k
ReleasedAugust 2025August 2025
Knowledge cutoffNo dataJune 2024
LicenceProprietaryOpen weights
CapabilitiesTool callingReasoning, Tool calling, Self-hostable
API model idcodestral-2508gpt-oss-20b

Benchmarks side by side

Leader in bold.

BenchmarkCodestralgpt-oss-20b
Intelligence Index No data 9
Terminal-Bench Hard No data 10.6%
SciCode No data 38.9%
GPQA Diamond No data 68.8%
Humanity's Last Exam No data 11%
IFBench (instruction following) No data 65.1%
τ²-Bench (agentic tool use) No data 60.2%
Long-context reasoning (AA-LCR) No data 34.7%

Independent evaluations by Artificial Analysis, run the same way for every model, at the reasoning setting shown. Percentages unless marked as an index.

Frequently asked questions

Should I choose Codestral or gpt-oss-20b?

Choose gpt-oss-20b for self-hosting and data control; on the other points the two are level or the data is missing.

Which is cheaper, Codestral or gpt-oss-20b?

A price comparison is not possible: one of them has no comparable published price.

Which has the larger context window, Codestral or gpt-oss-20b?

gpt-oss-20b reads more per request: 131k tokens against 128k.

What is the difference between Codestral and gpt-oss-20b?

Codestral is made by Mistral AI and gpt-oss-20b by OpenAI. A price comparison is not possible: one of them has no comparable published price. gpt-oss-20b reads more per request: 131k tokens against 128k. Only gpt-oss-20b offers reasoning, self-hostable.