AI Cost Calculator
AI Prompt Cost Estimator
Paste your prompt to count tokens instantly and estimate cost across OpenAI and Anthropic models. Enter expected output length and monthly call volume to see monthly and annual projections.
Token count updates as you type. Uses GPT cl100k_base tokenizer.
Cost per API call
$0.005000
Monthly cost (1,000 calls)
$5.00
Annual cost (estimated)
$60.00
Input tokens0 × 1,000 calls = 0
Output tokens500 × 1,000 calls = 500,000
ModelGPT-4o (OpenAI)
Token estimates are approximate. Actual costs depend on exact token counts and may vary. Check provider pricing pages for current rates.
GPT-4.1 Nano (OpenAI) is the lowest-cost option for this prompt shape at $0.000200 per call -- saving roughly $4.80 per month compared to GPT-4o.
Model pricing reference
| Model | Input / 1M tokens | Output / 1M tokens |
|---|---|---|
| GPT-4oOpenAI | $2.50 | $10.00 |
| GPT-4.1OpenAI | $2.00 | $8.00 |
| GPT-4.1 MiniOpenAI | $0.40 | $1.60 |
| GPT-4.1 NanoOpenAI | $0.10 | $0.40 |
| o3OpenAI | $10.00 | $40.00 |
| o4-miniOpenAI | $1.10 | $4.40 |
| Claude Opus 4Anthropic | $15.00 | $75.00 |
| Claude Sonnet 4Anthropic | $3.00 | $15.00 |
| Claude Haiku 4Anthropic | $0.80 | $4.00 |
Prices in USD per 1 million tokens. Verify current rates at openai.com/api/pricing and anthropic.com/pricing.