LLM API cost

Prompt cost calculator

What one prompt costs on a model from its length in characters and the expected answer length.

Model, priced from the vendor page on the verified date
Paste length of the prompt including system text
How many times you will send it
prompt tokens0.00

Prices read from the vendor pages on 2026-10-20. Arithmetic on list prices, not advice or a quote.

Pro

Saving and exports need Norwell Tools Pro, $9 a month. See what is in it. Everything above is free.

How it works

Characters are converted to tokens with the vendor's rule of thumb (4 characters a token at OpenAI, 2.5 at Anthropic; Google and the others use the OpenAI figure here as an approximation), then priced at list.

The formula

prompt_tokens = characters / chars_per_token (the vendor's rule of thumb); cost = (prompt_tokens * input_price + answer_tokens * output_price) / 1,000,000

Worked example

With the inputs the page opens on:

  • model: gpt-5.4-mini
  • prompt characters: 6000 characters
  • answer tokens: 400 tokens
  • calls: 1000

gives

  • prompt tokens: 1,500 tokens
  • cost per call: $0.00293
  • cost for calls: $2.93

Sources

Prices read from each vendor's own pricing page on 2026-10-20; the page may have changed since. This is arithmetic on published list prices, not advice or a quote. Check the vendor's page before committing a budget.

Questions

Can I paste the prompt instead?
On the tool page, yes: the character count is read from the text box. Nothing you paste leaves your browser.

Related tools