Skip to content
Language: English (United States)

GPT-4.1 Mini

GPT-4.1 Mini is a mid-sized model delivering performance competitive with GPT-4o at substantially lower latency and cost.

Context Window
1M
In
$0.445per million tokens
Out
$1.78per million tokens

OpenAI

Model IDopenai/gpt-4.1-mini

Specifications

Context Window
1M
Modalities
text
Price
$0.445 in · $1.78 out, per million tokens
Model ID
openai/gpt-4.1-mini

Quick start

openai/gpt-4.1-mini

$0.445 in · $1.78 out, per million tokens

TypeScript
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'openai/gpt-4.1-mini',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →
10K100K1M$0.100$1.00$10.00$100.00

$8.01Bill a month

GPT-4.1 Mini costs 1.6× more for this mix.

GPT-4.1 Mini$8.011M
GPT-5.4 Nano$5.01400K

Use GPT-4.1 Mini via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.