DEV Community

ylyn
ylyn

Posted on

Paste a prompt, see the bill: a free prompt cost calculator for LLM APIs

The problem

Before you ship a long system prompt or dump a chat transcript into an agent, it’s hard to answer: β€œWhat does this cost per call?”

What I built

A free tool: paste prompt / transcript β†’ estimated tokens + USD against official model list prices.

πŸ‘‰ https://tools.aicostgate.com/prompt-cost

No signup. Built for people running Cursor / Claude Code / custom agents who care about token spend.

How I use it

  1. Paste the system + user prompt you actually send
  2. Pick the model
  3. Sanity-check before wiring it into a loop

Related free tools

Feedback welcome β€” especially on tokenizer approximations vs real provider billing.

Top comments (0)