Strong all-round OpenAI model with a very large context window. Prefer for long documents, tool-heavy apps, and workloads that benefit from prompt caching.
Privacy first counting
TokenCalculator counts tokens in your browser when an Exact encoding is available. Prompt text does not need to leave your device for local counting.
Pricing snapshot
USD per 1 million tokens. Verify against the provider source before you lock budget.
| Rate | USD |
|---|---|
| Input / 1M | $2.00 |
| Output / 1M | $8.00 |
| Cached input / 1M | $0.500 |
| Batch input / 1M | $1.00 |
| Batch output / 1M | $4.00 |
Model details
| Detail | Value |
|---|---|
| Provider | OpenAI |
| Context window | 1M |
| Tokenizer | Exact (o200k_base) |
| Last verified | 2026-08-12 |
| API model id | gpt-4.1 |
Related tools
- Estimate API cost
- Count tokens
- Check context fit
- Estimate cache savings
- Compare batch pricing
- Token visualizer
Related guides
- LLM API pricing
- Exact vs Approx
- OpenAI token calculator
- o200k vs cl100k: which OpenAI encoding counts your text?