Calcorithmevery number has an answer
πŸ”
All tools β†’
← Developer Tools

OpenAI API Cost Calculator

Calculate exact OpenAI API costs for GPT-4o, GPT-4, o1, o3 and other models.

Model
Input tokens per call
Output tokens per call
API calls per month
GPT-4o β€” Input: $0.0025/1K tokens Β· Output: $0.01/1K tokens
Per call
$0.007500
Monthly total
$7.5000
Per 1M input tokens
$2.50
Per 1M output tokens
$10.00

OpenAI API pricing

You pay per token. Input tokens (your prompt) and output tokens (the response) are priced separately. Output typically costs 3–4Γ— more than input.

  • Cost = (Input/1K Γ— input rate) + (Output/1K Γ— output rate)
  • GPT-4o: $2.50/$10 per 1M tokens
  • GPT-4o mini: $0.15/$0.60 per 1M tokens
  • Verify pricing at platform.openai.com/pricing
iFormula / How it works

Cost = (Input tokens / 1000 Γ— input rate) + (Output tokens / 1000 Γ— output rate) Prices per 1K tokens (as of 2025). Always verify at platform.openai.com/pricing as prices change frequently.