openai/gpt-4.1-mini-2025-04-14

openai/gpt-4.1-mini-2025-04-14
ZDR
VisionToolsJSON
by openai

openai/gpt-4.1-mini-2025-04-14 is a smaller, cost-optimized variant of OpenAI’s GPT-4.1 series, designed for applications that need high throughput and low latency without sacrificing strong reasoning capabilities. It supports a context window of 1,047,576 tokens and a maximum output of 32,768 tokens, making it suitable for processing very long documents, codebases, or multi-turn conversations. Input modalities include image, text, and file uploads, enabling multimodal tasks such as image captioning, document analysis, and visual question answering. This model is accessed through OrcaRouter’s OpenAI-compatible API at base URL https://api.orcarouter.ai/v1 using the model ID "openai/gpt-4.1-mini-2025-04-14". OrcaRouter passes through the provider rate of $0.40 per 1M input tokens and $1.60 per 1M output tokens with zero markup. With a headline benchmark score of 92.5 on MATH-500, it demonstrates strong mathematical reasoning relative to its size and cost. It is ideal for developers who need solid general-purpose intelligence, especially for tasks involving large contexts, images, or files, while keeping expenses predictable and low.

Max output32K
Inputimage + text + file
Outputtext
p50 TTFT944 ms
Data retentionZero Data Retention available. With ZDR on, requests go only to providers with a zero-retention agreement.
Runs inEuropean Union
Context window1Mtokens
INPUT$0.40/ 1M tokens
OUTPUT$1.60/ 1M tokens
p50 TTFT944 ms7d
p95 TTFT2.26 s7d

Pricing

Pricing
Input / 1M tokens$0.400
Output / 1M tokens$1.60
Cache read / 1M$0.100
CurrencyUSD

Cost calculator

Tokens / month2MM
Input share80%%
Estimated / month $1.28 · With prompt caching $1.04

1.6M input × $0.4/M + 400K output × $1.6/M

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

Estimate based on list price

Per-request examples
ScenarioInput / output tokensPer requestPer 1,000 requests
Chat reply200 / 300$0.0006$0.560
Summarize a long doc30K / 1K$0.014$13.60
Code review8K / 2K$0.0064$6.40

Token & cost estimator

Input tokens: 20Cost per request: $0.000808

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

Compare monthly costs across models in the LLM cost calculator

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-mini-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-mini-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.
  • Processing and summarizing very long documents or codebases up to ~800K tokens
  • Multi-turn conversational agents that need to retain full conversation history
  • Image understanding tasks like captioning, OCR, and visual question answering
  • File-based RAG pipelines with mixed text and image inputs
  • High-throughput applications where per-token cost must stay below $1.60 per million output tokens

Performance

p50 TTFTTime to first token for a typical request: half of requests got their first token faster than this.
944 ms
#15 fastest of 150 models
Output speedHow many tokens per second the model streams once it starts answering.
93.5 tok/s
#98 fastest of 144 models
p95 TTFTTime to first token for a slow request: 95% of requests got their first token faster than this.
2.26 s
Error rateShare of requests to this model on OrcaRouter that ended in an error over the window.
68.8%

Benchmarks

OrcaRouter leaderboard
20.2
AA CodingArtificial Analysis Coding Index: one 0–100 score that combines its coding evaluations.
Better than 16% of models compared
#115 of 138
10.2
AA IntelligenceArtificial Analysis Intelligence Index: one 0–100 score that combines its evaluations of reasoning, knowledge, math and coding.
Better than 14% of models compared
#131 of 153
46.3
AA MathArtificial Analysis Math Index: one 0–100 score that combines its competition-math evaluations.
Better than 22% of models compared
#63 of 82
AIMEAIME: problems from the American Invitational Mathematics Examination, a high-school olympiad qualifier.
43.0#13 of 26
AIME 2025AIME: problems from the American Invitational Mathematics Examination, a high-school olympiad qualifier.
46.3#33 of 52
GPQA DiamondGPQA Diamond: graduate-level biology, physics and chemistry questions written to be hard to look up.
66.4#111 of 137
Humanity's Last ExamHumanity's Last Exam: expert-written questions at the frontier of human knowledge, across dozens of subjects.
5.0#121 of 141
IFBenchIFBench: how precisely the model follows new, checkable instructions about the shape of its answer.
38.3#88 of 104
LiveCodeBenchLiveCodeBench: recent competitive-programming problems, published after most models were trained.
48.3#37 of 56
Long-Context RecallLong-Context Recall: answering questions that need facts found and combined across long documents.
44.0#124 of 136
MATH-500MATH-500: 500 competition math problems from the MATH dataset.
92.5#12 of 32
MMLU-ProMMLU-Pro: hard ten-option multiple-choice questions across 14 academic subjects.
78.1#40 of 91
SciCodeSciCode: writing code that solves research-level problems in physics, chemistry, biology and math.
40.4#100 of 141
tau_bankingτ²-Bench: acting as a customer-service agent that uses tools and follows policy while talking to a simulated user.
5.4#75 of 80
TerminalBench HardTerminal-Bench: finishing real tasks in a command-line environment, such as building, debugging and configuring software.
7.6#93 of 99
terminalbench_v2_1Terminal-Bench: finishing real tasks in a command-line environment, such as building, debugging and configuring software.
10.1#73 of 80
τ²-Benchτ²-Bench: acting as a customer-service agent that uses tools and follows policy while talking to a simulated user.
52.9#77 of 104
Source: artificialanalysis.ai

Human preference and real-world tasks

1,340
LMArena TextLMArena Text: an Elo rating from blind votes by people comparing two models' answers side by side.
#222 on LMArena
1,181
LMArena VisionLMArena Vision: an Elo rating from blind human votes on answers to prompts that include images.
#105 on LMArena
23.9%
SWE-bench VerifiedSWE-bench Verified: the share of real GitHub issues, checked by human annotators, that the model resolves.
#26 of 28
Source: lmarena.ai, swebench.com

Compare models

openai/gpt-4.1-mini-2025-04-14GPT-5.2 ProGPT-5.4 ProGPT-5.5
Input $/M$0.40$21.00$60.00$5.00
Output $/M$1.60$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 per token for openai/gpt-4.1-mini-2025-04-14 on OrcaRouter?
OrcaRouter bills at the provider rate with zero markup: $0.40 per 1 million input tokens and $1.60 per 1 million output tokens.
What is the context window size?
The context window is 1,047,576 tokens (approximately 1 million tokens). Maximum output is 32,768 tokens per request.
What are its main strengths?
It offers a strong combination of low cost, large context window, multimodal input (text, image, file), and solid reasoning performance as shown by the MATH-500 score of 92.5.
How does it compare to GPT-4o?
GPT-4o is a more capable flagship model with audio support, but GPT-4.1 mini is often cheaper and faster. No direct benchmark comparison is provided, but the mini is designed for efficient production use.
Does OrcaRouter handle data privacy for this model?
OrcaRouter routes requests to OpenAI’s infrastructure. Data handling follows OpenAI’s policies and OrcaRouter’s own terms. You should review both providers’ privacy and data usage agreements.
How do I call this model using the OpenAI Python client?
Set openai.api_base to 'https://api.orcarouter.ai/v1', set your OrcaRouter API key, and use openai.ChatCompletion.create(model='openai/gpt-4.1-mini-2025-04-14', messages=[...]).
Can I use this model for image understanding?
Yes, it supports image inputs (via URLs or base64) for tasks like captioning, visual question answering, and OCR. Files can also be uploaded as images or text.
What are the honest limitations of this model?
It may not match the full GPT-4.1 on very complex reasoning, and its knowledge is limited to the training cutoff (April 2025). It is not suitable for safety-critical applications without human oversight.
Is there any caching discount?
No specific caching discounts are mentioned for this model on OrcaRouter. Billing is per token at the rates stated.

Embed this badge

openai/gpt-4.1-mini-2025-04-14•$0.40/M in•944ms p50•via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-4.1-mini-2025-04-14" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-4.1-mini-2025-04-14.svg" alt="openai/gpt-4.1-mini-2025-04-14 on OrcaRouter" /> </a>
Markdown [![openai/gpt-4.1-mini-2025-04-14](https://www.orcarouter.ai/embed/openai/gpt-4.1-mini-2025-04-14.svg)](https://www.orcarouter.ai/models/openai/gpt-4.1-mini-2025-04-14)

Model card as data

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