OpenAI: gpt-oss-20b
The smaller of OpenAI's two gpt-oss open-weight models, a mixture-of-experts with 21B total and 3.6B active parameters. Apache 2.0 licensed and text-only, it offers low to high reasoning effort.
- Price per 1M tokens
- $0.0003 / $0.0013input / output
- Cached input
- $0.0003per 1M tokens
- Context
- 131K tokens117K max output
Providers
15 providers ·
128K context · 16K max output
128K context · 16K max output
131K context · 117K max output
131K context
131K context · 16K max output
131K context · 117K max output
32K context · 117K max output
131K context · 117K max output
- Route 1 · bf16131K context · 117K max outputCache $0.016 · 4.75 s · 28 tok/s · 98.2 %4.75 s · 28 tok/sInput $0.032Cache read $0.016Output $0.15Latency 4.75 sSpeed 28 tok/sUptime 98.2 %$0.032 in$0.15 out
- Route 2 · bf16131K context · 117K max outputCache $0.013 · UnavailableInput $0.025Cache read $0.013Output $0.12Latency —Speed —Uptime Unavailable$0.025 in$0.12 out
131K context · 117K max output
131K context · 8.1K max output
- Route 1131K context · 117K max outputCache $0.073* · 0.45 s · 182 tok/s · 100 %0.45 s · 182 tok/sInput $0.073Cache read $0.073 (no cache discount: the input price)Output $0.16Latency 0.45 sSpeed 182 tok/sUptime 100 %$0.073 in$0.16 out
- Route 2131K context · 117K max outputCache $0.073* · 0.35 s · 377 tok/s · 100 %0.35 s · 377 tok/sInput $0.073Cache read $0.073 (no cache discount: the input price)Output $0.16Latency 0.35 sSpeed 377 tok/sUptime 100 %$0.073 in$0.16 out
131K context · 65K max output
128K context · 32K max output
131K context · 32K max output
* No cache discount from this provider: cached tokens cost the input price.
A request picks by price (:floor) or by speed (provider.sort, :nitro), or sets a floor on tokens per second. How routing works
Price history
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/gpt-oss-20b", "messages": [{ "role": "user", "content": "Hi" }] }'About gpt-oss-20b
gpt-oss-20b costs from $0.0003 per 1M input tokens and $0.0013 per 1M output tokens on OpenCheap. Its list price is $0.03 per 1M input tokens and $0.13 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 99 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0000043, and 1,000 such requests about $0.0043. It can also be called free as gpt-oss-20b:free (10 requests a minute and 200 a day per key). Prices as of 2026-11-23 20:14 UTC.
15 providers serve gpt-oss-20b on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in usage.cost. Its context window is 131K tokens (131,072), room for roughly 98,000 words of English in one request.
gpt-oss-20b is one of 113 OpenAI models on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
Call gpt-oss-20b with the OpenAI SDK
Point the OpenAI SDK at OpenCheap and pass the model id opencheap/gpt-oss-20b; the rest of your code stays the same.
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/gpt-oss-20b",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)More from OpenAI
- gpt-oss-20b (free)gpt-oss-20b:freeFree · 131K context
- gpt-oss-120bgpt-oss-120b$0.0049 / $0.021 per 1M · 131K context
- GPT 5.5gpt-5.5$2.40 / $14.40 per 1M · 1M context
- chat-latestchat-latest$5.25 / $31.48 per 1M · 400K context
- Codex Minicodex-mini-latest$1.50 / $6.00 per 1M
- GPT OSS 120Be2ee-gpt-oss-120b-p$0.12 / $0.58 per 1M · 128K context
- GPT OSS 20Be2ee-gpt-oss-20b-p$0.03 / $0.11 per 1M · 128K context
- gpt-3.5-turbogpt-3.5-turbo$0.53 / $1.58 per 1M · 4K context
Similar models
- ministral-3-3bMistral · 128K context$0.001 / $0.001 per 1MCompare with gpt-oss-20b →
- Gemma 4 26B A4B ItGoogle · 262K context$0.001 / $0.003 per 1MCompare with gpt-oss-20b →
- NVIDIA Nemotron Nano 9B v2NVIDIA · 131K context$0.0006 / $0.0023 per 1MCompare with gpt-oss-20b →
- Ministral 3 8BMistral · 128K context$0.0023 / $0.0023 per 1MCompare with gpt-oss-20b →
- NVIDIA Nemotron Nano 12B v2 VL BF16NVIDIA · 128K context$0.003 / $0.009 per 1MCompare with gpt-oss-20b →
- zai-org/GLM-5Zhipu · 204K context$0.0015 / $0.0046 per 1MCompare with gpt-oss-20b →