19 July 2026
How Much Does the ChatGPT / LLM API Cost?
The short answer
LLM APIs like ChatGPT charge per token - roughly per word-piece - split between input (your prompt) and output (the reply), with output usually priced higher. There is no flat monthly fee; your cost equals tokens used times the per-token rate for your chosen model. Smaller, faster models cost far less than flagship ones. A short query might cost a fraction of a cent, but high-volume apps add up, so estimating tokens per request before launch is essential.
How does token-based pricing work?
A token is a chunk of text - often a few characters or part of a word. Providers count the tokens in your prompt (input) and in the model's response (output), then charge each at a published per-million-token rate. Output tokens usually cost more than input. Because rates and model names change, always check the provider's current pricing page rather than relying on a number you remember - the fundamentals stay the same even as figures move.
What drives your actual bill up or down?
- Model choice - flagship models cost several times more than smaller ones
- Prompt length - long system prompts and context are billed every call
- Output length - capping response length directly cuts cost
- Request volume - a cheap-per-call app still adds up at scale
- Caching - reusing repeated context can lower repeat costs
The hard part is estimating before you build. Guessing token counts by hand is error-prone, especially when comparing models. Our AI cost calculator is a browser tool that lets you plug in prompt size, output size, and volume to see your projected monthly LLM bill across models - so you can choose the right model before writing a line of code.
How do you keep LLM costs under control?
Pick the smallest model that meets quality, trim system prompts, cap output length, and cache repeated context. For automated workflows, batch where you can and avoid re-sending large context on every step. Our AI automation playbook covers cost-aware design for no-code automations, so the flows you build stay affordable as volume grows instead of surprising you at the end of the month.
Put this into practice
All products →The tools and templates behind this guide — instant download, yours forever.
SoftwareAI API Cost Calculator
See exactly what any LLM API costs — per request, day, month, and year.
EbookThe AI Automation Playbook
Automate your business without code — workflows, AI steps, and real agents.
EbookCited — The AEO & GEO Playbook
Get your brand cited by ChatGPT, Perplexity, and Google AI Overviews.
