gpt-oss-20b vs Gemma 3 4B API pricing
Updated
gpt-oss-20b: USD 0.018 input, USD 0.09 output per 1M tokens (AkashML, promotional). Gemma 3 4B: USD 0.04 input, USD 0.08 output per 1M tokens (Amazon Bedrock). At 3 input tokens per output token, Gemma 3 4B costs 39% more than gpt-oss-20b (USD 0.05 vs USD 0.036 per 1M).
How do gpt-oss-20b and Gemma 3 4B differ on price?
- Cheapest input price: gpt-oss-20b USD 0.018 against USD 0.04 per 1M tokens, so Gemma 3 4B costs 2.2× as much.
- Cheapest output price: Gemma 3 4B USD 0.08 against USD 0.09 per 1M tokens, so gpt-oss-20b costs 1.13× as much (13% more).
- Among the 201 indexed models, gpt-oss-20b ranks 3rd cheapest and Gemma 3 4B 4th on the 3:1 blend.
- The cheaper model changes at 0.45 input tokens per output token.
- Only gpt-oss-20b lists a cached-input discount: gpt-oss-20b at 4 standard prices of 10, from USD 0.007 (Google Vertex AI, 90% below that provider's input price). Gemma 3 4B's cached tokens bill at the input price.
- Both state a context window of up to 131,072 tokens.
- gpt-oss-20b has 10 providers with a standard price, 7 more than Gemma 3 4B; 3 providers sell both (DeepInfra, Featherless and Amazon Bedrock).
- On one account, DeepInfra charges USD 0.0575 for gpt-oss-20b (1.6× its cheapest price) and USD 0.0625 for Gemma 3 4B (1.25× its cheapest price) at 3:1, the lowest combined price among the providers that sell both.
- Shopping around matters more for gpt-oss-20b: its dearest standard price is 6.3× its cheapest, against 1.25× for Gemma 3 4B.
- gpt-oss-20b has a batch price at 2 providers, from USD 0.0575 at 3:1 (Google Vertex AI); Gemma 3 4B has no batch price on file.
- For the one-developer coding agent preset, the gap is USD 629.64 a year in gpt-oss-20b's favour (gpt-oss-20b USD 26.73 a month, Gemma 3 4B USD 79.20).
- Per character of input, the gap depends on the language: gpt-oss-20b costs 11% less than Gemma 3 4B on Hindi text but 35% less than Gemma 3 4B on Code, because the two tokenizers split those languages differently.
gpt-oss-20b and Gemma 3 4B prices side by side
USD per 1M tokens, standard tier. "Cheapest" is the lowest price at 3 input tokens to 1 output token; each line can come from a different provider.
| Price | gpt-oss-20b | Gemma 3 4B |
|---|---|---|
| Model page | GPT OSS 20B OpenAI · 10 providers | Gemma 3 4B Google · 3 providers |
| Cheapest standard price, blended 3:1 | USD 0.036 lower promo USD 0.018 in / USD 0.09 out at AkashML AkashML page checked 2026-11-15 | USD 0.05 USD 0.04 in / USD 0.08 out at Amazon Bedrock Amazon Bedrock page checked 2026-11-14 |
| Cheapest input | USD 0.018 lower promo AkashML source | USD 0.04 Amazon Bedrock source |
| Cheapest cached input | USD 0.007 Google Vertex AI source | No standard price lists a cache price; cached tokens bill at the input price. |
| Cheapest output | USD 0.09 promo AkashML source | USD 0.08 lower Amazon Bedrock source |
| Cheapest non-promotional price | USD 0.03 / USD 0.13 CoreWeave Forge, USD 0.055 blended source | The cheapest price is not promotional. |
| Maker's own API | OpenAI publishes no paid standard price on its own API that we found. | Google publishes no paid standard price on its own API that we found. |
| Median standard price | USD 0.04 / USD 0.19 input / output, 10 prices | USD 0.05 / USD 0.10 input / output, 3 prices |
| Context window | 131,072 tokens, largest stated | 131,072 tokens, largest stated; from 32,768 at some providers |
| Providers with a standard price | 10 | 3 |
- Lower marks the lower price on a line; tie, equal prices. Other tiers and free rows are on the model pages.
- Promo: the provider calls the price promotional or discounted, so it is current now and can end without notice.
Report a wrong price or number (email to info@broadnet.ai, with this page's link filled in).
What do gpt-oss-20b and Gemma 3 4B cost for a real workload?
30 days at each model's cheapest standard price for the workload (presets of the cost calculator; cached input at the cached price where listed).
| Workload | gpt-oss-20b | Gemma 3 4B | Difference |
|---|---|---|---|
| Support chatbot 2,000 requests a day, 1,500 input tokens (60% cached), 300 output | USD 2.75 AkashML | USD 5.04 Amazon Bedrock | USD 2.29 gpt-oss-20b lower |
| RAG over documents 1,000 requests a day, 8,000 input tokens (30% cached), 500 output | USD 5.02 AkashML | USD 10.80 Amazon Bedrock | USD 5.78 gpt-oss-20b lower |
| Coding agent (one developer) 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning | USD 26.73 AkashML | USD 79.20 Amazon Bedrock | USD 52.47 gpt-oss-20b lower |
gpt-oss-20b is cheaper on all three workloads. The widest gap is on Coding agent (one developer): the dearer model costs 2.96× as much as the cheaper one.
Does the cheaper model change with your input:output ratio?
The cheaper model changes with the mix: below 0.45 input tokens per output token, Gemma 3 4B is cheaper; above 0.45, gpt-oss-20b is cheaper. At the site's 3:1 blend, gpt-oss-20b is cheaper. More input per output token, as with retrieval or agents that resend long contexts, favours the lower input price; long answers favour the lower output price.
| Input : output tokens | gpt-oss-20b | Gemma 3 4B |
|---|---|---|
| 1 : 3 (long answers) | USD 0.072 AkashML | USD 0.07 lower Amazon Bedrock |
| 1 : 1 | USD 0.054 lower AkashML | USD 0.06 Amazon Bedrock |
| 3 : 1 (the site’s blend) | USD 0.036 lower AkashML | USD 0.05 Amazon Bedrock |
| 10 : 1 (retrieval, long prompts) | USD 0.02455 lower AkashML | USD 0.04364 Amazon Bedrock |
| 30 : 1 (agents, big contexts) | USD 0.02032 lower AkashML | USD 0.04129 Amazon Bedrock |
USD per 1M tokens at the cheapest standard provider for each mix, before cache discounts. Thinking tokens bill as output.
What do gpt-oss-20b and Gemma 3 4B cost per character in other languages?
Cost to send 1M characters at each model's cheapest non-promotional standard input price, with the gpt-oss (o200k_harmony) tokenizer for gpt-oss-20b and the Gemma 3 27B tokenizer for Gemma 3 4B:
| Content | gpt-oss-20b | Gemma 3 4B |
|---|---|---|
| English | USD 0.0064 lower CoreWeave Forge | USD 0.0087 Amazon Bedrock |
| Arabic MSA | USD 0.0096 lower CoreWeave Forge | USD 0.014 Amazon Bedrock |
| Egyptian Arabic | USD 0.0100 lower CoreWeave Forge | USD 0.014 Amazon Bedrock |
| Hindi | USD 0.0097 lower CoreWeave Forge | USD 0.011 Amazon Bedrock |
| Chinese | USD 0.023 lower CoreWeave Forge | USD 0.027 Amazon Bedrock |
| Spanish | USD 0.0068 lower CoreWeave Forge | USD 0.0090 Amazon Bedrock |
| Code | USD 0.0076 lower CoreWeave Forge | USD 0.012 Amazon Bedrock |
From the real cost by language dataset (measured tokens per character on FLORES-200 and other texts). Your own text will differ.
Check it on your own traffic
- GPT OSS 20B API pricing: all 10 providers and other tiers.
- Gemma 3 4B API pricing: all 3 providers and other tiers.
- Cost calculator with gpt-oss-20b and Gemma 3 4B preloaded
- gpt-oss token counter
- Gemma 3 token counter
- Prompt caching calculator
More comparisons: gpt-oss-120b vs gpt-oss-20b · Gemma 4 26B A4B vs gpt-oss-20b · gpt-oss-20b vs Qwen3.6 35B A3B · Gemma 3 12B vs Gemma 3 4B · every gpt-oss-20b comparison · every Gemma 3 4B comparison · all 662 price comparisons
Questions
Is gpt-oss-20b cheaper than Gemma 3 4B?
Yes. On a blend of 3 input tokens to 1 output token, gpt-oss-20b costs USD 0.036 per 1M tokens and Gemma 3 4B USD 0.05, at each model's cheapest standard price. For input alone, gpt-oss-20b is cheaper (USD 0.018 against USD 0.04 per 1M); for output alone, Gemma 3 4B is (USD 0.08 against USD 0.09). This compares price only, not quality.
What do gpt-oss-20b and Gemma 3 4B cost per 1M tokens?
gpt-oss-20b: from USD 0.018 input and USD 0.09 output at AkashML (promotional); median of 10 standard prices USD 0.04 / USD 0.19. Gemma 3 4B: from USD 0.04 input and USD 0.08 output at Amazon Bedrock; median of 3 standard prices USD 0.05 / USD 0.10. Each price is read from the provider's own pricing page; the source is linked in the table.
Which providers sell both gpt-oss-20b and Gemma 3 4B?
3 providers have a standard price for both: DeepInfra (USD 0.0575 and USD 0.0625 at 3:1), Featherless (USD 0.0675 and USD 0.0625 at 3:1), Amazon Bedrock (USD 0.1275 and USD 0.05 at 3:1). The first is the lowest combined price. Buying each model from its own cheapest provider costs USD 0.036 and USD 0.05.
Which is cheaper for a coding agent or a chatbot, gpt-oss-20b or Gemma 3 4B?
For a coding agent (1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning): USD 26.73 a month on gpt-oss-20b (AkashML) against USD 79.20 on Gemma 3 4B (Amazon Bedrock), a difference of USD 52.47. For a support chatbot (2,000 requests a day, 1,500 input tokens (60% cached), 300 output): USD 2.75 a month on gpt-oss-20b (AkashML) against USD 5.04 on Gemma 3 4B (Amazon Bedrock), a difference of USD 2.29. Each uses the cheapest standard price for that workload, cached input included. Try your own numbers.
At what input:output ratio does the cheaper of gpt-oss-20b and Gemma 3 4B change?
The cheaper model changes with the mix: below 0.45 input tokens per output token, Gemma 3 4B is cheaper; above 0.45, gpt-oss-20b is cheaper. At the site's 3:1 blend, gpt-oss-20b is cheaper. More input per output token, as with retrieval or agents that resend long contexts, favours the lower input price; long answers favour the lower output price.
Do gpt-oss-20b and Gemma 3 4B have cached input pricing?
gpt-oss-20b from USD 0.007 per 1M cached input tokens (Google Vertex AI; 4 of 10 standard prices list a discount). Gemma 3 4B: no standard price lists a cached-input discount. Cached tokens are billed at the input price where no cache price is published.
Which has the larger context window, gpt-oss-20b or Gemma 3 4B?
Both go up to 131,072 tokens on the providers that state it.
Read as MarkdownAsk ChatGPTAsk ClaudeAsk Perplexity
Sources
- AkashML: pricing (checked 2026-11-15)
- Google Vertex AI: pricing (checked 2026-11-14)
- CoreWeave Forge: pricing (checked 2026-11-15)
- Amazon Bedrock: pricing (checked 2026-11-14)
- DeepInfra: pricing (checked 2026-11-14)
- DeepInfra: pricing (checked 2026-11-14)
- Featherless: pricing (checked 2026-11-15)
- Featherless: pricing (checked 2026-11-15)