gpt-oss-20b
by OpenAI
OpenAI reasoning model on your computer.
Text and agentsCommercial useRuns on 32 GB
1. Commercial use
“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work”
Any use is allowed, paid products included; follow applicable law as the usage policy asks.
huggingface.co/openai/gpt-oss-20b/raw/main/LICENSE2. On your machine
Our estimate: about 0.6 GB per billion parameters at 4-bit, with room for the context.
huggingface.co/openai/gpt-oss-20b3. Through an API
Cheapest live provider with tool calling, as the provider reports its price.
huggingface.co/docs/inference-providers4. Tool calling
Providers whose API supports tool calling for this model, as each reports it.
huggingface.co/openai/gpt-oss-20bChecked against its official pages on Nov 23, 2026. Tap a verdict to see its source.How we checkedReport an error
What gpt-oss-20b does
gpt-oss-20b is an open text model by OpenAI that reasons step by step, calls tools and runs on a machine with 16 GB of memory. It is the smaller of OpenAI's two open-weight models. The files are on Hugging Face, free to use in paid products under the Apache 2.0 license.
What people use it for
Private assistant on a laptop
Run a chat assistant on your own computer with Ollama, so prompts and answers stay on the machine.
Use it from Python
Load the model with Hugging Face Transformers and call it from your own script or backend.
Drop-in local server for OpenAI-style apps
Start a local server that accepts the same request format as OpenAI's hosted models, so an existing app can switch to it.
Agents with tools
Build an agent that calls your functions, browses the web, runs Python and returns answers in a fixed format.
Choose speed or depth per request
Set the reasoning level to low for quick chat, or medium or high for harder questions, in the system prompt.
Train it on your own data
Fine-tune it for your own task on ordinary hardware, without a data center.
gpt-oss-20b popularity
As reported by Hugging Face, checked Nov 26, 2026. Downloads include automated ones; some repositories report none.
Where to run gpt-oss-20b
Through an API
| Provider | $ per 1M in / out | Tools | Context |
|---|---|---|---|
| AkashML (99.1% up, 24h) | $0.018 / $0.09 | Yes | 131K |
| OpenRouter | $0.024 / $0.112 | Yes | 131K |
| CoreWeave (99.7% up, 24h) | $0.03 / $0.13 | Yes | 131K |
| OpenRouter | $0.03 / $0.13 | Yes | 131K |
| DeepInfra (98.6% up, 24h) | $0.03 / $0.14 | Yes | 131K |
| Parasail (100% up, 24h) | $0.03 / $0.15 | Yes | 131K |
| Amazon Bedrock (100% up, 24h) | $0.07 / $0.15 | Yes | 131K |
| Groq (99.8% up, 24h) | $0.075 / $0.3 | Yes | 131K |
| PrimeIntellect (99.6% up, 24h) | $0.2 / $0.3 | Yes | 131K |
As reported by each provider via Hugging Face Inference Providers and OpenRouter, checked Nov 26, 2026.
On your machine
20.9B
about 12.5 GB
Our estimate: 0.6 GB per billion parameters, with room for the context.
60 on Hugging Face
For llama.cpp, Ollama and LM Studio; e.g. ggml-org/gpt-oss-20b-GGUF
20 on Hugging Face
For Apple silicon
gpt-oss-20b license
Free to use, change and sell inside paid products under Apache 2.0. If you pass the model files on, include a copy of the license and mark the files you changed.
Any use is allowed, paid products included; follow applicable law as the usage policy asks.
“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work” source
Shipping the weights or a fine-tuned copy needs a copy of the Apache 2.0 license and a note on changed files.
“You must cause any modified files to carry prominent notices stating that You changed the files” source
You may build and deliver client projects with it under the same Apache 2.0 terms.
“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work” source
Alternatives
gpt-oss-20b This page
Qwen · image-text-to-text
moonshotai · image-text-to-text
meta-llama · text-generation
Qwen · image-text-to-text
Get started
Tell your AI assistant
“Run openai/gpt-oss-20b locally (ollama run gpt-oss:20b, or a transformers pipeline with torch_dtype="auto" and device_map="auto"), always go through the chat template so the harmony format is applied, set "Reasoning low/medium/high" in the system prompt, and never show the reasoning text to end users.”
Install the libraries.
pip install -U transformers kernels torchRun the model with a Transformers pipeline (see the "Use it from Python" recipe above).
Or, on a laptop, pull and run it with Ollama.
ollama pull gpt-oss:20b ollama run gpt-oss:20b
Model id to use
OpenAI-compatible: base URL https://openrouter.ai/api/v1
openai/gpt-oss-20bOpenAI-compatible: base URL https://router.huggingface.co/v1
openai/gpt-oss-20bA community GGUF build on Hugging Face; read its card before use.
ggml-org/gpt-oss-20b-GGUFMistakes to avoid
Without the harmony format the model does not work correctly.
OpenAI says the reasoning may contain made-up or harmful content.
OpenAI marks these tools as examples, not for production.
The tool caches pages between calls.
gpt-oss was trained on text only.
Questions
Can I use gpt-oss-20b in a paid product?
Yes. It is under Apache 2.0, which allows commercial use; keep the license text with any copies of the files you share.
What computer do I need?
OpenAI says it runs within 16 GB of memory; the larger gpt-oss-120b needs one 80 GB GPU.
How do I make it think longer?
Put "Reasoning high" in the system prompt; low is fastest, medium is balanced.
Can it read images?
No. It was trained on text only.