SourceVane · Practical AI
AI API cost calculator
Compare two AI API budgets using token prices, retries and successful tasks. Enter your own assumptions; no API calls or account required.
Submit your inputs to see both options.
Share these assumptions
The link contains the numeric values shown in the form. It is not encrypted, and it does not store the values on SourceVane’s server.
How the estimate works
For each option, monthly cost = tasks × that option’s average attempts × (input tokens × input price + output tokens × output price) ÷ 1,000,000.
Cost per successful task = monthly cost ÷ (tasks × final success rate). Count success after the allowed retries, using your own acceptance test. cost-v2 keeps each option’s token use and retry rate separate.
Use effective billed rates for your configuration. Cache writes and reads, batch discounts, tool charges, hosting, taxes and subscriptions are not added separately. This estimates token spend, not latency, model quality or a guaranteed invoice.
Compare the estimate with measured usage before budgeting. Measure retry cost · Compare batching and caching.
Explore API cost decisions · Review the retry-cost study · Follow future guides