Try Bifrost Enterprise free for 14 days.
Request access

gpt-oss-20b Cost Calculator - Cloudflare

Calculate the cost of using gpt-oss-20b from Cloudflare for your AI applications

Pricing data last updated:

gpt-oss-20b Cost Calculator

Mode: Chat

Max: 128,000 tokens

Max: 128,000 tokens

Cost Breakdown

Input Cost$0.00020000
Output Cost$0.00030000
Total Cost$0.00050000

Pricing Details

Input: $0.0000002000 per token
Output: $0.0000003000 per token
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

Built for enterprise-grade reliability, governance, and scale. Deploy in seconds.

Model Specifications

Capabilities

Function Calling
Reasoning

Limits

Max Input Tokens128,000
Max Output Tokens128,000
Max Tokens128,000

About gpt-oss-20b

gpt-oss-20b is a chat model from Cloudflare, one of 52 chat models they offer. It is priced at $0.20 per 1M input tokens and $0.30 per 1M output tokens, ranking 647 out of 2628 chat models by cost and cheaper than 70% of models in this category. gpt-oss-20b supports function calling, reasoning. It accepts up to 128K input tokens.

Pricing Information

Input Cost$0.20 per 1M tokens
Output Cost$0.30 per 1M tokens

Note: Use the interactive calculator above to estimate costs for your specific usage patterns.

Technical Specifications

Maximum Input Tokens128,000
Maximum Output Tokens128,000
Maximum Total Tokens128,000

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 128,000 input tokens. The maximum output length is 128,000 tokens.

Model Capabilities

Function Calling - Execute custom functions and tools
Advanced Reasoning - Complex problem-solving capabilities

How gpt-oss-20b Pricing Compares

At $0.20 per 1M input tokens and $0.30 per 1M output tokens, gpt-oss-20b ranks 647 out of 2628 chat models by input cost. It is more affordable compared to the median of $0.50 for chat models, and is cheaper than 70% of models in this category.

gpt-oss-20b is one of 52 Cloudflare chat models, with support for function calling, reasoning.

ModelProviderInput / 1M tokensOutput / 1M tokensvs gpt-oss-20b
gpt-5.4-nanoAzure$0.20$1.250%
gpt-5.4-nano-2026-03-17Azure$0.20$1.250%
gpt-5-miniAzure$0.25$2.00+25%

Alternatives to gpt-oss-20b

Similar chat models from other providers

Azure
gpt-5.4-nano
$0.20/1M input
0% vs gpt-oss-20b
Azure
gpt-5-mini
$0.25/1M input
+25% vs gpt-oss-20b
Azure
deepseek-v4-flash
$0.19/1M input
-5% vs gpt-oss-20b
Azure
grok-3-mini
$0.25/1M input
+25% vs gpt-oss-20b

Frequently Asked Questions

Is gpt-oss-20b cheaper than gpt-5.4-nano?

No. gpt-oss-20b costs $0.20 per 1M input tokens while gpt-5.4-nano costs $0.20 per 1M input tokens, making gpt-5.4-nano 0% more affordable for input. However, gpt-oss-20b may offer different capabilities or performance characteristics that justify the price difference.

How does gpt-oss-20b pricing compare to the average chat model?

gpt-oss-20b input pricing is $0.20 per 1M tokens, which is 60% below the median of $0.50 for chat models. It ranks 647 out of 2628 chat models by input cost, making it cheaper than 70% of models in this category. For output, it costs $0.30 per 1M tokens compared to the median of $1.44.

What makes gpt-oss-20b different from other Cloudflare models?

Among Cloudflare's 52 chat models, gpt-oss-20b ranks 19 by input cost.

What are the best alternatives to gpt-oss-20b?

The most comparable chat models to gpt-oss-20b are: gpt-5.4-nano from Azure ($0.20/1M input tokens); gpt-5.4-nano-2026-03-17 from Azure ($0.20/1M input tokens); gpt-5-mini from Azure ($0.25/1M input tokens); deepseek-v4-flash from Azure ($0.19/1M input tokens). These alternatives were selected based on similar capabilities, pricing, and provider diversity. You can compare any of these models in detail using the Bifrost Model Library.

How do I calculate gpt-oss-20b costs?

gpt-oss-20b is priced based on input and output tokens. Use the interactive calculator at the top of this page to estimate costs for your specific workload. Enter your expected input and output tokens volume and the calculator will show the total cost breakdown. For reference, processing 1M input tokens costs $0.20 and generating 1M output tokens costs $0.30.