by OpenAI

gpt-oss-20b pricing, limits and verdict

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.

Best for
Private assistant that runs locally
Not for
Image, audio or video input
  • Available
  • Open source

Should you use gpt-oss-20b?

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.

Best for

  • Private assistant that runs locally The MXFP4 weights run within 16 GB and the Apache 2.0 licence allows commercial use without copyleft terms.
  • Agent loops with function calling OpenAI documents native function calling, browsing and Python execution, and the model reaches 60.7% on SWE-bench Verified at high reasoning in its own card.
  • Fine-tuning on consumer hardware The Hugging Face card says this smaller model can be fine-tuned on consumer hardware.

Not for

  • Image, audio or video input It takes text only; use a multimodal model such as Gemma 4 12B.
  • Low-latency answers at high reasoning High effort spends a long thinking phase first; use low or medium, or a non-reasoning model.

Can you use gpt-oss-20b?

  • Free plan: yes.
  • Open weights: released (Apache 2.0).

gpt-oss-20b pricing

Pricing model
open-weights
Free tier
The weights are free to download and use under Apache 2.0. Running it costs your own hardware, or a host's fee.

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.

Self-hosting requirements

Min vram gb
16
Self-hosted
Yes

What gpt-oss-20b can do

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.

What goes in and what comes out

Reads

  • text
  • tool-calls

Writes

  • text
  • tool-calls

Capabilities

  • Code executionSupported
  • Function callingSupported
  • Structured outputSupported
  • Tool useSupported
  • Web browsingSupported
  • Audio inputNot supported
  • Audio outputNot supported
  • Video inputNot supported
  • VisionNot supported
Reasoning modes
low, medium, high

Key features

  • 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.

Known limitations

  • Text only: no image, audio or video input, so document-scanning and voice workloads need another model.
  • At high reasoning it thinks for a long time first; Artificial Analysis measured a wait of about 34 seconds before the answer starts on its test host.
  • Must be prompted in the harmony response format; plain chat prompts without it do not work correctly, per the Hugging Face card.

Who it is for

  • Developers who run models on their own hardware
  • Teams that need open weights they can fine-tune
  • Builders of local coding and agent tools

gpt-oss-20b benchmarks

gpt-oss-20b against its nearest rivals

SWE-bench Verified % solved, higher is better

GPQA Diamond % correct, higher is better

Standout result

3.6B active

Active parameters per token out of 21B total

Source: OpenAI announcement, read 25 Nov 2026

Where it sits

MeasureThis modelRankMedian
SWE-bench Verified% solved60.7%#31 / 40peer median 76.3%
GPQA Diamond% correct71.5%#51 / 64peer median 87.6%

Ranks are against GA models on Hokai that publish the same figure; ties share a rank.

Benchmark scores

Show all 6 benchmark scores
  • AIME 2025 vendor-reported · 25 Nov 202691.7%Competition-level maths problems from the 2025 exam, % solved.
  • MMLU vendor-reported · 25 Nov 202685.3%General-knowledge exam across 57 subjects, % correct.
  • GPQA Diamond vendor-reported · 25 Nov 202671.5%PhD-level science questions that are hard to search for, % correct.
  • SWE-bench Verified vendor-reported · 25 Nov 202660.7%Real GitHub issues fixed end to end, % solved.
  • Aider Polyglot vendor-reported · 25 Nov 202634.2%Code edits across several programming languages, % correct.
  • Humanity's Last Exam vendor-reported · 25 Nov 202610.9%Expert-written questions across many fields, % correct.

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.

Strengths and limits

Strengths

  • Fits on consumer hardware, per OpenAI's announcement, so no data-centre GPU is needed.
  • 91.7% on the AIME 2025 maths set without tools at high reasoning, in OpenAI's own model card (vendor-reported).
  • Permissive open-weight licence with no copyleft terms.
  • Runs within 16 GB of memory with its native MXFP4 weights, per OpenAI's announcement and the Hugging Face card, so a single consumer GPU or a laptop can host it.
Show 2 more
  • Strong competition-maths result for a model with only 3.6B active parameters, per the vendor-reported scores in its card.
  • Reasoning effort is a setting (low, medium, high) in the system prompt, so one model covers fast chat and long problem solving.

Limits

  • Text only, so image and audio workloads need another model.
  • Long thinking time at high effort makes it a poor fit for live chat.
  • Needs the harmony prompt format, which adds setup for custom serving.

gpt-oss-20b alternatives

ModelLabContextIn / out per 1MReads and writes
gpt-oss-20b This pageOpenAI131K--text → text
Gemma 4 12BPick gpt-oss-20b for tool-calling reasoning on text; pick Gemma 4 12B if you need images, audio or video.Google262K--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 AI256K--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.Microsoft33K--text → text

gpt-oss-20b specs

Context window
131K tokens
Architecture
Mixture-of-experts Transformer
Mixture of experts
Yes
Parameters
21B total, 3.6B active
VRAM requirements
Runs within 16 GB of memory with the native MXFP4 weights (OpenAI, Hugging Face card).

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.

Weight formats

  • safetensors (BF16 and MXFP4 U8)

API endpoints

NameEndpointAuth
OpenRouterhttps://openrouter.ai/openai/gpt-oss-20bAPI key
Hugging Face (weights)https://huggingface.co/openai/gpt-oss-20bnone for download

SDKs

  • Python

Prompting patterns

Show 1 prompting pattern
  • Set the reasoning level in the system prompt

    Reasoning: high

    OpenAI's card says low, medium and high trade latency for depth.

Known quirks

Show 3 known quirks
  • 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 facts

Licence
Apache 2.0 · Open source
Safety posture
Configurable
Released
05 Aug 2025
Current version
gpt-oss-20b
Family
gpt-oss
Variant
Chat
Deployment
Self-hosted · Hugging Face · Ollama · LM Studio · AWS Bedrock · Azure · Groq · DeepInfra · Coreweave · OpenRouter
Data retention
Not applicable to the weights: when you run it yourself nothing is sent to OpenAI. A third-party host sets its own retention.

Safety controls

Rlhf
Yes
System prompt
Yes
Constitutional AI
No
Content filter API
No
Moderation endpoint
No
Red teaming
OpenAI fine-tuned the models on biology and cybersecurity data to test worst-case misuse, reviewed by three independent expert groups, and ran a Kaggle red-teaming challenge with a $500,000 prize fund.

Version history

  • gpt-oss-20b · 05 Aug 2025

    Initial release with gpt-oss-120b, Apache 2.0, MXFP4 weights.

What changed

  • Release OpenAI releases gpt-oss-120b and gpt-oss-20b as open-weight models source

Questions about gpt-oss-20b

How much does gpt-oss-20b cost to run?

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.

Is gpt-oss-20b open source, and can I use it for free?

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.

Does gpt-oss-20b send my data to OpenAI?

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.

gpt-oss-20b vs Gemma 4 12B: which is better for local use?

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.

How much memory does gpt-oss-20b need?

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.

About gpt-oss-20b

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.

Read the full background

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.

Sources and guides

More AI Models on Hokai

  • Gemini 4 NeonGemini 4 Neon is Google DeepMind's November 2026 mid-tier reasoning model for coding and agents, with a 1M-token window and four thinking levels.
  • GPT-6.2 AstraGPT-6.2 Astra is OpenAI's November 2026 frontier reasoning model for professional and scientific work, reading text and images with five effort levels.
  • GPT-6.2 SolGPT-6.2 Sol is OpenAI's November 2026 everyday reasoning model for coding and agents, reading text and images with five reasoning effort levels.
  • Kimi K2.8 PreviewMoonshot AI's Kimi Code model at the kimi-for-coding route since September 2026, with a 1M-token context window, image and video input and no published benchmark; Kimi K3.1 Pro is now Moonshot's top model.
  • Sakana NamazuSakana AI's API model for Japanese business work, built on an open Kimi model, with a 256,000-token context and built-in web search and code execution.
  • Claude Opus 5.5Anthropic's September 2026 flagship LLM with a 1 million token context window, built for long-running agentic coding and computer use.