GPT-4.1 Mini

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

GPT-4.1 Mini is a mid-sized model delivering performance competitive with GPT-4o at substantially lower latency and cost. It retains a 1 million token context window and scores 45.1% on hard...

ctx1.05M tokens
Max output32.8K
Inputimage + text + file
Outputtext
p50 TTFT1.33 s
INPUT$0.40/ 1M tokens
OUTPUT$1.60/ 1M tokens
p50 TTFT1.33 s7d
p95 TTFT5.00 s7d
TRAFFIC714.3Ktokens / 7d

GPT-4.1 Mini is a cost-efficient model released by OpenAI that prioritizes a massive context window of 1,047,576 tokens while supporting text, image, and file inputs. Its maximum output length is…

What is GPT-4.1 Mini?

Who is GPT-4.1 Mini designed for?

Code samples

Call from any SDK

OpenAI-compatible — keep the SDK you already use

  • OpenAI SDKhttps://api.orcarouter.ai/v1
from openai import OpenAI

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

response = client.chat.completions.create(
    model="openai/gpt-4.1-mini",
    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

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

Cost calculator

Tokens / month10MM
Input share70%%
Estimated / month $7.60 · With prompt caching $6.55

Estimate based on list price

Token & cost estimator

Input tokens: 20Cost per request: $0.000808

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

Performance

p50 TTFT
1.33 s
Output speed
63.1 tok/s
p95 TTFT
5.00 s
Error rate
0%

Public benchmarks

18.5
AA Coding
Better than 14% of models compared
#90 of 106
22.9
AA Intelligence
Better than 18% of models compared
#89 of 110
46.3
AA Math
Better than 22% of models compared
#62 of 81
AIME
43.0
AIME 2025
46.3
GPQA Diamond
66.4
Humanity's Last Exam
4.6
IFBench
38.3
LiveCodeBench
48.3
Long-Context Recall
42.3
MATH-500
92.5
MMLU-Pro
78.1
SciCode
40.4
TerminalBench Hard
7.6
τ²-Bench
52.9
Source: artificialanalysis.ai

How it compares

GPT-4.1 MiniGPT-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

How much does GPT-4.1 Mini cost per token?
Input tokens are $0.40 per 1 million tokens; output tokens are $1.60 per 1 million tokens. OrcaRouter bills these rates with zero markup. There are no additional platform fees.
What is the context window size of GPT-4.1 Mini?
The context window is 1,047,576 tokens. The maximum output length is 32,768 tokens.
What are GPT-4.1 Mini's main strengths?
Its main strengths are its large 1M-token context window (suitable for long documents), multimodal support (text, images, files), strong mathematical reasoning (92.5 on MATH-500), and low-cost pricing compared to full-sized GPT-4 models.
How does GPT-4.1 Mini compare to GPT-4o Mini?
GPT-4.1 Mini has a much larger context window (1M vs. 128K tokens) and supports file inputs, but is more expensive ($0.40/$1.60 vs. $0.15/$0.60 per million tokens). It scored 92.5 on MATH-500; GPT-4o Mini scored 87.0 on MMLU (different benchmark).
Does GPT-4.1 Mini support image inputs?
Yes, it accepts image inputs in addition to text and file inputs. Images are tokenized according to OpenAI's image processing rules.
How do I call GPT-4.1 Mini via an OpenAI-compatible API?
Use base URL https://api.orcarouter.ai/v1 with model ID 'openai/gpt-4.1-mini' and your OrcaRouter API key. All standard Chat Completion parameters are supported.
What data handling policies apply when using GPT-4.1 Mini through OrcaRouter?
OrcaRouter is a middleware that passes requests and responses without storing them unless otherwise noted. OpenAI's own data handling policies apply; consult OpenAI's documentation for details on training data usage.
Is there any caching or discount for repeated prompts?
Pricing is per-token with no markup. Any caching discounts would follow OpenAI's own policy. OrcaRouter does not add caching surcharges or discounts.
Can GPT-4.1 Mini be used for real-time applications?
Yes, streaming is supported via the stream parameter. Latency depends on OpenAI's infrastructure and OrcaRouter's routing; mini models are generally faster than full-sized ones, but specific latency figures are not published.
What is the maximum output token length?
The maximum output length is 32,768 tokens. You can set a lower max_tokens to control output size.

Embed this badge

OpenAI: GPT-4.1 Mini$0.40/M in1333ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-4.1-mini" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-4.1-mini.svg" alt="OpenAI: GPT-4.1 Mini on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-4.1 Mini](https://www.orcarouter.ai/embed/openai/gpt-4.1-mini.svg)](https://www.orcarouter.ai/models/openai/gpt-4.1-mini)

Model card as data

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