Skip to content
Not available in this workspace
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

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

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Support
  • Works With OR
  • Data

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

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

1M

Released

Apr 14, 2025

Knowledge Cutoff

Jun 2024

Compare
ProvidersPricingPerformanceUptimeBenchmarksAppsActivityFAQ

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 Exacto (highest tool-calling accuracy).

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. Higher percentages are better — and rank percentile shows where this model lands among all models on OpenRouter.

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.

Quick Start

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.

About OpenAI: GPT-4.1

OpenRouter makes OpenAI: GPT-4.1 available through a unified, OpenAI-compatible API using the model ID openai/gpt-4.1. Requests can be routed across 2 providers, including Azure (EU) and OpenAI, with automatic failover when an endpoint is unavailable.

OpenAI: GPT-4.1 accepts images, text and files such as PDFs and returns text. It has a 1,047,576-token context window.

On OpenRouter, OpenAI: 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. Effective pricing can be lower when prompt caching applies. It was released on April 14, 2025; its knowledge cutoff is June 30, 2024.

More models from OpenAI

  • GPT Transcribe
  • GPT-5.6 Luna Pro
  • GPT-5.6 Luna

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.

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

$2.00$8.00$0.501.06s29 tps
99.99%
$2.00$8.00$0.500.60s49 tps
99.96%
$2.20$8.80$0.550.81s27 tps
100.00%

Throughput

49tok/s

P50, best across providers

Latency

0.60s

P50, best provider

AutoExacto Benchmarks
GPQA DiamondTAU-Bench
Azure (EU)
67.0%--
Azure
64.5%52.0%
OpenAI
66.3%49.3%
auto-routing
66.5%48.0%
Uptime (3d)

100.00%

Availability (3d)

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.95%
Without Routing
98.15%

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

1.
Favicon for https://mall-cus-service.azazie.com/
mall-cus-service
new
42.4Btokens
2.
Favicon for https://nelo.co/
Nelo CX Support AI
new
12.8Btokens
3.
Favicon for https://app.playerdata.co.uk/
PlayerData Api
new
3.21Btokens
4.
Favicon for https://infiniteworlds.app/
Infinite Worlds
Build your own adventures, share them with friends
3.13Btokens
5.
Favicon for https://www.hyperwriteai.com/
HyperWrite AI
new
1.67Btokens