GPT-4.1 API Cost Calculator
Estimate your monthly API costs for GPT-4.1 from Openai.
Pricing per 1M tokens
Pricing last verified: Mar 21, 2026
30-Day Price History
Solid line: input price · Dashed line: output price
Estimate Your Costs
What are you building?
Cost Breakdown
Compare with Similar Models
| Model | Input/1M | Output/1M |
|---|---|---|
| o3 Openai | $2.00 | $8.00 |
| o4 Mini Deep Research Openai | $2.00 | $8.00 |
| GPT-5 Openai | $1.25 | $10.00 |
| GPT-5 Chat Openai | $1.25 | $10.00 |
| GPT-5 Codex Openai | $1.25 | $10.00 |
Frequently Asked Questions
How much does GPT-4.1 cost per token?
GPT-4.1 is priced at $2.00 per 1M input tokens and $8.00 per 1M output tokens. Use the calculator above to estimate your monthly costs based on your usage volume.
What is the context window for GPT-4.1?
GPT-4.1 has a context window of 1.0M tokens (1,047,576 tokens). The maximum output length is 32.8K tokens.
Does GPT-4.1 support image inputs (vision)?
Yes, GPT-4.1 supports vision/image inputs. You can send images as part of your prompts.
Does GPT-4.1 support function calling (tool use)?
Yes, GPT-4.1 supports function calling (also called tool use). You can define custom functions that the model can invoke as part of its responses.
How does GPT-4.1 compare to similar models?
GPT-4.1 costs $2.00 input and $8.00 output per 1M tokens. GPT-4.1 is competitively priced compared to o4 Mini Deep Research ($2.00 input / $8.00 output per 1M tokens). See the "Compare with Similar Models" table above, or visit the o4 Mini Deep Research page at /tools/cost-calculator/openai/o4-mini-deep-research.