GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and GPT-4.5 across coding (54.6% SWE-bench Verified), instruction compliance (87.4% IFEval), and multimodal understanding benchmarks. It is tuned for precise code diffs, agent reliability, and high recall in large document contexts, making it ideal for agents, IDE tooling, and enterprise knowledge retrieval.
Providers
Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).
| $2.00 | $8.00 | $0.50 | 0.84s | 93 tok/s | ||
| $2.00 | $8.00 | $0.50 | 2.87s | 81 tok/s | ||
Not used in Standard routing:Why these endpoints are not used | ||||||
| $2.20 | $8.80 | $0.55 | 0.47s | 125 tok/s | ||
- Input $2.00 / Output $8.0093 tok/s100.00% uptime
- Input $2.00 / Output $8.0081 tok/s100.00% uptime
- Not used in Standard routing:Why these endpoints are not used
- Input $2.20 / Output $8.80125 tok/s100.00% uptime
Pricing
The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.
Weighted average
GPT-4.1 — Price history
| $1.25 | $8.00 | 49.8% | 13.3% | ||
| $1.47 | $8.00 | 35.2% | 84.3% | ||
Not used in Standard routing:Why these endpoints are not used | |||||
| $1.23 | $8.80 | 58.6% | 2.4% | ||
- Effective in $1.25 / Effective out $8.00Token share13.3%
- Effective in $1.47 / Effective out $8.00Token share84.3%
- Not used in Standard routing:Why these endpoints are not used
- Effective in $1.23 / Effective out $8.80Token share2.4%
Performance
Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).
P50, best across providers
P50, best provider
Uptime
Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.
Availability over the last 3 days
Last 72 hoursAvailability over the last 24 hours
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.
Benchmarks
Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.
| Source | Benchmark | Score |
|---|---|---|
| Artificial Analysis | GPT-4.1 GPQA Diamond | 66.6% |
| Artificial Analysis | GPT-4.1 HLE | 4.2% |
| Artificial Analysis | GPT-4.1 IFBench | 43.0% |
| Artificial Analysis | GPT-4.1 τ²-Bench Telecom | 47.1% |
| Artificial Analysis | GPT-4.1 AA-LCR | 68.3% |
| Artificial Analysis | GPT-4.1 CritPt | 0.0% |
| Artificial Analysis | GPT-4.1 LiveCodeBench | 45.7% |
| Artificial Analysis | GPT-4.1 Terminal-Bench Hard | 13.6% |
| Artificial Analysis | GPT-4.1 MMLU-Pro | 80.6% |
| Artificial Analysis | GPT-4.1 AIME 2025 | 34.7% |
| Artificial Analysis | GPT-4.1 AIME | 43.7% |
| Artificial Analysis | GPT-4.1 MATH-500 | 91.3% |
| Design Arena | GPT-4.1 Models Arena 3D Elo | 829 |
| Design Arena | GPT-4.1 Models Arena Code Categories Elo | 1015 |
| Design Arena | GPT-4.1 Models Arena Data Visualization Elo | 1104 |
| Design Arena | GPT-4.1 Models Arena Game Development Elo | 1069 |
| Design Arena | GPT-4.1 Models Arena UI Component Elo | 990 |
| Design Arena | GPT-4.1 Models Arena Website Elo | 1030 |
| Vals AI | GPT 4.1 AIME | 39.6% |
| Vals AI | GPT 4.1 CaseLaw v2 | 69.9% |
| Vals AI | GPT 4.1 CorpFin v2 | 63.1% |
| Vals AI | GPT 4.1 Finance Agent v1 | 24.6% |
| Vals AI | GPT 4.1 GPQA Diamond | 65.4% |
| Vals AI | GPT 4.1 LiveCodeBench | 54.7% |
| Vals AI | GPT 4.1 LegalBench | 83.1% |
| Vals AI | GPT 4.1 MATH 500 | 87.2% |
| Vals AI | GPT 4.1 MedQA | 91.2% |
| Vals AI | GPT 4.1 MGSM | 87.7% |
| Vals AI | GPT 4.1 MMLU Pro | 80.5% |
| Vals AI | GPT 4.1 MMMU Pro | 72.4% |
| Vals AI | GPT 4.1 MortgageTax | 65.9% |
| Vals AI | GPT 4.1 TaxEval v2 | 75.1% |
| Vals AI | GPT 4.1 Terminal-Bench 2.0 | 14.6% |
Apps
Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.
Activity
Token volume and request traffic to this model over time.
API
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
Available through EU in-region routing
OpenAI: GPT-4.1 is available through EU in-region routing. Requests sent to eu.openrouter.ai are decrypted in the EU and routed only to shared provider endpoints in Europe (the EU/EEA, the UK, and Switzerland).
- Providers in Europe
- Azure
- Prices in Europe
- Azure: $2.20/M tokens input, $8.80/M tokens output
- Base URL
https://eu.openrouter.ai/api/v1- Plan
- Requires Business or Enterprise. Self-serve on Business: no contract, no monthly minimum. OpenRouter Business for EU in-region routing
Fails closed: if no shared provider endpoint in Europe is available, the request errors instead of leaving the region. Requests served by your own BYOK key go to your deployment’s region, which you control. In-region routing docs
Documentation
Guides, cookbooks, blog posts, and tools for building with OpenAI: GPT-4.1 on OpenRouter.
Frequently asked questions
GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and GPT-4.5 across coding (54.6% SWE-bench Verified), instruction compliance (87.4% IFEval), and multimodal understanding benchmarks.
The GPT-4.1 documentation on OpenRouter includes the Quasar Alpha and Optimus Alpha Reveal blog post. The quickstart covers API keys and your first request, and the API reference lists every parameter.
GPT-4.1 costs $2.00/M input tokens and $8.00/M output tokens, with separate rates for Cache Read at $0.50/M tokens.
GPT-4.1 has a 1,047,576 token context window.
Yes. GPT-4.1 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
GPT-4.1 accepts images, text, and files such as PDFs as input and returns text.
GPT-4.1 is served by 2 providers on OpenRouter: Azure and OpenAI. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.
GPT-4.1 was released on April 14, 2025. Its knowledge cutoff is June 30, 2024.