ChatGPT Prompt Cost Estimator
Paste your prompt below and instantly see the token count plus exact USD cost across all ChatGPT / OpenAI models.
Tokens: 0
Words: 0
Characters: 0
Input cost: $0.000000
Output cost: $0.000000
ChatGPT Prompt Cost Estimator — Pricing for All GPT Models
This tool helps developers, AI engineers, and prompt designers calculate the exact USD cost of any ChatGPT prompt before sending it to the API. Simply paste your text, select a model, and get an instant cost breakdown.
Current OpenAI API Pricing (per 1M tokens)
| Model | Input (per 1M) | Output (per 1M) |
|---|---|---|
| GPT-5 | $2.50 | $10.00 |
| GPT-4o | $2.50 | $10.00 |
| GPT-4o-mini | $0.15 | $0.60 |
| GPT-4.1 | $2.00 | $8.00 |
| GPT-4 Turbo | $10.00 | $30.00 |
| GPT-4 | $30.00 | $60.00 |
| GPT-3.5 Turbo | $0.50 | $1.50 |
How Prompt Cost Is Calculated
The OpenAI API charges separately for input tokens (your prompt) and output tokens (the model's response). This tool estimates your input cost based on the token count of the text you paste. For output cost estimation, the calculator uses the selected model's output rate applied to the same token count as a baseline.
Tips to Reduce ChatGPT API Costs
- Use GPT-4o-mini instead of GPT-4o for simpler tasks — 16× cheaper per input token.
- Trim whitespace, remove redundant context, and shorten system prompts.
- Use prompt caching for repeated system prompts to get 50–75% discount.
- Batch requests using the Batch API for a 50% cost reduction.
- Set
max_tokensto limit output length and output costs.
Related Tools
- GPT-4o Token Counter — count tokens for your GPT-4o prompts
- Multi-Model Cost Comparison — compare ChatGPT vs Claude vs Gemini costs side-by-side
- Token Cost Converter — enter a token count directly and get the USD cost
- Monthly API Budget Planner — plan how many requests fit in your monthly budget
- Prompt vs Completion Cost Split — see input vs output cost breakdown