aiapicompareaiapicompare
aiapicompare › All models › gpt-oss-20b

gpt-oss-20b: API pricing compared

gpt-oss-20b is available from 5 provider(s). Cheapest: NanoGPT at $0.018 per 1M input tokens and $0.090 per 1M output tokens. Context window: up to 131 072 tokens. Developer: OpenAI.

ProviderInput $/1MOutput $/1MContext
NanoGPT
openai/gpt-oss-20b
$0.018$0.090131KGo to provider ↗ Set up
DeepInfra
openai/gpt-oss-20b
$0.030 +67 %$0.140131KGo to provider ↗ Set up
OpenRouter
openai/gpt-oss-20b
$0.030 +67 %$0.130131KGo to provider ↗ Set up
CometAPI
gpt-oss-20b
$0.100 +456 %$0.400—Go to provider ↗ Set up
UplinkSwitch
gpt-oss-20b
$0.160 +789 %$0.720—Go to provider ↗ Set up

Sorted by price only – there are no paid placements. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.

Reference price: $0.058 per 1M tokens (blended 3:1), median of all providers · How we compare → · Wrong price? Report it

Price history (cheapest provider)

Price history is recorded daily – the chart appears after the first price change.

Quick start with NanoGPT

from openai import OpenAI
import os

client = OpenAI(base_url="https://nano-gpt.com/api/v1", api_key=os.environ["NANOGPT_API_KEY"])
r = client.chat.completions.create(
    model="openai/gpt-oss-20b",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)

FAQ

Where is gpt-oss-20b cheapest?

Currently at NanoGPT ($0.018 / 1M). Prices are updated daily; the provider’s website is authoritative.

How do I use gpt-oss-20b in my tools?

All listed providers offer an OpenAI-compatible API. See the setup guide for Hermes Agent, VS Code, Cursor and more.

More models from OpenAI

gpt-oss-120bGPT-6 LunaGPT-5.6 LunaGPT-5.6 TerraGPT-6.1 SolGPT-5.6 SolGPT-6 AstraGPT 6.1 TerraGPT-6 SolGPT 6.2 SOLGPT 6.2 AstraGPT 5.3 Codex