Favicon for openai

OpenAI: GPT-4.1

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. 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.

Modalities
In / out price
$2 / $8per 1M
Context
1.0M
Released
Apr 14, 2025
Knowledge cutoff
Jun 2024

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).

  • Not used in Standard routing:Why these endpoints are not used

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

Input
$1.392/M tokens
Output
$8.01/M tokens
Price history
No effective price data for this selection
  • Not used in Standard routing:Why these endpoints are not used

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).

Throughput
86tok/s

P50, best across providers

Latency
0.91s

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.

Uptime (3d)The model was reachable. Request routed to a provider.
100.00%
Availability (3d)The model returned inference from any provider. Errors and empty responses count against it.
99.97%

Availability over the last 3 days

Last 72 hours
Availability 99.97%
3 Days Ago2 Days AgoYesterdayNow

Availability over the last 24 hours

OpenRouter Availability
99.96%
Without Routing
99.48%

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.

Benchmark score summary for OpenAI: GPT-4.1 (Artificial Analysis, Design Arena and Vals AI)
SourceBenchmarkScore
Artificial AnalysisGPT-4.1 GPQA Diamond66.6%
Artificial AnalysisGPT-4.1 HLE4.2%
Artificial AnalysisGPT-4.1 IFBench43.0%
Artificial AnalysisGPT-4.1 τ²-Bench Telecom47.1%
Artificial AnalysisGPT-4.1 AA-LCR68.3%
Artificial AnalysisGPT-4.1 CritPt0.0%
Artificial AnalysisGPT-4.1 LiveCodeBench45.7%
Artificial AnalysisGPT-4.1 Terminal-Bench Hard13.6%
Artificial AnalysisGPT-4.1 MMLU-Pro80.6%
Artificial AnalysisGPT-4.1 AIME 202534.7%
Artificial AnalysisGPT-4.1 AIME43.7%
Artificial AnalysisGPT-4.1 MATH-50091.3%
Design ArenaGPT-4.1 Models Arena 3D Elo830
Design ArenaGPT-4.1 Models Arena Code Categories Elo1015
Design ArenaGPT-4.1 Models Arena Data Visualization Elo1104
Design ArenaGPT-4.1 Models Arena Game Development Elo1069
Design ArenaGPT-4.1 Models Arena UI Component Elo990
Design ArenaGPT-4.1 Models Arena Website Elo1030
Vals AIGPT 4.1 AIME39.6%
Vals AIGPT 4.1 CaseLaw v269.9%
Vals AIGPT 4.1 CorpFin v263.1%
Vals AIGPT 4.1 Finance Agent v124.6%
Vals AIGPT 4.1 GPQA Diamond65.4%
Vals AIGPT 4.1 LiveCodeBench54.7%
Vals AIGPT 4.1 LegalBench83.1%
Vals AIGPT 4.1 MATH 50087.2%
Vals AIGPT 4.1 MedQA91.2%
Vals AIGPT 4.1 MGSM87.7%
Vals AIGPT 4.1 MMLU Pro80.5%
Vals AIGPT 4.1 MMMU Pro72.4%
Vals AIGPT 4.1 MortgageTax65.9%
Vals AIGPT 4.1 TaxEval v275.1%
Vals AIGPT 4.1 Terminal-Bench 2.014.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.

1.
24.7Btokens
2.
1.86Btokens
3.
Favicon for https://infiniteworlds.app/
Infinite Worlds
1.31Btokens
4.
1.19Btokens
5.
1.07Btokens
Rest of OpenRouter
2.96B
Top 5 Apps
326M

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