Read the token bill — what your LLM feature actually costs — step 7 of 9
This is the bug that turned a $400 month into a $400,000 alert.
The rate is quoted as "$15 per 1,000,000 tokens." Someone wrote the formula dividing by 1000 instead of 1,000,000 — inflating the bill by 1000×. In a feature that runs at scale, this gets caught when the credit card alert fires at 3am, not when the test suite passes.
Fix the divisors so the math works in per-million units.
Expected output:
cost: $0.036
This is the bug that turned a $400 month into a $400,000 alert.
The rate is quoted as "$15 per 1,000,000 tokens." Someone wrote the formula dividing by 1000 instead of 1,000,000 — inflating the bill by 1000×. In a feature that runs at scale, this gets caught when the credit card alert fires at 3am, not when the test suite passes.
Fix the divisors so the math works in per-million units.
Expected output:
cost: $0.036
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.