GPT-4.1 Mini

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

GPT-4.1 Mini is a mid-sized model delivering performance competitive with GPT-4o at substantially lo…

INPUT$0.40/ 1M tokens
OUTPUT$1.60/ 1M tokens
p50 TTFT2.30 s7d
p95 TTFT10.90 s7d
TRAFFIC688.8Ktokens / 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-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
Pricing
Input / 1M tokens$0.400
Output / 1M tokens$1.60
Cache read / 1M$0.100
CurrencyUSD
Performance
TTFT p50
2.30 s
Output speed
175 tok/s
TTFT p95
10.90 s
Error rate
2.9%
Public benchmarks
AA Coding
18.5
AA Intelligence
22.9
AA Math
46.3
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
FAQ
How much does OpenAI: GPT-4.1 Mini cost on OrcaRouter?
OpenAI: GPT-4.1 Mini is priced at $0.40 per 1M input tokens and $1.60 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is OpenAI: GPT-4.1 Mini's context window?
OpenAI: GPT-4.1 Mini 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 Mini 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-mini" in the chat.completions.create call.
Does OrcaRouter rate-limit OpenAI: GPT-4.1 Mini?
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 Mini$0.40/M in2297ms 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)