From prompt to request cost
Estimated request cost equals input tokens multiplied by $2 per million, plus expected output multiplied by $12 per million. Cached input is separate only when the provider publishes a rate.
Measure prompt size, output headroom, and a planning cost for Gemini Pro and Flash routes.
Prices are planning references, not a billing guarantee. Check the provider’s current pricing before launch.
0.05% of context reserved. Planning estimate based on characters ÷ 4; provider tokenizers and structured requests can differ.
Estimated request cost equals input tokens multiplied by $2 per million, plus expected output multiplied by $12 per million. Cached input is separate only when the provider publishes a rate.
System instructions, conversation history, retrieved documents, tool definitions, files, and response length all matter. Use the visible prompt for drafting, then validate the final payload with Google.
No. It is a private plain-text planning estimate. Google tokenization, chat formatting, tools, files, and images can change the real count.
No. The calculator runs locally in your browser. Only the page itself and published registry data are loaded from PromptCostLab.
Check the linked Google pricing page, then compare the estimate with token usage returned by the real API request.