OpenAI: gpt-oss-20b API Pricing
OpenAI: gpt-oss-20b costs $0.018 per 1M input tokens and $0.090 per 1M output tokens (cache reads: $0.0090). Context window: 131K. Prices verified 2026-10-21 · source
Rebuilt daily from our snapshot archive — the chart appears once a model has 5+ snapshots of history.
High adoption means battle-tested weights, more fine-tunes/quants, and faster bug fixes. View on HuggingFace →
From our own daily snapshot archive — independent of provider announcements.
Intelligence measures reasoning/knowledge/coding benchmarks. A high score with a low blended price = value pick; check the value chart to see where this model lands.
Token economics
| Token type | Price | vs base input |
|---|---|---|
| Standard input | $0.018 | — |
| Cache read | $0.0090 | −50% |
| Output | $0.090 | — |
Prompt caching stores repeated context server-side: reads cost far less, but writes carry a one-time premium.
Higher effort = deeper thinking = more reasoning tokens billed as output.
Training data ends here — newer events require retrieval or web search.
What would OpenAI: gpt-oss-20b cost you per month?
| Workload | Requests/mo | Avg tokens (in/out) | Est. monthly cost |
|---|---|---|---|
| Light chatbot | 10,000 | 800 / 400 | $0.50 |
| Coding agent | 5,000 | 8,000 / 2,000 | $1.62 |
| RAG pipeline | 30,000 | 4,000 / 500 | $3.51 |
| Doc summarizer | 2,000 | 20,000 / 1,000 | $0.90 |
Estimates use list prices without prompt caching. Caching can cut input cost by up to 90% on repeated context.
About OpenAI: gpt-oss-20b
gpt-oss-20b is an open-weight 21B parameter model released by OpenAI under the Apache 2.0 license. It uses a Mixture-of-Experts (MoE) architecture with 3.6B active parameters per forward pass, optimized for...
Compare OpenAI: gpt-oss-20b with
- OpenAI: gpt-oss-20b vs OpenAI: GPT-5.6 Terra Pro
- OpenAI: gpt-oss-20b vs Anthropic: Claude Fable 5
- OpenAI: gpt-oss-20b vs Anthropic: Claude Opus 5
- OpenAI: gpt-oss-20b vs OpenAI: GPT-5.6 Sol
Popular head-to-heads — see all on the comparisons index.
Frequently asked questions
How much does OpenAI: gpt-oss-20b cost?
OpenAI: gpt-oss-20b costs $0.018 per 1M input tokens and $0.090 per 1M output tokens; cached input tokens cost $0.0090 per 1M. Verified 2026-10-21 — provider source.
What is the context window?
131K tokens, with up to 33K output tokens per response. That's roughly 164 pages of text in a single request.
Does it support prompt caching?
Yes — cached input is $0.0090/1M, about 50% cheaper than standard input. Agents and RAG workloads with repeated context benefit most.
What's a cheaper alternative?
Check the value chart for models with similar intelligence at lower cost.
Official resources
- OpenAI: gpt-oss-20b on OpenRouter — live endpoint, pricing source of record.
- Artificial Analysis leaderboard → — independent intelligence and performance rankings.
- OpenAI pricing → — first-party pricing and billing details.
- LMArena leaderboard → — independent human-preference rankings.
- Shred your current bill — paste a CSV and see if switching saves money.