GPT-4.1

openai/gpt-4.1
by OpenAI · image+text+file in · text out · 1.05M ctx · 2025-04-14

GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world…

INPUT$2.00/ 1M tokens
OUTPUT$8.00/ 1M tokens
p50 TTFT1.85 s7d
p95 TTFT3.70 s7d
TRAFFIC9.3Ktokens / 7d
Code samples
from openai import OpenAI

client = OpenAI(
    base_url="https://orcarouter.ai/v1",
    api_key="$ORCAROUTER_API_KEY",
)

response = client.chat.completions.create(
    model="openai/gpt-4.1",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
Pricing
Input / 1M tokens$2.00
Output / 1M tokens$8.00
Cache read / 1M$0.500
CurrencyUSD
Performance
TTFT p50
1.85 s
Output speed
6.5 tok/s
TTFT p95
3.70 s
Error rate
6.1%
Public benchmarks
AA Coding
21.8
AA Intelligence
26.3
AA Math
34.7
AIME
43.7
AIME 2025
34.7
GPQA Diamond
66.6
Humanity's Last Exam
4.6
IFBench
43.0
LiveCodeBench
45.7
Long-Context Recall
61.0
MATH-500
91.3
MMLU-Pro
80.6
SciCode
38.1
TerminalBench Hard
13.6
τ²-Bench
47.1
Source: artificialanalysis.ai
FAQ
How much does OpenAI: GPT-4.1 cost on OrcaRouter?
OpenAI: GPT-4.1 is priced at $2.00 per 1M input tokens and $8.00 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is OpenAI: GPT-4.1's context window?
OpenAI: GPT-4.1 supports a context window of 1M tokens. Use long-context features (RAG, summarisation) up to that limit.
How do I call OpenAI: GPT-4.1 via the OpenAI SDK?
Set OpenAI base_url to https://orcarouter.ai/v1, supply your OrcaRouter API key, and pass model="openai/gpt-4.1" in the chat.completions.create call.
Does OrcaRouter rate-limit OpenAI: GPT-4.1?
Per-model rate limits follow your OrcaRouter plan. Free tiers ship with conservative caps; paid tiers lift them. Check /pricing for current quotas.
Embed this badge
OpenAI: GPT-4.1$2.00/M in1849ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-4.1" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-4.1.svg" alt="OpenAI: GPT-4.1 on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-4.1](https://www.orcarouter.ai/embed/openai/gpt-4.1.svg)](https://www.orcarouter.ai/models/openai/gpt-4.1)