GPT-4.1

openai/gpt-4.1
VisionToolsJSON
by OpenAI · 2025-04-14

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

ctx1M tokens
Max output32K
Inputimage + text + file
Outputtext
p50 TTFT714 ms
INPUT$2.00/ 1M tokens
OUTPUT$8.00/ 1M tokens
p50 TTFT714 ms7d
p95 TTFT862 ms7d
TRAFFIC363tokens / 7d

OpenAI GPT-4.1 is a large language model from OpenAI that is accessible on OrcaRouter. It offers a context window of 1,047,576 tokens and a maximum output of 32,768 tokens. The model accepts input in…

What is OpenAI GPT-4.1?

Who should use GPT-4.1?

What input modalities does GPT-4.1 support?

How does the context window impact usage?

Code samples

Call from any SDK

OpenAI-compatible — keep the SDK you already use

  • OpenAI SDKhttps://api.orcarouter.ai/v1
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.orcarouter.ai/v1",
    api_key=os.environ["ORCAROUTER_API_KEY"],
)

response = client.chat.completions.create(
    model="openai/gpt-4.1",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Supported parameters

  • frequency_penalty
  • logit_bias
  • logprobs
  • max_completion_tokens
  • max_tokens
  • n
  • parallel_tool_calls
  • prediction
  • presence_penalty
  • response_format
  • seed
  • service_tier
  • stop
  • stream
  • structured_outputs
  • temperature
  • tool_choice
  • tools
  • top_logprobs
  • top_p
  • web_search_options

Pricing

Pricing
Input / 1M tokens$2.00
Output / 1M tokens$8.00
Cache read / 1M$0.500
CurrencyUSD

Cost calculator

Tokens / month10MM
Input share70%%
Estimated / month $38.00 · With prompt caching $32.75

Estimate based on list price

Token & cost estimator

Input tokens: 20Cost per request: $0.004040

Estimate only — actual token counts depend on the provider's tokenizer.

Performance

p50 TTFT
714 ms
Output speed
19.6 tok/s
p95 TTFT
862 ms
Error rate
5.6%

Public benchmarks

21.8
AA Coding
Better than 20% of models compared
#109 of 138
12.7
AA Intelligence
Better than 17% of models compared
#121 of 147
34.7
AA Math
Better than 10% of models compared
#73 of 82
AIME
43.7
AIME 2025
34.7
GPQA Diamond
66.6
Humanity's Last Exam
4.2
IFBench
43.0
LiveCodeBench
45.7
Long-Context Recall
68.3
MATH-500
91.3
MMLU-Pro
80.6
SciCode
38.1
TerminalBench Hard
13.6
τ²-Bench
47.1
Source: artificialanalysis.ai

Community buzz

What developers are saying this week

Hacker News0 mentions · 7d

How it compares

GPT-4.1GPT-5.2 ProGPT-5.4 ProGPT-5.5
Input $/M$2.00$21.00$60.00$5.00
Output $/M$8.00$168.00$270.00$30.00
Context1.0M400K1.1M—
Quality4/1010/1010/1010/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

What is the cost of using GPT-4.1 on OrcaRouter?
Input tokens cost $2.00 per million, output tokens cost $8.00 per million, billed at provider rate with zero markup.
What is the context window size?
1,047,576 tokens, allowing processing of very long documents.
What are the main strengths of GPT-4.1?
Large context, multimodal input, and strong performance on math reasoning (91.3 on MATH-500).
How does GPT-4.1 compare to GPT-4o?
GPT-4.1 has a larger context window (1M vs 128K) and supports image inputs. Pricing is higher than GPT-4o mini but may be lower than GPT-4o depending on usage. Specific comparisons are not provided.
Does OrcaRouter train on my data?
No. OrcaRouter does not train on customer data. Data is processed via OpenAI's API and subject to OpenAI's data policies.
How do I access GPT-4.1 through an OpenAI-compatible API?
Use base URL https://api.orcarouter.ai/v1 with model ID 'openai/gpt-4.1'. The API is fully compatible with OpenAI's client libraries.
Can I send images to GPT-4.1?
Yes. GPT-4.1 accepts image, text, and file inputs. Images can be included in the message content.
What is the maximum output length?
32,768 tokens per response.

Embed this badge

OpenAI: GPT-4.1•$2.00/M in•714ms p50•via 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)

Model card as data

GET /api/public/models/openai/gpt-4.1Open
Machine-readable:/llms.txt/llms-full.txt