AI API cost calculator
Enter your own token counts and the prices from your provider's pricing page. Nothing is sent anywhere; it all runs in your browser. Results are estimates.
Per request
$0Per day
$0Per 30 days
$0How the estimate works
Cost = (input tokens / 1,000,000 x input price) + (output tokens / 1,000,000 x output price). Output tokens often cost several times more than input tokens, so long answers drive the bill.
Ways to lower the number
- Send less context: trim history and repeated instructions.
- Ask for shorter output formats.
- Use a smaller or free model for drafts and a larger one for final answers.
- Set daily and monthly spending caps.
Nibkey shows this estimate before every message and enforces caps on your phone. See the app.