← All models

gpt-4.1-mini

OpenRouter · chat model

gpt-4.1-mini is listed here as a chat model from OpenRouter. This page shows simple API pricing, token limits, and capability flags so you can compare it with similar options.

Input
$0.4000 / 1M tokens
Output
$1.6000 / 1M tokens
Cached input
$0.1000 / 1M tokens
Context
32.8K

Quick read

Best for

Use this page when you need a fast view of cost, context size, and supported features before testing the model in your own workload.

Things to verify

Always check the provider page for discounts, cache pricing, region rules, and any model limits that may not appear in public metadata.

Pricing

Item Price
Input
$0.4000 / 1M tokens
Output
$1.6000 / 1M tokens
Cached input
$0.1000 / 1M tokens
Embedding
$0.4000 / 1M tokens

Token limits

Context window
32.8K
Max input tokens
1.0M
Max output tokens
32.8K
Max tokens
32.8K

Capabilities

Capability Supported
Vision
Function calling
Parallel function calling
Tool choice
Prompt caching
Reasoning
Response schema
System messages
Audio input
Audio output
Web search
PDF input
Video input

Benchmarks

Most benchmark rows are attached to the base model family rather than this provider route. Open benchmark explorer

Benchmark Score Metric Scope Checked Source
SWE-bench Verified 23.6% accuracy (%) Base model: gpt-4.1-mini (GPT-4.1 mini) 2026-05-31 Link

Sources

Source links
Pricing data LiteLLM model cost map
Synced at 2026-05-28

Docs

Official docs

Similar models

This list is ranked by overall similarity. Use filters to emphasize the lens that matters most for the replacement you are making.

Comparing from
Model Cost Input shape Features Context Why it is close
gpt-4.1-mini
OpenRouter
In $0.4000 / 1M tokens
Out $1.6000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingParallel function callingTool choice
32.8K
Current model
Reference row

Overall blends cost, modality overlap, capabilities, and context.

Model Cost Input shape Features Context Why it is close
gpt-4.1-mini
Azure
In $0.4000 / 1M tokens
Out $1.6000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingParallel function callingTool choice
32.8K
Text + image covered
Overall 92%
gpt-4.1-mini-2025-04-14
Azure
In $0.4000 / 1M tokens
Out $1.6000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingParallel function callingTool choice
32.8K
Text + image covered
Overall 92%
GPT-4.1 mini
OpenAI
In $0.4000 / 1M tokens
Out $1.6000 / 1M tokens
fileimagetext pdf
Output: text
VisionFunction callingParallel function callingTool choice
32.8K
Text + image covered
Overall 86%
gpt-4.1-mini-2025-04-14
OpenAI
In $0.4000 / 1M tokens
Out $1.6000 / 1M tokens
fileimagetext pdf
Output: text
VisionFunction callingParallel function callingTool choice
32.8K
Text + image covered
Overall 86%
gpt-4.1-nano
OpenRouter
In $0.1000 / 1M tokens
Out $0.4000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingParallel function callingTool choice
32.8K
Same provider
Overall 85%
gpt-4.1
OpenRouter
In $2.0000 / 1M tokens
Out $8.0000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingParallel function callingTool choice
32.8K
Same provider
Overall 84%
gpt-4.1-nano
Azure
In $0.1000 / 1M tokens
Out $0.4000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingParallel function callingTool choice
32.8K
Text + image covered
Overall 77%
gpt-4.1-nano-2025-04-14
Azure
In $0.1000 / 1M tokens
Out $0.4000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingParallel function callingTool choice
32.8K
Text + image covered
Overall 77%
openai
OpenRouter
In $15.0000 / 1M tokens
Out $60.0000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingParallel function callingTool choice
100.0K
Same provider
Overall 70%
mistral-large-2512
OpenRouter
In $0.5000 / 1M tokens
Out $1.5000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingTool choice
262.1K
Same provider
Overall 70%
gemini-3.1-flash-lite-preview
OpenRouter
In $0.2500 / 1M tokens
Out $1.5000 / 1M tokens
fileimagetext audiopdf
Output: text
VisionFunction callingParallel function callingTool choice
65.5K
Same provider
Overall 67%
gemini-3.1-flash-lite
OpenRouter
In $0.2500 / 1M tokens
Out $1.5000 / 1M tokens
fileimagetext audiopdf
Output: text
VisionFunction callingParallel function callingTool choice
65.5K
Same provider
Overall 67%
claude-4.5-haiku
replicate
In $1.0000 / 1M tokens
Out $5.0000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingParallel function callingTool choice
N/A
Text + image covered
Overall 64%
claude-3-5-sonnet
vercel_ai_gateway
In $3.0000 / 1M tokens
Out $15.0000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingTool choicePrompt caching
8.2K
Text + image covered
Overall 62%
claude-3-5-sonnet-20241022
vercel_ai_gateway
In $3.0000 / 1M tokens
Out $15.0000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingTool choicePrompt caching
8.2K
Text + image covered
Overall 62%
gpt-4o
OpenRouter
In $2.5000 / 1M tokens
Out $10.0000 / 1M tokens
fileimagetext
Output: text
VisionFunction callingParallel function callingTool choice
4.1K
Same provider
Overall 59%
GLM-4.5
deepinfra
In $0.4000 / 1M tokens
Out $1.6000 / 1M tokens
fileimagetext
Output: text
Function callingTool choice
131.1K
Partial I/O overlap
Overall 55%
Missing image
Qwen3-Coder-480B-A35B-Instruct
deepinfra
In $0.4000 / 1M tokens
Out $1.6000 / 1M tokens
fileimagetext
Output: text
Function callingTool choice
262.1K
Partial I/O overlap
Overall 53%
Missing image
qwen3-vl-235b-a22b-instruct
dashscope
In $0.4000 / 1M tokens
Out $1.6000 / 1M tokens
fileimagetext
Output: unknown
VisionFunction callingTool choice
32.8K
Partial I/O overlap
Overall 46%
Missing text, image