# AI API Cost Calculator

> Estimate what your prompts cost on OpenAI, Anthropic and Google models, per call and per month, using each provider's current prices. Free.

Canonical: https://promptitin.com/free-tools/ai-api-cost-calculator
Last updated: 2026-11-13

Enter how many tokens you send, how many come back and how often. See what that costs on 13 models from OpenAI, Anthropic and Google, cheapest first.

This is an interactive tool. Use it at https://promptitin.com/free-tools/ai-api-cost-calculator.

## How to use it

1. Paste a typical prompt to count its tokens, or type the input tokens yourself.
2. Set the output tokens you expect back and how many calls you make a day.
3. Read the cost per call and per month for each model, cheapest first.
4. Tap a provider to compare only its models.

## Tips

- Output tokens cost about five times as much as input tokens, so long answers add up fastest.
- Count everything you send: the system prompt, documents and earlier messages, not only the question.
- Try the small models first. For simple tasks they are often good enough at a fraction of the price.
- Batch and caching discounts can cut these costs by half or more. The calculator shows standard prices.

## FAQ

### Where do the prices come from?

From the official pricing pages of OpenAI, Anthropic and Google, checked on November 13, 2026. Links to each page are under the table.

### Why do some models cost more for long prompts?

Some providers charge a higher rate for the whole request once the prompt passes a set length: 272,000 tokens on OpenAI's GPT-6 models and 100,000 tokens on Claude Haiku 5.5. The calculator switches to that rate for you.

### How do I count my tokens?

Paste a prompt in the box and the calculator estimates it at about 4 characters per token. For an exact number, use the token count your provider returns with each response.

### Is my prompt sent anywhere?

No. The math happens in your browser.

## Related

- [AI Token Counter](https://promptitin.com/free-tools/ai-token-counter)
- [Context Window Checker](https://promptitin.com/free-tools/context-window-checker)
- [ChatGPT Character Counter](https://promptitin.com/free-tools/chatgpt-character-counter)
