by OpenAI
The small model in OpenAI's gpt-oss pair: the weights are free, the reasoning is adjustable and it fits on a 16 GB machine.
OpenAI released gpt-oss-20b on 5 August 2025 with a 128K context window and, in its own card, 91.7% on the AIME 2025 maths set. It suits developers who want a tool-calling reasoning model on a 16 GB machine, and it sits below the 117B gpt-oss-120b.
Checked 25 Nov against OpenAI's own pages.
OpenAI does not sell gpt-oss-20b through its own API, so it has no OpenAI price. The weights are free under Apache 2.0. Hosts set their own prices, which change often; check the host before you build on one.
gpt-oss-20b is OpenAI's open-weight reasoning model, released on 5 August 2025 under Apache 2.0. It is a mixture-of-experts Transformer with 21B parameters, 3.6B active per token, and OpenAI's model card reports 60.7% on SWE-bench Verified at high reasoning. It runs within 16 GB of memory.
Reads
Writes
Few active parameters
A mixture-of-experts design that activates only 4 of its 32 experts for each token, per OpenAI.
Consumer-hardware footprint
Native MXFP4 weights keep memory low enough for a laptop-class GPU.
Adjustable reasoning
Low, medium and high effort set in the system prompt.
Agentic tools
Native function calling, web browsing, Python execution and structured outputs.
Open weights
Free to download from Hugging Face and to use commercially under a permissive licence.
Active parameters per token out of 21B total
Source: OpenAI announcement, read 25 Nov 2026| Measure | This model | Rank | Median |
|---|---|---|---|
| SWE-bench Verified% solved | 60.7% | #31 / 40 | peer median 76.3% |
| GPQA Diamond% correct | 71.5% | #51 / 64 | peer median 87.6% |
Ranks are against GA models on Hokai that publish the same figure; ties share a rank.
A benchmark is an exam, not the job. Scores transfer unevenly between tasks, so weigh the one closest to your workload and read every figure with its source.
| Model | Lab | Context | In / out per 1M | Reads and writes |
|---|---|---|---|---|
| OpenAI | 131K | -- | text → text | |
| 262K | -- | text, image, audio, video → text | ||
| Devstral Small 2Pick gpt-oss-20b for general reasoning with adjustable effort; pick Devstral Small 2 for a coding-only agent on one GPU. | Mistral AI | 256K | -- | text, image → text |
| Aion 1.0 InstructAion 1.0 Instruct is Microsoft's open-weights small language model for on-device text work in Windows and Edge, under the MIT licence, in eight languages. | Microsoft | 33K | -- | text → text |
Training data
OpenAI's announcement says the models were post-trained like o4-mini, with a supervised fine-tuning stage and a high-compute reinforcement learning stage, aligned to the OpenAI Model Spec.
| Name | Endpoint | Auth |
|---|---|---|
| OpenRouter | https://openrouter.ai/openai/gpt-oss-20b | API key |
| Hugging Face (weights) | https://huggingface.co/openai/gpt-oss-20b | none for download |
Set the reasoning level in the system prompt
Reasoning: high
OpenAI's card says low, medium and high trade latency for depth.
Requires the harmony response format
The model was trained only on OpenAI's harmony format; raw prompts without it give wrong behaviour, per the Hugging Face card.
Workaround: Use the Transformers chat template, which applies harmony for you, or the openai-harmony package.
Chain of thought is returned in full
The reasoning text is part of the output and OpenAI says it is not meant for end users.
Workaround: Show only the final message channel in your app and keep the reasoning for debugging.
Slow first answer at high effort
At the high setting the model reasons at length before the first visible word.
Workaround: Put 'Reasoning: low' or 'Reasoning: medium' in the system prompt for interactive use.
gpt-oss-20b · 05 Aug 2025
Initial release with gpt-oss-120b, Apache 2.0, MXFP4 weights.
The weights cost nothing under Apache 2.0, and OpenAI does not sell the model through its own API. On a host, OpenRouter listed it at 0.0153 dollars per 1M input tokens and 0.0765 dollars per 1M output tokens on 25 Nov 2026. Artificial Analysis listed 0.05 dollars in and 0.22 dollars out the same day. Self-hosting costs your own hardware.
The weights are released under the Apache 2.0 licence, which allows commercial use without copyleft terms, and they are free to download from Hugging Face. OpenAI does not publish the training data or code, so the term is open weights in the strict sense. You can run it for free on your own machine with Ollama or LM Studio.
Not when you run it yourself: the weights run on your own machine and nothing is sent to OpenAI. If you call it through a third-party host such as OpenRouter or Groq, that host's data and retention terms apply instead, so read them first.
OpenAI's card gives gpt-oss-20b 71.5% on GPQA Diamond without tools at high reasoning and 60.7% on SWE-bench Verified. Hokai's Gemma 4 12B record lists 78.8% on GPQA Diamond, so Gemma leads on that test by its own source, though the setups differ. Gemma 4 12B also reads images, audio and video, which gpt-oss-20b cannot.
OpenAI says it runs within 16 GB of memory thanks to the native MXFP4 weights. The context window is 128K tokens, and a long context adds memory on top of the weights.
gpt-oss-20b is the smaller of the two open-weight reasoning models OpenAI released on 5 August 2025, beside the 117B gpt-oss-120b. It is a mixture-of-experts Transformer with 24 layers and 32 experts, 4 of them active per token, so 3.6B of its 21B parameters work on each token. OpenAI's announcement says it delivers results similar to OpenAI o3-mini on common benchmarks. The weights are Apache 2.0, with no copyleft terms.
The scores below come from OpenAI's own model card (arXiv 2508.10925), all at the high reasoning setting and all vendor-reported. It lists 60.7% on SWE-bench Verified, 71.5% on GPQA Diamond without tools, 91.7% on AIME 2025 without tools, 85.3% on MMLU and 34.2% on Aider Polyglot. On Humanity's Last Exam it scores 10.9% without tools. At low reasoning the same card gives 37.4% on SWE-bench Verified, so the setting changes the result a lot. Hokai has not re-run any of these.
The context window is 128K tokens natively, per the announcement. The model reads and writes text only: there is no image, audio or video input. Reasoning effort is set to low, medium or high in the system prompt, and the full chain of thought is returned, though OpenAI says it is not meant to be shown to end users. The model must be prompted in OpenAI's harmony response format.
It supports function calling, structured outputs, a browsing tool and Python code execution. OpenAI does not serve it in its own API. You download the weights from Hugging Face and run them yourself with Ollama, LM Studio, vLLM or Transformers, or call a third-party host. The MXFP4 quantisation of the mixture-of-experts weights is what lets it fit in 16 GB. Artificial Analysis lists Amazon Bedrock, CoreWeave, DeepInfra and Groq among its hosts. Hugging Face carries the weights.
Who should not use it: teams that need image or audio input should look at Gemma 4 12B, which reads text, images, audio and video. Teams whose main job is repository-level coding on one GPU should weigh Devstral Small 2, a coding-specific open model. Teams that need the strongest hosted reasoning and a managed API are better served by GPT-5.5, and teams that need a context window far above 128K by GLM-5.3-Flash.
One cost to plan for: at the high setting the model thinks for a long time before it answers, so low or medium suits interactive use.
Specifications on this page (context window, token prices, benchmark scores, licence) are read from OpenAI's own model card and documentation. The verdict is Hokai's reading of them, not the provider's claim.