openai/gpt-4.1-2025-04-14

openai/gpt-4.1-2025-04-14
ZDR
VisionToolsJSON
by openai
Max output32K
Inputimage + text + file
Outputtext
Data retentionZero Data Retention available. With ZDR on, requests go only to providers with a zero-retention agreement.
Runs inEuropean Union
Context window1Mtokens
INPUT$2.00/ 1M tokens
OUTPUT$8.00/ 1M tokens
p50 TTFTCollecting…
p95 TTFTCollecting…
TRAFFICCollecting…

Pricing

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

Cost calculator

Tokens / month2MM
Input share80%%
Estimated / month $6.40 · With prompt caching $5.20

1.6M input × $2/M + 400K output × $8/M

Prompt caching assumes half of the input tokens are read from cache at $0.5/M.

Estimate based on list price

Per-request examples
ScenarioInput / output tokensPer requestPer 1,000 requests
Chat reply200 / 300$0.0028$2.80
Summarize a long doc30K / 1K$0.068$68.00
Code review8K / 2K$0.032$32.00

Token & cost estimator

Input tokens: 20Cost per request: $0.004040

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

Code samples

Use an OpenAI-compatible SDK or send an HTTP request. Get API key

API key
export ORCAROUTER_API_KEY=…
Base URL
https://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-2025-04-14",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Example response

{
  "id": "chatcmpl-…",
  "object": "chat.completion",
  "created": 1763280000,
  "model": "openai/gpt-4.1-2025-04-14",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 9,
    "completion_tokens": 10,
    "total_tokens": 19
  }
}
  • choices[0].message.content — the model's answer.
  • finish_reason — "stop" means the answer is complete; "length" means it was cut off at max_tokens.
  • usage — the input and output tokens this call is billed for.

An HTTP 200 with finish_reason "stop" means the call succeeded.

Supported parameters

ParameterWhat it does
max_tokensUpper limit on the number of tokens the model generates.
temperatureSampling randomness: lower is more focused, higher is more varied.
toolsFunctions the model may call, described as JSON Schema.
response_formatForce JSON output, optionally matching a JSON Schema.
max_completion_tokensUpper limit on generated tokens, reasoning tokens included.

Full API reference

Use cases and examples

  • Long context — 1M-token context window: whole codebases, long reports or chat histories in one request.
  • Multimodal input — Takes image + text + file in one request.
  • Agents and tool use — Calls the functions you define, for agents and tool workflows.
  • Structured extraction — Returns JSON that follows your schema, for pulling fields out of text.

Performance

p50 TTFTTime to first token for a typical request: half of requests got their first token faster than this.
Collecting…
Output speedHow many tokens per second the model streams once it starts answering.
Collecting…
p95 TTFTTime to first token for a slow request: 95% of requests got their first token faster than this.
Collecting…
Error rateShare of requests to this model on OrcaRouter that ended in an error over the window.
100.0%

Benchmarks

OrcaRouter leaderboard
21.8
AA CodingArtificial Analysis Coding Index: one 0–100 score that combines its coding evaluations.
Better than 20% of models compared
#109 of 138
12.7
AA IntelligenceArtificial Analysis Intelligence Index: one 0–100 score that combines its evaluations of reasoning, knowledge, math and coding.
Better than 18% of models compared
#125 of 153
34.7
AA MathArtificial Analysis Math Index: one 0–100 score that combines its competition-math evaluations.
Better than 10% of models compared
#73 of 82
AIMEAIME: problems from the American Invitational Mathematics Examination, a high-school olympiad qualifier.
43.7#11 of 26
AIME 2025AIME: problems from the American Invitational Mathematics Examination, a high-school olympiad qualifier.
34.7#43 of 52
GPQA DiamondGPQA Diamond: graduate-level biology, physics and chemistry questions written to be hard to look up.
66.6#109 of 137
Humanity's Last ExamHumanity's Last Exam: expert-written questions at the frontier of human knowledge, across dozens of subjects.
4.2#126 of 141
IFBenchIFBench: how precisely the model follows new, checkable instructions about the shape of its answer.
43.0#79 of 104
LiveCodeBenchLiveCodeBench: recent competitive-programming problems, published after most models were trained.
45.7#39 of 56
Long-Context RecallLong-Context Recall: answering questions that need facts found and combined across long documents.
68.3#99 of 136
MATH-500MATH-500: 500 competition math problems from the MATH dataset.
91.3#14 of 32
MMLU-ProMMLU-Pro: hard ten-option multiple-choice questions across 14 academic subjects.
80.6#33 of 91
SciCodeSciCode: writing code that solves research-level problems in physics, chemistry, biology and math.
38.1#110 of 141
TerminalBench HardTerminal-Bench: finishing real tasks in a command-line environment, such as building, debugging and configuring software.
13.6#83 of 99
τ²-Benchτ²-Bench: acting as a customer-service agent that uses tools and follows policy while talking to a simulated user.
47.1#82 of 104
Source: artificialanalysis.ai

Human preference and real-world tasks

1,383
LMArena TextLMArena Text: an Elo rating from blind votes by people comparing two models' answers side by side.
#182 on LMArena
1,210
LMArena VisionLMArena Vision: an Elo rating from blind human votes on answers to prompts that include images.
#89 on LMArena
39.6%
SWE-bench VerifiedSWE-bench Verified: the share of real GitHub issues, checked by human annotators, that the model resolves.
#22 of 29
Source: lmarena.ai, swebench.com

Compare models

openai/gpt-4.1-2025-04-14GPT-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

How much does openai/gpt-4.1-2025-04-14 cost on OrcaRouter?
openai/gpt-4.1-2025-04-14 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-2025-04-14's context window?
openai/gpt-4.1-2025-04-14 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-2025-04-14 via the OpenAI SDK?
Set OpenAI base_url to https://api.orcarouter.ai/v1, supply your OrcaRouter API key, and pass model="openai/gpt-4.1-2025-04-14" in the chat.completions.create call.
Does OrcaRouter rate-limit openai/gpt-4.1-2025-04-14?
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-2025-04-14•$2.00/M in•—•via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-4.1-2025-04-14" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-4.1-2025-04-14.svg" alt="openai/gpt-4.1-2025-04-14 on OrcaRouter" /> </a>
Markdown [![openai/gpt-4.1-2025-04-14](https://www.orcarouter.ai/embed/openai/gpt-4.1-2025-04-14.svg)](https://www.orcarouter.ai/models/openai/gpt-4.1-2025-04-14)

Model card as data

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