gpt-oss-20b API Cost Calculator
Estimate your monthly API costs for gpt-oss-20b from Openai.
Pricing per 1M tokens
Pricing last verified: Mar 21, 2026
30-Day Price History
Solid line: input price · Dashed line: output price
Estimate Your Costs
What are you building?
Cost Breakdown
Compare with Similar Models
| Model | Input/1M | Output/1M |
|---|---|---|
| gpt-oss-120b Openai | $0.0390 | $0.1900 |
| gpt-oss-120b (free) Openai | $0.00 | $0.00 |
| gpt-oss-20b (free) Openai | $0.00 | $0.00 |
| gpt-oss-safeguard-20b Openai | $0.0750 | $0.3000 |
| GPT-5 Nano Openai | $0.0500 | $0.4000 |
Frequently Asked Questions
How much does gpt-oss-20b cost per token?
gpt-oss-20b is priced at $0.0300 per 1M input tokens and $0.1400 per 1M output tokens. Use the calculator above to estimate your monthly costs based on your usage volume.
What is the context window for gpt-oss-20b?
gpt-oss-20b has a context window of 131.1K tokens (131,072 tokens).
Does gpt-oss-20b support function calling (tool use)?
Yes, gpt-oss-20b supports function calling (also called tool use). You can define custom functions that the model can invoke as part of its responses.
How does gpt-oss-20b compare to similar models?
gpt-oss-20b costs $0.0300 input and $0.1400 output per 1M tokens. gpt-oss-20b (free) is less expensive at $0.00 input and $0.00 output per 1M tokens. See the "Compare with Similar Models" table above, or visit the gpt-oss-20b (free) page at /tools/cost-calculator/openai/gpt-oss-20b-free.