GPT-4.1 pricing at a glance
- Provider: OpenAI
- Input: $2.00 per million tokens
- Output: $8.00 per million tokens
- Cached input: $0.50 per million tokens
- Context window: 1,047,576 tokens
- Prices verified: September 24, 2026
About GPT-4.1
GPT-4.1 is priced at $2 per million input tokens and $8 per million output, with cached input at $0.50 per million (a 75% discount). Its context window is about a million tokens, which is why a whole codebase or book can fit in one prompt. It uses o200k_base, so the counts on this page are exact for it.
What GPT-4.1 costs in practice
A call with 1,000 input tokens and 500 output tokens costs $0.006 on GPT-4.1, so a thousand such calls cost $6.00. With prompt caching, a cache read is priced at $0.50 per million tokens, 75% below the standard input rate. Its 1.05M-token context window holds roughly 786,000 English words, or about 1,571 pages at 500 words a page; filling all of it once costs $2.10 in input tokens.
How this GPT-4.1 token counter counts tokens
GPT-4.1 uses OpenAI’s o200k_base encoding, and this page runs that tokenizer in your browser, so the count shown is exactly what the API will bill for the prompt text.
How to use it
- Paste your prompt into the box, or drop a .txt or .md file on it.
- Set the expected output length and how many calls you make per day.
- Compare the cost per call and per month across models; the cheapest is highlighted.
- Tick the cache option if your prompt prefix is reused, then copy the table if you need it elsewhere.
Frequently asked questions
How many tokens is my text in GPT-4.1?
Paste it into the box above; the count shown for this model is exact because it uses the same o200k_base tokenizer the API applies.
How much does GPT-4.1 cost per million tokens?
$2.00 per million input tokens and $8.00 per million output tokens, with cached input at $0.50, as of September 24, 2026.
Is my prompt sent to a server?
No. Counting runs in a background thread in your browser. The site records only an anonymous counter such as how many models were compared, never the text you paste.
Prices verified September 24, 2026 from OpenAI’s pricing page. Confirm on the provider’s site before budgeting.