Developer tools

AI token cost planner

Estimate costs using your own token counts and prices.

Processed locally

Use one currency. Custom rates only; excludes cache writes, tools, taxes and tier changes. Output must include billable reasoning if applicable.

Your answer will appear here.

Help and method

Subtract cached tokens from total input; multiply each category by its price per million, then by identical requests. Counts: 0–10¹²; prices: 0–10⁶; requests: 1–10⁹.

Token counting and scopeMethods and reliability

Worked example

An example you can try or adapt to your own values.

Currency
USD
Total input tokens per request
1000
Cached input tokens (included above)
200
Output tokens per request
100
Input price per million
2
Cached input price per million
0.5
Output price per million
10
Identical requests
100

Result

1,000 total input, 200 cached, 100 output; rates 2 / 0.5 / 10; 100 requests → 0.27 currency units.