LiteLLMLiteLLM/ MODELS

GPT OSS 20B API Pricing

By OpenAI · 18 providersdarkbloom/gpt-oss-20bCompare
Input / output
$0.0145 / $0.07 per 1M tokens
Context
128K tokens
Max output
32K tokens

As of November 24, 2026, GPT OSS 20B costs $0.0145 per 1M input tokens and $0.07 per 1M output tokens from Darkbloom, the lowest of 18 providers. It has a 131,072-token context window and returns up to 32,768 tokens per response.

Prices updated Checked

GPT OSS 20B pricing by provider

31 listings across 18 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

GPT OSS 20B prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readCache writeBatch inBatch outContext
Darkbloomdarkbloom/gpt-oss-20b$0.0145$0.07––––128K
Amazon Bedrock Mantlebedrock_mantle/openai.gpt-oss-20b$0.07$0.30––$0.035$0.15128K
Cloudflare Workers AIcloudflare/@cf/openai/gpt-oss-20b$0.20$0.30––––128K
Databricksdatabricks/databricks-gpt-oss-20b$0.07$0.30$0.07$0.07––128K
DeepInfradeepinfra/openai/gpt-oss-20b$0.03$0.14––––128K
Fireworks AIfireworks_ai/accounts/fireworks/models/gpt-oss-20b$0.07$0.30$0.035–––128K
Fireworks AIfireworks_ai/gpt-oss-20b$0.07$0.30$0.035–––128K
GMI Cloudgmi/openai/gpt-oss-20b$0.04$0.15––––128K
Google Vertex AIvertex_ai/openai/gpt-oss-20b-maas$0.07$0.25$0.007–$0.035$0.125128K
Groqgroq/openai/gpt-oss-20b$0.075$0.30$0.0375–––128K
Inference APIsinferenceapis/gpt-oss-20b$0.04$0.19––––128K
Inference APIsinferenceapis/openai/gpt-oss-20b$0.04$0.19––––128K
Novita AInovita/openai/gpt-oss-20b$0.04$0.15––––128K
NVIDIA NIMnvidia_nim/openai/gpt-oss-20b–––––––
Oracle Cloud (OCI)oci/openai.gpt-oss-20b$0.07$0.30––––128K
OVHcloudovhcloud/gpt-oss-20b$0.04$0.15––––131K
Replicatereplicate/openai/gpt-oss-20b$0.09$0.36–––––
Tensormeshtensormesh/openai/gpt-oss-20b$0.07$0.28$0–––128K
Together AItogether_ai/openai/gpt-oss-20b$0.05$0.20––––128K
Weights & Biaseswandb/openai/gpt-oss-20b$0.03$0.13––––131K
Amazon Bedrock Mantleap-northeast-1bedrock_mantle/ap-northeast-1/openai.gpt-oss-20b$0.08$0.36––––128K
Amazon Bedrock Mantleap-south-1bedrock_mantle/ap-south-1/openai.gpt-oss-20b$0.08$0.35––––128K
Amazon Bedrock Mantleap-southeast-2bedrock_mantle/ap-southeast-2/openai.gpt-oss-20b$0.0721$0.309––––128K
Amazon Bedrock Mantleap-southeast-3bedrock_mantle/ap-southeast-3/openai.gpt-oss-20b$0.07$0.31––––128K
Amazon Bedrock Mantleeu-central-1bedrock_mantle/eu-central-1/openai.gpt-oss-20b$0.09$0.40––––128K
Show 6 more listings
GPT OSS 20B prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readCache writeBatch inBatch outContext
Amazon Bedrock Mantleeu-south-1bedrock_mantle/eu-south-1/openai.gpt-oss-20b$0.09$0.40––––128K
Amazon Bedrock Mantleeu-west-1bedrock_mantle/eu-west-1/openai.gpt-oss-20b$0.08$0.35––––128K
Amazon Bedrock Mantleeu-west-2bedrock_mantle/eu-west-2/openai.gpt-oss-20b$0.11$0.47––––128K
Amazon Bedrock Mantlesa-east-1bedrock_mantle/sa-east-1/openai.gpt-oss-20b$0.08$0.36––––128K
Amazon Bedrock Mantleus-gov-east-1bedrock_mantle/us-gov-east-1/openai.gpt-oss-20b$0.084$0.36––$0.042$0.18128K
Amazon Bedrock Mantleus-gov-west-1bedrock_mantle/us-gov-west-1/openai.gpt-oss-20b$0.084$0.36––$0.042$0.18128K

What GPT OSS 20B costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Darkbloom$0.064
DeepInfra$0.13
Weights & Biases$0.125
GMI Cloud$0.155

100 long-document requests with 100,000 input and 2,000 output tokens each

Darkbloom$0.159
DeepInfra$0.328
Weights & Biases$0.326
GMI Cloud$0.43

GPT OSS 20B cost calculator

At Darkbloom's price ($0.0145 input, $0.07 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $0.49 a day, about $14.85 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.0000495
Per day
$0.49
Per month (30 days)
$14.85

GPT OSS 20B features

Input: text. Output: text.

Use GPT OSS 20B with LiteLLM

Call GPT OSS 20B through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="darkbloom/gpt-oss-20b",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: gpt-oss-20b
    litellm_params:
      model: darkbloom/gpt-oss-20b
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{
    "model": "gpt-oss-20b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

GPT OSS 20B FAQ

How much does GPT OSS 20B cost?

GPT OSS 20B costs $0.0145 per 1M input tokens and $0.07 per 1M output tokens from Darkbloom, the lowest of 18 providers.

What is the context window of GPT OSS 20B?

GPT OSS 20B has a 131,072-token context window and returns up to 32,768 tokens per response.

Which providers offer GPT OSS 20B?

GPT OSS 20B is available from 18 providers through LiteLLM: Darkbloom, Amazon Bedrock Mantle, Cloudflare Workers AI, Databricks, DeepInfra, Fireworks AI, GMI Cloud, Google Vertex AI, Groq, Inference APIs, Novita AI and NVIDIA NIM and 6 more. The lowest price is on Darkbloom.

How do I call GPT OSS 20B with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="darkbloom/gpt-oss-20b", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does GPT OSS 20B support?

GPT OSS 20B supports function calling, parallel tool calls, structured output, reasoning, prompt caching and web search.

When did LiteLLM add GPT OSS 20B?

GPT OSS 20B was added to LiteLLM's model price file in August 2025.

Compare GPT OSS 20B

All model comparisons

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: Darkbloom, Amazon Bedrock Mantle, Cloudflare Workers AI, Databricks, DeepInfra, Fireworks AI.

Provider pages: Darkbloom, Amazon Bedrock Mantle, Cloudflare Workers AI, Databricks, DeepInfra, Fireworks AI, GMI Cloud, Google Vertex AI, Groq, Inference APIs, Novita AI, NVIDIA NIM.