About this OpenRouter Cost Calculator
Routing through an AI gateway can make model selection easier, but teams still need a clear view of base token cost and any routing markup. This calculator keeps rates user-entered so it can match your selected model and account terms.
When to use it
- Estimate a routed AI workload before launch.
- Compare base model spend with routing overhead.
- Price one-time evaluation jobs or production traffic.
- Translate token rates into an effective cost per request.
How to use this calculator
- Enter average input and output tokens for one request.
- Enter the input and output token prices per million tokens.
- Add the total number of requests you want to estimate.
- Enter any routing markup percentage, or use 0 if none applies.
Key assumptions
- Token prices are entered manually and treated as flat per-million-token rates.
- Every request uses the same average input and output token counts.
- Routing markup is applied to base token cost only.
- The estimate excludes retries, caching, provider credits, taxes, storage, and non-token fees.
Dataset sources
- Effective date
- 2026-05-05
- Last reviewed
- 2026-05-05
Use the current provider pricing page or contract terms before making purchasing decisions.
Public provider pricing page; rates can change without notice.
Accuracy and testing
Review formula sources, default test cases, assumptions, unit handling, rounding rules, and changelog for this calculator.
How this calculator works
Inputs explained
Input Tokens
Average number of tokens sent into the model per routed request.
Output Tokens
Average number of tokens generated by the model per routed request.
Input Price Per Million
Your manually entered input-token price for the selected model.
Output Price Per Million
Your manually entered output-token price for the selected model.
Request Count
Total routed requests included in the estimate.
Routing Markup Percent
Optional markup applied on top of base token cost. Use 0 when no markup applies.
Understanding your results
Example scenarios
Model Comparison
Estimate the same workload with two different user-entered price pairs to compare total routed cost.
Gateway Markup Check
Enter a markup percentage to see whether routing overhead is material at your expected request volume.
Key Features
- Instant Calculation
- Private & Secure
- Mobile Optimized
Tips & Best Practices
- Use 0% markup if your routing cost is already included in the token prices you enter.
- Keep separate estimates for different models if your router switches between them.
- Add a margin for retries or fallback routes when production traffic is unpredictable.
- Use aggregate token counts instead of private prompt text.