OpenAI API Cost Calculator
Token-based pricing: input + output tokens × model rates.
Result
Cost per request$0.0006
Monthly cost$18.26
Annual cost$219.17
Tokens/month76.1M
GPT-4o-mini equivalent$18.26
OpenAI API Cost Calculator — FAQs
How do I cut LLM costs?
Route simple queries to a mini/flash class model (10–50× cheaper), cache repeated context, cap max_tokens, and batch where the API offers a discount (OpenAI Batch = 50% off).
Input vs output pricing?
Output tokens cost 3–5× input — long generations dominate spend. Short system prompts help less than short completions.
Need a Custom Tool Built?
We build calculators, estimators and internal tools for businesses in the UK and North America.
Get a QuoteEmbed this OpenAI API Cost Calculator on your site
Free to use — paste this snippet into any webpage. It auto-resizes and includes a small attribution link. Add ?theme=dark to the iframe URL for dark mode.