# OpenAI: gpt-oss-20b (free)

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:free`
- **Price:** Free (10 requests a minute and 200 a day per key)
- **Context:** 131K tokens

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/gpt-oss-20b:free`; 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:free", "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:free",
    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:free",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About gpt-oss-20b (free)

gpt-oss-20b (free) is free to call on OpenCheap (10 requests a minute and 200 a day per key). Its list price is $0.17 per 1M input tokens and $0.36 per 1M output tokens.

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 (free) is one of [114 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`.

## Pricing questions

### How much does the gpt-oss-20b (free) API cost?

gpt-oss-20b (free) is free to call on OpenCheap (10 requests a minute and 200 a day per key). Its list price is $0.17 per 1M input tokens and $0.36 per 1M output tokens.

### What is the context window of gpt-oss-20b (free)?

Its context window is 131K tokens (131,072), room for roughly 98,000 words of English in one request.

### How do I call the gpt-oss-20b (free) API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/gpt-oss-20b:free. One OpenCheap key works for every model; the rest of your code stays the same.

## More from OpenAI

- [gpt-oss-20b](https://opencheap.si/models/gpt-oss-20b) (`gpt-oss-20b`): $0.0003 / $0.0015 per 1M · 131K context
- [gpt-oss-120b](https://opencheap.si/models/gpt-oss-120b) (`gpt-oss-120b`): $0.0049 / $0.021 per 1M · 131K context
- [GPT 5.5](https://opencheap.si/models/gpt-5.5) (`gpt-5.5`): $2.00 / $12.00 per 1M · 1M context
- [chat-latest](https://opencheap.si/models/chat-latest) (`chat-latest`): $5.25 / $31.48 per 1M · 272K context
- [Codex Mini](https://opencheap.si/models/codex-mini-latest) (`codex-mini-latest`): $1.50 / $6.00 per 1M
- [gpt-3.5-turbo](https://opencheap.si/models/gpt-3.5-turbo) (`gpt-3.5-turbo`): $0.52 / $1.57 per 1M · 4K context
- [GPT-3.5 Turbo (older v0613)](https://opencheap.si/models/gpt-3.5-turbo-0613) (`gpt-3.5-turbo-0613`): $1.05 / $2.10 per 1M · 4K context
- [GPT-3.5 Turbo 16k](https://opencheap.si/models/gpt-3.5-turbo-16k) (`gpt-3.5-turbo-16k`): $3.15 / $4.20 per 1M · 16K context

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

---

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