Estimate your AI API costs
Fill in the price card of the model you use (per 1M tokens), your average request shape and daily volume. The calculator multiplies honestly — no invented rates.
How to use it
- Enter input and output prices per 1M tokens (or load a dated, sourced preset).
- Add average tokens per request, calls per day and the cached-input share; advanced options add cache-write share, batch share and retries.
- Read per-request, daily, monthly and yearly estimates.
Limits & formats
Prices come from your input. Four loadable presets are labeled with their check dates (2026-11-12 set: DeepSeek deepseek-flash peak and off-peak in CNY, OpenAI gpt-6.1-sol and Anthropic Claude Sonnet 5.5 in USD). Input tokens are split into exclusive categories — uncached, cache-read and cache-write — and a cached or written token is billed only in its own category (write price replaces the ordinary input price, per vendor billing pages). Cached share + cache-write share must stay within 100%; invalid or out-of-range shares produce an explicit error and are never silently clipped. A cached share entered below the vendor's minimum cacheable prefix (documented per preset, e.g. 1,024 tokens for gpt-6.1-sol) triggers a warning. Retries are counted: the per-request result is multiplied by (1 + retries). Not counted: cache-write TTL variants beyond the listed write price, reasoning tokens, tool-call fees, taxes, platform fees, and failed calls beyond the retry count you enter. If you choose a non-preset currency, nothing is converted — fill in official prices in that currency yourself. Editing a preset's rates or currency switches the tool to an explicit custom mode; citations then never present your values as official page prices.
Privacy
Everything is computed locally in this browser tab. Operation parameters only (the numbers you enter, the currency and the selected preset id) are stored locally in your browser under a versioned key so the page can restore your last-used values; they are never sent to the server, and they never include files, file names, text content or AI input. The tool's Reset button clears them immediately, and clearing this site's data in your browser also removes them.
Related tools
Feedback on this tool
Did it work well? Any improvement ideas? Leave a note — it helps YYSI improve the toolbox.
Notes are anonymous and reviewed manually: only you see yours right away (in this browser); others see them after approval. Do not include personal data or contact details.