AI Prompt Cost Calculator

Estimate the cost of a single AI prompt or batch of prompts using input tokens, output tokens, and model pricing.

How many prompts or API calls.
Prompt, context, system instructions, history.
Expected model response length.
Your model’s input token price.
Your model’s output token price.
Retries, tools, hidden context, or longer responses.
How we calculate
  • Input cost = input tokens ÷ 1,000,000 × input price.
  • Output cost = output tokens ÷ 1,000,000 × output price.
  • Overhead increases token cost for real-world usage.
  • Total batch cost = cost per prompt × number of prompts.