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

- **Model id:** `opencheap/gpt-oss-20b`
- **Price per 1M tokens:** $0 input / $0.0012 output
- **Cached input:** $0 per 1M tokens
- **Context:** 131K tokens, 117K max output

## Providers

15 providers. Prices are per 1M tokens. As of 2026-11-24 00:01 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Qubax | $0 | $0 | $0.0012 | — | — | — | 128K | 16K |
| Darkbloom · fp4 | $0.016 | $0.008 | $0.08 | 0.66 s | 77 tok/s | 100 % | 131K | 117K |
| Hugging Face · akashml | $0.018 | $0.018* | $0.09 | — | — | — | 131K | — |
| NanoGPT | $0.018 | $0.009 | $0.09 | — | — | — | 131K | 16K |
| AkashML · fp4 | $0.019 | $0.0095 | $0.095 | 0.80 s | 86 tok/s | 98.5 % | 131K | 117K |
| Greenference | $0.02 | $0.0062 | $0.062 | — | — | — | 32K | 117K |
| CoreWeave · fp4 | $0.032 | $0.032 | $0.14 | 0.19 s | 192 tok/s | 99.1 % | 131K | 117K |
| DeepInfra · Route 1 · bf16 | $0.032 | $0.016 | $0.15 | 0.37 s | 88 tok/s | 98.5 % | 131K | 117K |
| DeepInfra · Route 2 · bf16 | $0.025 | $0.013 | $0.12 | — | — | Unavailable | 131K | 117K |
| Parasail · fp4 | $0.032 | $0.021 | $0.16 | 1.29 s | 94 tok/s | 99.8 % | 131K | 117K |
| SiliconFlow · fp8 | $0.042 | $0.042* | $0.19 | 1.07 s | 60 tok/s | 96.7 % | 131K | 8.1K |
| Amazon Bedrock · Route 1 | $0.073 | $0.073* | $0.16 | 0.47 s | 175 tok/s | 100 % | 131K | 117K |
| Amazon Bedrock · Route 2 | $0.073 | $0.073* | $0.16 | 0.38 s | 435 tok/s | 100 % | 131K | 117K |
| Groq | $0.079 | $0.039 | $0.32 | 0.21 s | 536 tok/s | 98.4 % | 131K | 65K |
| AiHubMix | $0.11 | $0.11* | $0.55 | — | — | — | 128K | 32K |
| PrimeIntellect · fp4 | $0.21 | $0.19 | $0.32 | 0.90 s | 117 tok/s | 98.1 % | 131K | 32K |
| Surplus | $0.0003 | $0.00015 | $0.0015 | — | — | Unavailable | 128K | 16K |

\* 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](https://docs.opencheap.si/speed)

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/gpt-oss-20b#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/gpt-oss-20b`; the rest of your code stays the same.

```bash
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" }] }'
```

```python
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)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/gpt-oss-20b",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About gpt-oss-20b

gpt-oss-20b costs from $0 per 1M input tokens and $0.0012 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.0000012, and 1,000 such requests about $0.0012. 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 23:56 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](https://opencheap.si/models/lab/openai) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## More from OpenAI

- [gpt-oss-20b (free)](https://opencheap.si/models/gpt-oss-20b:free) (`gpt-oss-20b:free`): Free · 131K context
- [gpt-oss-120b](https://opencheap.si/models/gpt-oss-120b) (`gpt-oss-120b`): $0.0062 / $0.025 per 1M · 131K context
- [GPT 5.5](https://opencheap.si/models/gpt-5.5) (`gpt-5.5`): $2.40 / $14.40 per 1M · 1M context
- [chat-latest](https://opencheap.si/models/chat-latest) (`chat-latest`): $5.25 / $31.51 per 1M · 400K context
- [Codex Mini](https://opencheap.si/models/codex-mini-latest) (`codex-mini-latest`): $1.50 / $6.00 per 1M
- [GPT OSS 120B](https://opencheap.si/models/e2ee-gpt-oss-120b-p) (`e2ee-gpt-oss-120b-p`): $0.078 / $0.39 per 1M · 128K context
- [GPT OSS 20B](https://opencheap.si/models/e2ee-gpt-oss-20b-p) (`e2ee-gpt-oss-20b-p`): $0.03 / $0.11 per 1M · 128K context
- [gpt-3.5-turbo](https://opencheap.si/models/gpt-3.5-turbo) (`gpt-3.5-turbo`): $0.52 / $1.57 per 1M · 4K context

[All 113 OpenAI models](https://opencheap.si/models/lab/openai)

## Similar models

- [Gemma 4 26B A4B It](https://opencheap.si/models/gemma-4-26b-a4b): Google · 262K context · $0.0007 / $0.002 per 1M · [Compare with gpt-oss-20b](https://opencheap.si/compare/gpt-oss-20b-vs-gemma-4-26b-a4b)
- [ministral-3-3b](https://opencheap.si/models/ministral-3-3b): Mistral · 128K context · $0.0015 / $0.0015 per 1M · [Compare with gpt-oss-20b](https://opencheap.si/compare/gpt-oss-20b-vs-ministral-3-3b)
- [google/gemma-3-12b-it](https://opencheap.si/models/gemma-3-12b): Google · 131K context · $0.0008 / $0.0023 per 1M · [Compare with gpt-oss-20b](https://opencheap.si/compare/gpt-oss-20b-vs-gemma-3-12b)
- [Ministral 3 8B](https://opencheap.si/models/ministral-3-8b): Mistral · 128K context · $0.0023 / $0.0023 per 1M · [Compare with gpt-oss-20b](https://opencheap.si/compare/gpt-oss-20b-vs-ministral-3-8b)
- [NVIDIA Nemotron Nano 9B v2](https://opencheap.si/models/nemotron-nano-9b-v2): NVIDIA · 131K context · $0.0009 / $0.0035 per 1M · [Compare with gpt-oss-20b](https://opencheap.si/compare/gpt-oss-20b-vs-nemotron-nano-9b-v2)
- [NVIDIA Nemotron Nano 12B v2 VL BF16](https://opencheap.si/models/nemotron-nano-12b-v2): NVIDIA · 128K context · $0.003 / $0.009 per 1M · [Compare with gpt-oss-20b](https://opencheap.si/compare/gpt-oss-20b-vs-nemotron-nano-12b-v2)

[Compare gpt-oss-20b with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/gpt-oss-20b · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
