ToolPuma Logo

Prompt Cost Calculator

Estimate the token cost of a single prompt.

What Is a Prompt Cost Calculator?

The Prompt Cost Calculator estimates the cost of a single prompt by measuring its tokens and applying the selected model's input and output rates. Paste your prompt, set the expected output length, and see exactly what a request would cost.

How to Use This Prompt Cost Calculator

  1. 1
    Pick a modelChoose the model the prompt targets.
  2. 2
    Paste the promptThe input token count is estimated automatically.
  3. 3
    Set output lengthEnter the expected number of output tokens.
  4. 4
    Read the costSee input, output, and total cost for the prompt.

Frequently Asked Questions

The prompt is tokenized locally with the same per-script approximation used across the toolkit.
The number of output tokens varies with the task and model. Estimating from past calls or the max_tokens setting gives a useful upper bound.
Yes. Multiply the per-prompt cost by the number of requests to estimate total spend, remembering that long conversations grow the input tokens each turn.