← All models

OpenAI

gpt-4.1-mini

openai/gpt-4.1-mini

Price per million tokens

Input
$0.506
Output
$2.026
Cache write
not offered
Cache read
$0.127

What you pay. It is what the tokens cost us to buy plus 20%, and your usage page shows what we paid beside what you paid on every request you send.

Limits

Context window
1,047,576 tokens
Max output
32,768 tokens
Images
supported

What it costs to run

WorkloadInputOutputCostPer 1,000 calls
Short chat turn1,000500$0.0015$1.52
Long document summary50,0002,000$0.0294$29.37
Agent step with tools20,0001,500$0.0132$13.17
1M in, 1M out1,000,0001,000,000$2.5320$2532.00

Calling it

const res = await client.chat.completions.create({
  model: "openai/gpt-4.1-mini",
  messages: [{ role: "user", content: "Hello" }],
});