A single API call looks almost free, and that is exactly the trap. The price of one short prompt is a fraction of a cent, so nobody budgets for it. Then the feature ships, thousands of users run it daily, and the monthly bill arrives as a surprise. The fix is to estimate before you build: work out the tokens in one call, apply the model's price, and multiply by the volume you honestly expect.

This guide explains how pay-per-token pricing works and how to estimate a prompt's cost with the free Prompt Cost Calculator on Ovatly. The calculator works from a small table of well-known models with prices recorded in a snapshot dated November 2026. It is an estimating tool for planning, never a live quote, and this guide treats its prices exactly that way: as the snapshot's examples, not as today's market prices.

Contents

  • Quick answer
  • How per-token pricing works
  • Input tokens and output tokens are priced separately
  • How to estimate a prompt's cost, step by step
  • Worked example: one GPT-4o call, worked out in full
  • Why the total looks so small, and when it stops being small
  • Limitations worth knowing
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

To estimate a prompt's cost: count or type the input tokens, estimate the output tokens, pick the model, and multiply. Input cost is input tokens divided by one million, times the model's input price per million. Output cost is the same calculation with the output figures. Add the two for one run, then multiply by the number of runs you plan. The Prompt Cost Calculator does this arithmetic in your browser and shows the input cost, output cost and total to 4 decimal places. Its prices come from a snapshot labeled November 2026, so verify the current price with the provider before you commit a budget.

How per-token pricing works

Providers charge for the text a model processes, measured in tokens, the sub-word pieces models read. Prices are quoted per million tokens because a single token is worth far less than a cent. Two rates apply to every call: one for the tokens you send (input) and a higher one for the tokens the model writes back (output). In the snapshot table the calculator uses, the GPT-4o entry lists $2.50 per 1M input tokens and $10.00 per 1M output tokens. Output costs more per token in that example, which is why a short question with a long answer can cost more than a long question with a short one.

Because the rates are per million, the arithmetic is simple division and multiplication. One thousand input tokens is one thousandth of a million, so it costs one thousandth of the per-million input price. Nothing about the model is consulted during the estimate: the calculator multiplies your token counts by the snapshot prices in your browser and calls no API.

Input tokens and output tokens are priced separately

The two counts behave differently, and estimating them takes different work. Input tokens you can know exactly before the call: paste the prompt into the calculator and click Count input tokens, or count it first with a token counter and type the figure. Output tokens you cannot know in advance. The model decides how long its reply is while it writes. The honest approaches are to measure a similar past reply and use its length, or to use the maximum output your API call allows, which gives you a worst case rather than a hope.

The runs figure is the third input, and it is where budgets are really decided. One call at a fraction of a cent is nothing. The same call made ten thousand times a day by your users is a line item. The calculator asks how many identical runs you plan precisely so the estimate reflects volume, not just a single call.

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

  1. Open the Prompt Cost Calculator and choose a model from the snapshot table.
  2. Paste your prompt and click Count input tokens, or type the input and output token counts directly if you already know them.
  3. Enter the output tokens you expect, using a measured past reply or the maximum your call allows, and enter how many identical runs you plan.
  4. Click Estimate cost and read the breakdown: input cost, output cost and total, shown to 4 decimal places.

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

The tool's own worked example uses the GPT-4o entry from its snapshot table, priced at $2.50 per 1M input tokens and $10.00 per 1M output tokens. Take a prompt of 1,000 input tokens and an expected reply of 500 output tokens.

Input cost: 1,000 divided by 1,000,000, times $2.50, equals $0.0025. Output cost: 500 divided by 1,000,000, times $10.00, equals $0.0050. Total for one run: $0.0075.

Notice the shape of that result. The reply was half the length of the prompt, yet it cost twice as much, because the snapshot's output rate is four times its input rate. Notice also what the runs multiplier does to the same call: at 10,000 runs, $0.0075 becomes $75. The per-call figure never changed; the volume did.

Why the total looks so small, and when it stops being small

Per-token prices are fractions of a cent for a single short prompt, so a single estimate almost always looks trivially cheap. Costs become meaningful at volume: more users, longer documents pasted in as context, chattier replies, and features that call the model several times per user action. Estimating honestly means using your real expected prompt, a realistic output length, and a runs figure that matches the traffic you are planning for, not the traffic you have on day one.

One entry in the table breaks the pattern. The open-weights Llama entry is priced at $0 because you run it yourself. That zero is not free computing; your real cost is your own hardware or hosting, which this calculator does not estimate.

Limitations worth knowing

The prices are a snapshot dated November 2026, labeled on the tool itself: "Snapshot: November 2026. Prices and limits change; verify with the provider before budgeting." Providers do change prices, so treat every figure here as a planning estimate and check the provider's pricing page before committing money.

Real bills can also differ from the multiplication. Providers may add charges for caching, tools, images or minimums, and output length is always a guess until the call is made. The estimate covers the plain text in and out of one kind of call, nothing else.

Common mistakes

  • Budgeting from the snapshot without checking. The snapshot is dated November 2026. Prices change; verify with the provider before the budget becomes a commitment.
  • Estimating output at zero or at a wish. A reply you hope will be short is not a measurement. Measure a similar past reply, or use the maximum output your call allows for a worst case.
  • Forgetting the runs multiplier. A fraction of a cent per call is real money at ten thousand calls a day. Estimate at the volume you plan to serve.
  • Reading the Llama $0 as free. Self-run models bill you in hardware and hosting instead, and the calculator does not estimate those.
  • Ignoring the extras. Caching, tools, images and minimum charges can sit on top of the per-token figures, so a real bill can exceed the clean estimate.

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 tool 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 is the open-weights Llama entry priced at $0? Because you run that model yourself. The calculator does not estimate your own hardware or hosting costs, which are your real cost for that route.

Conclusion

A prompt's cost is two multiplications and one honest guess: the input you can count exactly, the output you must estimate with discipline, and the volume you plan to serve. Run your real prompt through the Prompt Cost Calculator before a feature ships, then verify the snapshot prices against the provider before the estimate becomes a budget. For the counting side of the same job, the sibling guide How to Estimate the Cost of a Long Document Summary applies the same method to a document-length input. More guides like this live in the AI and Prompt Tools guides.