OpenAI
GPT-4.1
GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning.
At a glance
- Input / 1M
- $2
- Output / 1M
- $8
- Context
- 1.05M
- Max output
- 33K
- Intelligence
- 12.7
- Released
- Apr 2025
Pricing
GPT-4.1 API pricing
Per-token rates, plus what common tasks actually cost.
| Input tokensPer 1M tokens | $2 |
|---|---|
| Output tokensPer 1M tokens | $8 |
| Cached input (read)Per 1M tokens | $0.50 |
| Cache writePer 1M tokens | Not available |
| Web searchPer request | $0.01 |
Chat message
2K in, 500 out
$8
per 1,000 requests
Coding task
30K in, 4K out
$92
per 1,000 requests
Long document summary
150K in, 2K out
$316
per 1,000 requests
Benchmarks
GPT-4.1 benchmark scores
Independent scores from Artificial Analysis. Higher is better.
Intelligence index
12.7
Coding index
Not available
Agentic index
Not available
Specs
Context window and capabilities
What it can read, what it can write, and which API features it supports.
- Context window
- 1.05M tokens
- Max output
- 33K tokens
- Input types
- File, Image, Text
- Output types
- Text
- Reasoning effort
- Not available
- Release date
- April 14, 2025
- Knowledge cutoff
- June 30, 2024
- Tool calling
- Structured outputs
- JSON mode
- Reasoning
- Temperature
- Stop sequences
- Deterministic seed
- Verbosity control
Compare
GPT-4.1 vs other models
See how GPT-4.1 stacks up head to head on price, benchmarks, and features.
GPT-4.1 vs Gemini 2.5 Pro
OpenAI vs Google
See comparisonGPT-4.1 vs o4 Mini
OpenAI vs OpenAI
See comparisonGPT-4.1 vs o1
OpenAI vs OpenAI
See comparisonGPT-4.1 vs Mistral Medium 3.5
OpenAI vs Mistral
See comparisonGPT-4.1 vs Command A
OpenAI vs Cohere
See comparisonGPT-4.1 vs Qwen3 235B A22B Thinking 2507
OpenAI vs Qwen
See comparisonAlternatives
GPT-4.1 alternatives
Similar models worth considering, and where each one has the edge.
OpenAI
o4 Mini
Gemini 2.5 Pro
Mistral
Mistral Medium 3.5
Want to learn about other models? Browse all models
FAQ
Frequently asked questions
How much does GPT-4.1 cost?
GPT-4.1 costs $2 per 1M input tokens and $8 per 1M output tokens through the API. A typical chat message costs about $8 per 1,000 messages.
What is the context window of GPT-4.1?
GPT-4.1 accepts up to 1.05M tokens of input and can write up to 33K tokens in a single response.
What is the best alternative to GPT-4.1?
o4 Mini from OpenAI is a strong alternative. It offers: 1.8x cheaper output, higher intelligence score, newer release.
Can I use GPT-4.1 alongside other models?
Yes. Shortcut Chat sends one prompt to GPT-4.1 and any other models you pick at the same time, so you can compare answers side by side.
Try GPT-4.1 next to every other model.
Use GPT-4.1 alongside all the other models. Use one at a time, or multiple together. Get the best answer from every AI.