Back to Models

GPT-4.1 Mini

openaiopenai/gpt-4.1-mini

Smaller, faster version of GPT-4.1. Excels at instruction following and tool calling with a 1M token context window and low latency without a reasoning step.

GPT-4.1 Mini is OpenAI's cost-efficient mid-tier model from the GPT-4.1 family, released April 2025. It delivers GPT-4o-class intelligence at roughly half the latency and one-sixth the cost, with a 1-million-token context window and improved instruction following.

In production it excels at instruction-tuned agent loops, long-context code analysis, customer-facing chat with tight latency SLAs, and structured data extraction. Its improved tool-calling reliability and diff-format compliance make it a strong choice for developer tooling pipelines.

Best for
  • β€’ Cost-sensitive agent loops combining tool calling, structured outputs, and long-context retrieval
  • β€’ Coding assistance with diff-format patches β€” reliable search/replace for large file edits
  • β€’ Customer-facing chat applications where sub-second latency matters
  • β€’ Long-document RAG pipelines β€” 1M tokens enable ingesting entire codebases or legal contracts
Reach for something else if
  • β€’ Complex multi-step reasoning β€” route to o3, o4-mini, or GPT-5 for hard math/code reasoning
  • β€’ Vision-heavy multimodal tasks β€” use GPT-5 or GPT-4.1 for better image understanding
  • β€’ Ultra-high throughput classification β€” GPT-4.1 Nano offers even lower latency and cost
Context Length
1.0M
Max Output
33K
Input Priceper 1M tokens
$0.432/ 1M tokens
Output Priceper 1M tokens
$1.73/ 1M tokens

Modalities

textimage→text

Capabilities

Vision

Pricing Breakdown

TypeRate
Input$0.432 / 1M tokens
Output$1.73 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatstop

Specifications

Release date2025-04-14openai.com β†—verified
Training cutoffJune 2024openai.com β†—verified
LicenseProprietary via OpenAI APIopenai.com β†—verified
Knowledge cutoffJune 2024openai.com β†—verified

Benchmarks

BenchmarkDistributionScoreSource
MMLU
Matches GPT-4oopenai.com β†—
GPQA Diamond
Matches GPT-4oopenai.com β†—
IFEval
GPT-4.1 family; exact Mini score not separately reported vs GPT-4o (81.0%)
~87.4%%openai.com β†—

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "openai/gpt-4.1-mini",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

Chat completion

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4.1-mini","messages":[{"role":"user","content":"Hello"}]}'

More from openai

Similar models

Cross-provider sibling models

News & changes

2025-04-14

GPT-4.1 family launched

OpenAI releases GPT-4.1, GPT-4.1 Mini, and GPT-4.1 Nano with 1M-token context, improved coding and instruction following, and significantly lower cost than GPT-4o. GPT-4.1 Mini matches GPT-4o on intelligence evals at half the latency.

re-authored by TheRouteropenai.com β†—

Frequently asked

How does GPT-4.1 Mini compare to GPT-4o Mini?

GPT-4.1 Mini surpasses GPT-4o Mini on coding, instruction following, and long-context tasks. It supports up to 1M tokens (vs 128K) and costs less than GPT-4o Mini on a per-token basis. It is positioned as the replacement for GPT-4o Mini in the API.

re-authored by TheRouteropenai.com β†—
Is GPT-4.1 Mini available through ChatGPT?

No. GPT-4.1 Mini is API-only. OpenAI states that GPT-4o's ChatGPT experience will continue to improve with the GPT-4.1 family's gains, but the models themselves are API-only.

re-authored by TheRouteropenai.com β†—
Does GPT-4.1 Mini support structured outputs (JSON schema)?

Yes. GPT-4.1 Mini supports response_format with JSON schema (strict mode), parallel tool calling, and all standard OpenAI capabilities through the TheRouter API.

re-authored by TheRouteropenai.com β†—
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release dateopenai.com β†—2026-05-28verified
Training cutoffopenai.com β†—2026-05-28verified
Licenseopenai.com β†—2026-05-28verified
Knowledge cutoffopenai.com β†—2026-05-28verified
MMLUopenai.com β†—2026-05-28verified
GPQA Diamondopenai.com β†—2026-05-28verified
IFEvalopenai.com β†—2026-05-28to verify
GPT-4.1 family launchedopenai.com β†—2026-05-28verified
How does GPT-4.1 Mini compare to GPT-4o Mini?openai.com β†—2026-05-28to verify
Is GPT-4.1 Mini available through ChatGPT?openai.com β†—2026-05-28to verify
Does GPT-4.1 Mini support structured outputs (JSON schema)?openai.com β†—2026-05-28to verify
Help & contact