David Maliglowka

Grass Grass with alert

Prompt Cost

Calculate the cost of your LLM API calls.

Next.js React
Live

A tool to help devs calculate the cost of their LLM prompts.

Screenshot of the Prompt Cost web application interface

Why?

I got interested in in LLM tokenization work after watching King Karpathy 👑 drop his 3-hour lecture on building LLMs (worth the watch).

To get familiar with the concepts, I developed this tool. It ended up being pretty useful when building apps that leverage AI features.

It supports multiple OpenAI models like GPT-4, GPT-3.5-turbo, and others (more to come), providing real-time cost estimation based on token counts.