Eliminating the 4 Hidden Taxes: AI Tokens, Manual Work, SaaS Cliffs & AI Scrapers Sponsor this header →

OpenAI: gpt-oss-20b API Pricing & Cost Breakdown

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...

openai/gpt-oss-20b
ultra-budget
Last checked: Nov 21, 2026
Input / 1M Tokens
$0.017
Prompt & context tokens
Output / 1M Tokens
$0.085
Generated completion tokens
Blended (3:1) / 1M
$0.034
Tier: ultra-budget
Context Window
131K
Max output: 118K

Technical Specifications

Canonical IDopenai/gpt-oss-20b
ProviderOpenAI
Input Modalitiestext
Output Modalitiestext
Open-WeightNo (Proprietary API)
Reasoning OptimizedStandard
Vision SupportText-only

Estimated Monthly API Spend

StageMonthly TokensEst. Cost
Prototype / MVP
500 req/day
22.5M in / 6.0M out $0.89/mo
Growing SaaS
10,000 req/day
600.0M in / 150.0M out $22.95/mo
Scale Production
100,000 req/day
7500.0M in / 1800.0M out $280.50/mo
Simulate Custom Volume → Cut Cost via 3-Tier Cascade →

Deploy or Route OpenAI: gpt-oss-20b

Multi-Provider Gateway

OpenRouter

Unified API gateway for 300+ LLMs with automatic fallbacks and unified billing.

Call via OpenRouter →
Edge AI Gateway

Cloudflare Workers AI

Global edge AI gateway with response caching, rate-limiting, and serverless workers.

Build on Cloudflare →
Simple Cloud Hosting

DigitalOcean GPU Droplets

Simple cloud compute and managed inference droplets with predictable monthly pricing.

Launch on DigitalOcean →

Some outbound infrastructure and API gateway links on KostoZero are partner referrals that help keep this observatory free and independent at no extra cost to you.

Cheaper Alternatives to OpenAI: gpt-oss-20b

ModelProviderInput / 1MOutput / 1MBlendedContext
inclusionAI: Ling 3.0 Flash Inclusionai $0.021 $0.063 $0.032 262K
Mistral: Mistral Nemo Mistral AI $0.029 $0.03 $0.029 131K
Meta: Llama 3.1 8B Instruct Meta Llama $0.02 $0.04 $0.025 131K
inclusionAI: Ling 3.0 Tiny Inclusionai $0.015 $0.045 $0.022 262K
Baidu: ERNIE-5.5-Flash-Preview (free) Baidu Free Free Free 1.02M
LiquidAI: LFM3-1.7B (free) Liquid Free Free Free 262K

Direct Head-to-Head Comparisons

Frequently Asked Questions

How much does OpenAI: gpt-oss-20b API cost per 1M tokens?

OpenAI: gpt-oss-20b costs $0.017 per 1M input tokens and $0.085 per 1M output tokens ($0.034 blended at a 3:1 ratio).

What is the maximum context window of OpenAI: gpt-oss-20b?

OpenAI: gpt-oss-20b supports up to 131,072 tokens (131K) of input context and up to 117,964 output completion tokens.

What are cheaper alternatives to OpenAI: gpt-oss-20b?

Lower-cost options tracked right now include inclusionAI: Ling 3.0 Flash ($0.032/1M), Mistral: Mistral Nemo ($0.029/1M), Meta: Llama 3.1 8B Instruct ($0.025/1M).

Get Instant Price-Drop (>10%), New AI Bot & SaaS Cliff Alerts

Every 6 hours our autonomous sync checks 40+ LLMs, AI crawlers, and SaaS pricing cliffs—alerting you when prices drop >10% or new scrapers appear.