20% off all GPT ๐ŸŽ‰ 30% off DeepSeekLearn more

GPT-4.1 Mini

Chat-20%
openai/gpt-4.1-mini

GPT-4.1 Mini is the mid-sized variant of OpenAI's GPT-4.1, released on 2025-04-14, delivering GPT-4o-level performance at lower latency and cost. It supports structured outputs, vision understanding, tool use, and prompt caching, and keeps the full 1M-token context window of the larger model. Context window: 1M tokens, output: 32K. It remains a budget option for high-volume long-context processing, although later generations now lead on coding and reasoning. Accessible via the OpenAI-compatible protocol.

Context Window
1M
Max Output Tokens
33K
Released
2025-04-14
Capabilities
VisionFunction CallingPrompt Caching
Available Providers
Azure
Supported Protocols
openai

Providers

Azureprovider.type: "azure_foundry"
-20%
Input Tokens
$0.32/M
$0.4/M
Output Tokens
$1.28/M
$1.6/M
Cache Read
$0.08/M
$0.1/M
Web Search
$0.035/R
Protocols
openai/v1/chat/completions/v1/responses

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.run/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-4.1-mini",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Benchmarks

LMArena โ†—Evaluated as gpt-4.1-mini-2025-04-14

GPT-4.1 Mini scores 1383 in the Overall category of the LMArena text leaderboard (style control), ranking #149 of 374 models based on 39,305 human preference votes (updated 2026-07-12).

Benchmark scores for gpt-4.1-mini-2025-04-14 on LMArena
CategoryArena Score95% CIRankVotes
Overall13831379โ€“1387#149 of 37439,305
Hard Prompts14021397โ€“1408#147 of 37416,236
Coding14331426โ€“1441#141 of 3696,915
Math13541343โ€“1365#174 of 3622,689
Creative Writing13491341โ€“1358#143 of 3725,154
Instruction Following13731366โ€“1379#147 of 37410,059
Chinese13841370โ€“1397#165 of 3442,046

Source: LMArena ยท CC BY 4.0 ยท Updated 2026-07-12 ยท Methodology โ†— ยท Ranks compare models within each category of the LMArena text leaderboard (style control). Scores come from third-party human preference evaluations, not from OFOX.

Frequently Asked Questions

GPT-4.1 Mini on Ofox.ai costs $0.4/M per million input tokens and $1.6/M per million output tokens. Pay-as-you-go, no monthly fees.