Open formula. Browser-based calculations. Source-dated rates. No API keys. No provider login. No tracing SDK. No account required. Input payloads are not stored.
Pricing source date: 2026-05-28 · Build verification: 2026-05-28 · Stale threshold: 30 days. Estimates use published per-token API pricing for the model/provider path shown by the calculator, reviewed on the source date shown. Provider rates change frequently; verify current pricing on the provider's own page before committing to traffic volume, eval cadence, or agent-loop workload shape.
Converts per-call token shape and monthly volume into provider/model spend, then compares alternatives from the committed pricing table.
Formula
monthly_cost = ((tokens_in * calls_per_month) / 1,000,000 * input_rate) + ((tokens_out * calls_per_month) / 1,000,000 * output_rate)
Primary source register
Rates come from src/lib/pricing_table.js with source URLs listed in the provider-pricing register. Verify current provider rates before procurement decisions.
- https://openai.com/pricing
- https://www.anthropic.com/pricing
- https://platform.claude.com/docs/en/about-claude/pricing
- https://platform.claude.com/docs/en/about-claude/models/overview
- https://cloud.google.com/vertex-ai/generative-ai/pricing
- https://www.together.ai/pricing
- https://replicate.com/pricing
- https://fireworks.ai/pricing
- https://groq.com/pricing
- https://deepinfra.com/pricing
- https://aws.amazon.com/bedrock/pricing/
- https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/
Included assumptions
- input-token rate
- output-token rate
- monthly call volume
- comparison table where supported
Excluded assumptions
- enterprise discounts
- prompt caching discounts unless modeled separately
- regional taxes
- minimum commits
Architecture-cost audit
Context growthDocument tokens, system overhead, output reserve, and cumulative context requirements.
Diagnostic output
This tool returns Cost classification, Dominant cost driver, Decision threshold, and Sensitivity. Diagnostic focus: Dominant spend driver and routing threshold between budget/mid/premium models..
Affiliate link. Model Ruler may earn a commission if you sign up. This does not affect what you pay.