Skip to content
Alpha
  • Models
  • Rankings
  • Ori

Footer

OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Ori
  • Collections
  • Providers
  • Tools
  • Pricing
  • Business
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Customers
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Trust Center
  • Support
  • Works With OR
  • Data
  • Brand

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status
  • AI Site Map

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
Favicon for openai

OpenAI: GPT-4.1

openai/gpt-4.1

Compare

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
Compare
ProvidersPricingPerformanceUptimeBenchmarksAppsActivityDocumentationFAQExplore

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

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.

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

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.

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 Intelligence Index12.7
Artificial AnalysisGPT-4.1 Math Index34.7
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 AA-Omniscience Accuracy27.8%
Artificial AnalysisGPT-4.1 AA-Omniscience Non-Hallucination Rate6.7%
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 Elo847
Design ArenaGPT-4.1 Models Arena Code Categories Elo1024
Design ArenaGPT-4.1 Models Arena Data Visualization Elo1104
Design ArenaGPT-4.1 Models Arena Game Development Elo1078
Design ArenaGPT-4.1 Models Arena UI Component Elo995
Design ArenaGPT-4.1 Models Arena Website Elo1037
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.

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.

  • Quasar Alpha and Optimus Alpha RevealBlog post

Explore more models

AI Models with Vision: Multimodal LLMs for Image UnderstandingCollectionAI Model RankingsRanking
Latency / throughput
$2.00$8.00$0.501.70s55 tps
100.00%
$2.00$8.00$0.500.91s80 tps
100.00%
Not used in Standard routing:Why these endpoints are not used
$2.20$8.80$0.551.69s59 tps
100.00%
AutoExacto benchmarks
GPQA DiamondTAU-BenchAzure62.3%--OpenAI65.1%51.9%Azure64.8%48.7%auto-routing64.1%46.0%FakeProvider0.0%46.0%

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.