Budget a chat completion
Plug in token counts before you ship a feature that calls GPT-5.
Sample
Input tokens: 3,200 Output tokens: 800
What you get
The tool multiplies by your selected per‑1M token rates so you can sanity‑check invoice size.
Estimate your OpenAI API spend before you commit. This calculator covers GPT-5.4, GPT-5.4 Turbo, and GPT-5.4 Mini with the latest pricing as of May 2026. Enter your expected input and output tokens to get an instant cost breakdown.
| Model | Input | Output |
|---|---|---|
| GPT-5.4 | $2.50 | $10.00 |
| GPT-5.4 Turbo | $1.00 | $4.00 |
| GPT-5.4 Mini | $0.15 | $0.60 |
Plug in token counts before you ship a feature that calls GPT-5.
Sample
Input tokens: 3,200 Output tokens: 800
What you get
The tool multiplies by your selected per‑1M token rates so you can sanity‑check invoice size.
Estimate costs for Claude 4.7 Opus, Sonnet, and Haiku models.
Calculate costs for Gemini 3.1 Pro, Flash, and Nano models.
Estimate GPU and cloud costs for self-hosting Llama 4 models.
Compare RAG and fine-tuning costs to find the optimal approach for your project.
Count tokens, words, and characters across all major LLMs and estimate API costs in real time.