How the number is calculated
For each category, multiply the tokens by the rate per million and divide by 1,000,000. Then add the 4 amounts. For example, 1 million uncached input tokens at $2 per million plus 100,000 output tokens at $10 per million gives $3.00. These are example rates, not current prices for a named model.
Where to find a rate
Use your provider's current price for the exact model, tier, context size, region and token category. OpenAI's API pricing and Claude API pricing list input, cached input or cache writes, and output separately. Some plans add other charges or discounts. Your provider's bill is the amount you actually paid.
What this can't tell you
A subscription limit is not an API invoice. Canopy's usage view summarizes the data supported CLIs report, and each CLI reports different categories and timestamps. This worksheet leaves out tool charges, long-context or regional multipliers, taxes, bundled usage, rebates and unreported work. A zero result with missing categories means missing data, not a free session.
To judge a task, set the estimate beside the accepted code, retries, review time and final result. Read the token-usage guide and why a cost dashboard is not a bill.
Frequently asked questions
Does Canopy charge this amount?
No. The calculator doesn't contact Canopy or a model provider. It computes a hypothetical API-equivalent amount from what you enter.
Can I paste the "sent" and "received" totals from any CLI?
Only if you know how that CLI maps them to the provider's billed categories. Cached input, cache writes and subscription plans change what the totals mean.