OpenRouter gpt-oss-20bPricing & API costs
Medium-sized open-weight model for low latency
- Input
- $0.018
- Output
- $0.09
- Cached input
- $0.009
$0.405 for 10,000 short requests at 1K input + 250 output tokens each.
Official pricingContext window
131,072 tokens
Maximum output
32,768 tokens
Release date
2025-08-05
API model ID
openai/gpt-oss-20bModel overview
Understand the model before estimating your workload.
Use the model ID openai/gpt-oss-20b through OpenRouter. The prices and limits on this page apply to that specific listing, with source data checked on 2026-10-12.
OpenRouter gpt-oss-20b has a published context window of 131,072 tokens. The maximum output for this channel is 32,768 tokens. Budget context space for your prompt, conversation history, retrieved material, and the response. Context capacity and output limits are different; your input and response must fit within the request limits. A larger window does not make those tokens free.
This listing uses the Darkbloom endpoint rate through OpenRouter. Routing to another endpoint can change the price or output limit. Compare the endpoint shown here with the one your application actually uses.
Pricing
Darkbloom rate via OpenRouter.
Per 1M tokens
Input
$0.018
Cached input
$0.009
Output
$0.09
Batch pricing
OpenRouter has separate batch model IDs; those rates are not included in the standard listing.
What does it cost in practice?
Three example workloads, calculated from this model’s token rates.
| Workload | Tokens / request | Per request | 10,000 requests |
|---|---|---|---|
| Short conversationA compact prompt with a brief answer. | 1,000 in / 250 out | $0.00004 | $0.405 |
| Document analysisA longer document with a focused summary or extraction. | 8,000 in / 750 out | $0.000211 | $2.11 |
| Code generationRepository context followed by a longer generated response. | 4,000 in / 2,000 out | $0.000252 | $2.52 |
Where the short-conversation budget goes
Input $0.18 · Output $0.225 · 10,000 requests
$0.405
Planning estimates using the listed token rates, with no caching, retries, batch discount, or tool fees. These examples assume text usage; images, audio, video, and higher rate tiers can change your bill. Each agent step is a separate request.
With 50% of input tokens served from cache, the short-conversation example costs $0.36 per 10,000 requests, compared with $0.405 without cache hits. Cache-write fees are excluded.
Use your own workloadHow billing works
The details that turn a token rate into an actual bill.
Separate input from output
For OpenRouter gpt-oss-20b, multiply input and output token counts by their respective rates, then divide by one million. Conversation history and retrieved context contribute to input usage each time they are sent.
Cache hits have their own rate
The listed cached-input price is $0.009 per million tokens. Reusing a prompt does not automatically qualify: use the provider's reported cached-token count, and account for any cache-write or storage charges.
Check discounts and rate tiers
No batch multiplier is applied to the examples on this page. Check the pricing source before assuming an asynchronous job receives a discount. Review the provider's pricing terms for workload-specific conditions.
Account for the complete workflow
Retries, follow-up calls, and agent tool loops increase request counts. Search, storage, and other tool charges can be billed separately from model inference. Use actual API usage logs to calibrate a budget before scaling traffic.
Capabilities and limits
What the API supports and where limits apply.
- Provider
- OpenRouter
- Model type
- Text tokens
- Family
- gpt
- Access
- OpenRouter
- Modalities
- Text
- Context window
- 131,072 tokens
- Max output
- 32,768 tokens
- Released
- 2025-08-05
- Deprecation date
- Not announced
Compare API channels
Check the model ID, rate, and limit for each access route.
The same model can have a different ID, price, or output limit depending on how you access it. These are the channels currently tracked in this catalog; they are not a complete list of every hosting provider.
Pricing not published
$0.018 input · $0.009 cached input · $0.09 output / 1M tokens
Sources
Official pages and the date this information was checked.
- Last checked
- 2026-10-12
- Source links
- 3
Next step
Estimate costs with this model.
Recommended for
Frequently asked questions
OpenRouter pricing checked on 2026-10-12: $0.018 input · $0.009 cached input · $0.09 output / 1M tokens. These are OpenRouter channel rates; a different endpoint may have different pricing.
OpenRouter gpt-oss-20b has a published context window of 131,072 tokens. The maximum output for this channel is 32,768 tokens. Budget context space for your prompt, conversation history, retrieved material, and the response. Context capacity and output limits are different; your input and response must fit within the request limits. A larger window does not make those tokens free.
The recorded status is Active. Use the exact model ID openai/gpt-oss-20b and confirm that your API account has access.
At 1,000 input and 250 output tokens per request, 10,000 requests cost an estimated $0.405 at the listed rates. This example has no cache hits, retries, batch discount, or tool fees. Tiered pricing and multimodal usage can change the total.
Cached input is listed at $0.009 per million tokens. Only tokens the provider recognizes as cache hits receive that rate. No batch discount is included in this listing. Check eligibility and cache-write charges in the pricing documentation.
Recent updates
Selected OpenRouter endpoint rate changed.
View sourceSelected OpenRouter rate provider changed.
View sourceOutput limit record updated.
View sourceModel details changed in the provider's documentation.
View sourcePricing decreased in the provider's pricing table.
View sourcePricing decreased in the provider's pricing table.
View sourceAdded to the model directory.
View source