OpenAI: gpt-oss-20b API Pricing & Monthly Cost Calculator
OpenAI: gpt-oss-20b by OpenAI is priced at $0.03 per 1M input tokens and $0.13 per 1M output tokens with a 131.1K context window. Prompt caching reduces repeated prefix reads to $0.03/1M (0% savings). Batch API lowers rates to $0.024 in / $0.112 out.
Direct Official vs. OpenRouter Gateway
Comparing direct vendor pricing against multi-provider OpenRouter routing for openai/gpt-oss-20b.
| Channel | Input / 1M | Output / 1M | Cache Read |
|---|---|---|---|
| Direct Official | Unmatched | Unmatched | — |
| OpenRouter Gateway | $0.03 | $0.13 | $0.03 |
1M to 1B Token Cost Tiers
Reference monthly spend assuming a standard 75% input / 25% output workload mix.
| Monthly Volume | Standard | 75% Cached | Batch API |
|---|---|---|---|
| 1M tokens | $0.06 | $0.06 | $0.05 |
| 10M tokens | $0.55 | $0.55 | $0.46 |
| 100M tokens | $5.50 | $5.50 | $4.60 |
| 1B tokens | $55.00 | $55.00 | $46.00 |
Interactive OpenAI: gpt-oss-20b Bill Estimator
Adjust request volume, tokens, and prompt cache hit ratio.
Closest Price-Tier Alternatives
| Model | Input / 1M | Output / 1M | Context |
|---|---|---|---|
| Mistral: Ministral 3 3B 2512 | $0.1 | $0.1 | 131.1K |
| Mistral: Ministral 3 8B 2512 | $0.15 | $0.15 | 262.1K |
| DeepSeek: DeepSeek V4 Flash 0731 | $0.046 | $0.27 | 1.05M |
| Mistral: Ministral 3 14B 2512 | $0.2 | $0.2 | 262.1K |
| OpenAI: GPT-5 Nano | $0.05 | $0.4 | 400K |
| Google: Gemini 2.5 Flash Lite | $0.1 | $0.4 | 1.05M |
Optimize Inference & Self-Hosting
Compare OpenAI: gpt-oss-20b against flagship models from OpenAI, Anthropic, Google, and DeepSeek in our interactive comparison matrix, or benchmark self-hosted GPU break-even thresholds.
Model Specifications & FAQs
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...
How much does OpenAI: gpt-oss-20b API cost per 1M tokens?
OpenAI: gpt-oss-20b costs $0.03 per 1M input tokens and $0.13 per 1M output tokens (OpenRouter gateway rate), verified on 2026-12-05.
Does OpenAI: gpt-oss-20b support prompt caching or batch discounts?
Yes, cached input reads cost $0.03 per 1M tokens (0% off standard input). Batch API reduces rates to $0.024 input and $0.112 output per 1M tokens.
What is the context window and max output for OpenAI: gpt-oss-20b?
OpenAI: gpt-oss-20b supports a 131,072-token context window and up to 117,964 output tokens per completion.