OpenAI

GPT-4.1 Mini

Chat
openai/gpt-4.1-mini
CompareGet Started

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. Input is priced at $0.40/M tokens and output at $1.60/M, which makes it 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
AzureAzure
Supported Protocols
OpenAIopenai

Providers

AzureAzure
Input Tokens
$0.4/M
Output Tokens
$1.6/M
Cache Read
$0.1/M
Web Search
$0.035/R
Protocols
OpenAIopenai/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

LMArenaEvaluated 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
Overall138313791387#149 of 37439,305
Hard Prompts140213971408#147 of 37416,236
Coding143314261441#141 of 3696,915
Math135413431365#174 of 3622,689
Creative Writing134913411358#143 of 3725,154
Instruction Following137313661379#147 of 37410,059
Chinese138413701397#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.