OpenAI: GPT-4.1 Mini · fastrouter
GPT-4.1 Mini delivers GPT-4o-level performance with significantly improved efficiency metrics across latency and cost. This mid-sized model maintains the full 1 million token context window of its larger counterpart while achieving impressive benchmark scores: 45.1% on hard instruction evaluations, 35.8% on MultiChallenge, and 84.1% on IFEval. Despite its reduced parameter count, GPT-4.1 Mini demonstrates robust coding capabilities (31.6% on Aider's polyglot diff benchmark) and strong vision understanding. The model reduces latency by nearly half and costs 83% less than GPT-4o, making it ideal for interactive applications with tight performance constraints, high-throughput services, and cost-sensitive enterprise deployments requiring responsive AI capabilities without compromising on quality.
Input, $/1M $0.40
Output, $/1M $1.60
Cache read $0.10
Cache write —
Context 1 047 576
Max output 32 768
Accepts files, images, text
Last checked 04.11.2026 12:00:14 UTC
Source provider's page
Price alerts
API
OpenAI-compatible API: the official OpenAI SDKs work with this base URL. Replace YOUR_API_KEY with your key from the provider.
| API base URL | |
|---|---|
| Endpoint | |
| Model id | |
curl
curl https://go.fastrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "openai/gpt-4.1-mini", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 256}'Python
import requests
r = requests.post(
"https://go.fastrouter.ai/api/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "openai/gpt-4.1-mini",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
},
)
print(r.json())JavaScript
const r = await fetch("https://go.fastrouter.ai/api/v1/chat/completions", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "openai/gpt-4.1-mini",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}),
});
console.log(await r.json());Request (JSON)
{
"model": "openai/gpt-4.1-mini",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}Response (JSON)
{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "openai/gpt-4.1-mini",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hi! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}The address is taken from the provider's model list; check it against the provider's documentation.
Source: AI Rate Card, https://airatecard.com/en/c/offer%3Afastrouter%7Copenai/gpt-4.1-mini, prices checked 2026-11-04; seller's page: https://fastrouter.ai/models/openai/gpt-4.1-mini
Technical details
ID: offer:fastrouter|openai/gpt-4.1-mini