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.
- Price
- Free10 requests a minute and 200 a day per key
- Context
- 131K tokens
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:free", "messages": [{ "role": "user", "content": "Hi" }] }'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.03 per 1M input tokens and $0.13 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 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 (free) with the OpenAI SDK
Point the OpenAI SDK at OpenCheap and pass the model id opencheap/gpt-oss-20b:free; 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:free",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)More from OpenAI
- gpt-oss-20bgpt-oss-20b$0.00025 / $0.0012 per 1M · 131K context
- gpt-oss-120bgpt-oss-120b$0.0062 / $0.025 per 1M · 131K context
- GPT 5.5gpt-5.5$2.40 / $14.40 per 1M · 1M context
- chat-latestchat-latest$5.26 / $31.55 per 1M · 400K context
- Codex Minicodex-mini-latest$1.50 / $6.00 per 1M
- GPT OSS 120Be2ee-gpt-oss-120b-p$0.078 / $0.39 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.52 / $1.57 per 1M · 4K context