💰

AI API Cost Calculator

Estimate monthly AI API cost from tokens, requests and per-token prices you enter.

-Per request
-Per day
-Per month
-Per year

Enter the prices from your AI provider's pricing page. Nothing you type is saved or sent anywhere.

Advertisement

The AI API Cost Calculator helps you estimate what an AI API might cost per request, per day, per month and per year. You enter the prices yourself, so the tool never goes out of date and no prices are built in or stored. It is a simple calculator for planning, not a bill.

Running costs are easy to underestimate because tokens are tiny and requests add up quickly. A small change in prompt length or daily traffic can double a monthly total. This calculator lets you try different numbers in seconds and see how each one affects the result.

How to use the AI API Cost Calculator

  1. Look up the current price per 1 million input tokens and per 1 million output tokens on your provider's pricing page.
  2. Enter those two prices in the calculator.
  3. Enter the average input tokens and output tokens per request.
  4. Enter requests per day and days per month.
  5. Read the cost per request, per day, per month and per year.
  6. Change any value to compare scenarios.

What you can use it for

  • Budgeting for a chatbot or content tool before you build it.
  • Comparing two models by entering each model's prices in turn.
  • Checking how a rise in daily requests changes your monthly cost.
  • Explaining expected running costs to a client or manager.
  • Seeing the effect of shorter prompts on total spend.
  • Deciding whether a feature is affordable before you commit to building it.

Tips for better results

  • Use average token counts from real usage where possible; our AI Token Counter can give a rough estimate.
  • Include system prompts and conversation history in your input tokens, since they are usually sent each time.
  • Output tokens are often priced higher than input tokens, so enter them separately.
  • Add a buffer for retries, spikes and testing days.
  • Recheck prices regularly because providers change them, and remember taxes or extra fees are not included.
  • Save your assumptions in a note next to the result so you can compare them with real usage later.

Frequently asked questions

Does the calculator include model prices?

No. You type the prices yourself, which keeps the result under your control. Nothing is stored.

Is the result my actual bill?

No. It is an estimate based on your inputs. Your real bill depends on actual usage and your provider's terms.

What are tokens per 1M?

Providers usually quote prices per one million tokens. Enter the number as shown on your provider's pricing page.

Can I model different usage on different days?

Not directly. Use average values, or run the calculator several times for different scenarios.

More free tools

View all

Image Prompt Builder

Build a detailed AI image prompt by choosing subject, style, lighting, camera and mood.

Prompt Improver

Paste a rough prompt and turn it into a clearer, more structured prompt in one click.

AI Token Counter

Estimate how many tokens your text uses before you send it to an AI model.

Fancy Text Generator

Turn plain text into stylish fonts you can paste into Instagram, WhatsApp and more.

Trending AI prompts

View all
ChatGPT code

Debug an Error Message Step by Step

You are a senior developer helping me debug. Language and framework: [LANGUAGE / FRAMEWORK]. Error message: [PASTE ERROR]. Relevant code: […

Kling AI video

Cute Orange Cat Chasing Butterfly in Garden

Vertical 5-second shot of a fluffy orange cat playfully chasing a yellow butterfly in a sunny green garden. Low camera follows the cat, sof…

Claude code

Explain Code Line by Line

Act as a patient programming mentor. Explain the code below to a [BEGINNER / INTERMEDIATE] developer. Language: [LANGUAGE]. Code: [PASTE CO…

ChatGPT text

SEO Blog Post Outline with Headings

Act as an SEO content strategist. Create a blog post outline targeting the keyword [PRIMARY KEYWORD] for readers who are [AUDIENCE]. Includ…