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.
Choose gpt-oss-20b for self-hosting and data control; on the other points the two are level or the data is missing.
Each answer below comes straight from the published prices, specifications and independent benchmark results.
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.
| Codestral | gpt-oss-20b | |
|---|---|---|
| Provider | Mistral AI | OpenAI |
| Category | Language models | Language models |
| Status | Generally available | Generally available |
| Headline price | No data | No data |
| Input | No data | No data |
| Output | No data | No data |
| Cached input | No data | No data |
| Context window | 128k | 131k |
| Max output | No data | 131k |
| Released | August 2025 | August 2025 |
| Knowledge cutoff | No data | June 2024 |
| Licence | Proprietary | Open weights |
| Capabilities | Tool calling | Reasoning, Tool calling, Self-hostable |
| API model id | codestral-2508 | gpt-oss-20b |
Leader in bold.
| Benchmark | Codestral | gpt-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.
Choose gpt-oss-20b for self-hosting and data control; on the other points the two are level or the data is missing.
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.
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.