An AI API bill can look baffling the first time you see one. There is no charge per question, no charge per minute, and no flat fee per answer. Instead there are two lines, one for input and one for output, each priced per million tokens, with totals like $0.0075. If you do not know what a token is, none of it makes sense.

This guide explains per-token pricing in plain words: what a token is, why the text you send and the text you get back are priced separately, and how a single short prompt becomes a real cost. The worked numbers come from the free Prompt Cost Calculator on Ovatly and its labelled snapshot price table: an estimating tool for planning, never a live quote, so every figure below is a snapshot example, not a market price.

Contents

  • Quick answer
  • What a token is, in plain words
  • Why input and output are priced separately
  • Why output costs more in the example
  • How to estimate a prompt's cost, step by step
  • Worked example: one GPT-4o call, worked out in full
  • When fractions of a cent become real money
  • Limitations and honest caveats
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

AI APIs charge for text measured in tokens, which are small pieces of words. You pay one rate for the tokens you send (input) and another rate for the tokens the model writes back (output). In the Prompt Cost Calculator's snapshot table, labelled "Snapshot: November 2026. Prices and limits change; verify with the provider before budgeting.", GPT-4o is listed at $2.50 per million input tokens and $10.00 per million output tokens. A call with 1,000 input tokens and 500 output tokens therefore costs $0.0025 plus $0.0050, which is $0.0075 for one run. Always verify current prices with the provider before budgeting; the snapshot is a worked example, not a live price list.

What a token is, in plain words

A token is a chunk of text, smaller than you might expect. Models do not read whole words the way people do. They split text into pieces: a common short word is often a single token, while a long or unusual word may split into two or three pieces, and punctuation and spaces attach to neighbouring pieces.

A rough feel is enough for pricing. An ordinary English sentence of about twenty words usually lands around twenty to thirty tokens. The exact count depends on the words used, and different model families split text slightly differently, so one tool's count is an estimate for another family's model. For cost planning an estimate is normally all you need, because the arithmetic that follows is simple multiplication.

The key point is the unit. You are not charged for the question you typed; you are charged for every token in it, and then again for every token in the answer.

Why input and output are priced separately

Input and output are two different jobs. Input is everything you hand to the model in one call: your prompt, any document you pasted in for context, and, in a chat, the earlier messages that get sent along again. Output is the text the model generates in reply, produced piece by piece as it writes.

Providers record the two counts separately and price them separately, so the calculator mirrors that: it asks for an input token count and an expected output token count, multiplies each by its own rate, and adds the results. This split is why two calls with the same prompt can cost different amounts: ask for a one-line answer and the output side is tiny; ask for a long report and the output side grows, even though the input never changed.

Why output costs more in the example

In the snapshot table, output tokens cost more than input tokens for the example model: $10.00 per million output tokens against $2.50 per million input tokens, a ratio of four to one. The practical consequence is easy to miss. In the worked example below, the output is only half the size of the input (500 tokens against 1,000), yet it accounts for two thirds of the total cost, $0.0050 of the $0.0075.

Treat that ratio as a property of this snapshot entry, not a law of pricing. Other models in a table can have different rates and different ratios, and providers change prices over time. The habit worth keeping is to look at both rates, not just the input rate, before estimating anything.

How to estimate a prompt's cost, step by step

  1. Open the Prompt Cost Calculator.
  2. Choose a model from the snapshot table.
  3. Paste your prompt and click Count input tokens, or type token counts directly.
  4. Enter the output tokens you expect and how many identical runs you plan.
  5. Click Estimate cost and read the breakdown, shown to 4 decimal places: input cost, output cost and total.

The one number you cannot know in advance is the output length. Estimate it from a similar past reply, which a token counter can measure, or enter the maximum output your API call allows to get a worst case.

Worked example: one GPT-4o call, worked out in full

Model: GPT-4o, at the snapshot prices of $2.50 per 1M input tokens and $10.00 per 1M output tokens.

Input: 1,000 tokens, so input cost = 1,000 / 1,000,000 x $2.50 = $0.0025.

Output: 500 tokens, so output cost = 500 / 1,000,000 x $10.00 = $0.0050.

Total for one run: $0.0075.

Read it once and the whole pricing model clicks. Each side is just your token count divided by a million, multiplied by that side's rate. The calculator does exactly this multiplication in your browser; it does not call any API.

When fractions of a cent become real money

$0.0075 looks like nothing, and for a single call it is. Per-token pricing becomes a budget item through repetition. The calculator has a runs field for exactly this reason: multiply the example call by 10,000 identical runs and the total is $75. A chatbot answering thousands of questions a day, or a script summarising thousands of documents, lives in that multiplied world.

This is also where the split earns its keep. At volume, a prompt that carries a long pasted document pays that input cost on every call, and a model that writes long answers pays the higher output rate on every reply. Small per-call numbers, multiplied honestly, show which of the two is driving a bill before the bill arrives.

Limitations and honest caveats

Every price in this guide comes from the calculator's snapshot, labelled on the tool: "Snapshot: November 2026. Prices and limits change; verify with the provider before budgeting." Providers do change prices, so check the provider's own pricing page before committing a budget. Nothing here is a live market price.

Real bills can also differ from a clean estimate. Providers may add charges for caching, tools, images or minimums, and output length is always a guess until the call is made. The snapshot table also includes an open-weights Llama entry priced at $0 because you run it yourself; your real cost there is your own hardware or hosting, which this calculator does not estimate.

Common mistakes

  • Budgeting from the input rate alone. Output is priced separately and, in the snapshot example, at four times the input rate. A long answer can cost more than a long prompt.
  • Treating snapshot figures as current prices. The table is dated November 2026 and says so. Verify with the provider before budgeting.
  • Assuming one call is the cost. Costs become meaningful at volume. Always multiply by the number of runs you actually plan.
  • Guessing output length optimistically. Use a measured past reply or the maximum your call allows, so the estimate survives contact with reality.

FAQs

Are these prices current? They were recorded in the November 2026 snapshot and are labeled as such. Providers change prices, so check the provider's pricing page before committing a budget.

Why is the total so small? Per-token prices are fractions of a cent for a single short prompt. Costs become meaningful at volume, which is why the calculator can multiply by a number of runs.

How do I know my output token count in advance? You cannot know it exactly. Estimate from similar past replies (the Token Counter can measure one), or set the maximum output your API call allows, to get a worst case.

Does the calculator call any API? No. It multiplies your token counts by the snapshot prices in your browser.

Why does output cost more than input in the example? In the snapshot table, GPT-4o output is priced at $10.00 per million tokens against $2.50 per million for input. That is the provider's recorded rate in the snapshot, not a universal rule; verify current rates with the provider.

Conclusion

Per-token pricing is simple once the unit is clear: count the tokens going in and coming out, multiply each by its own rate, and again by how many times you will run it. The Prompt Cost Calculator does that arithmetic from its November 2026 snapshot table, so treat its results as planning estimates and verify live prices with the provider before you budget. The companion question, whether your text fits the model at all, is covered in What Happens When Your Text Is Too Long for the Context Window?. More guides like this one live in the AI and Prompt Tools guides.