GPT-4.1 mini API cost calculator

GPT-4.1 mini (OpenAI) is priced at $0.4 per million input tokens, $0.1 for cached input, and $1.60 per million output tokens — half that through the Batch API. Verified 2026-09-17 against OpenAI's pricing page.

What GPT-4.1 mini costs for common workloads

WorkloadPer requestPer dayPer month
Support chatbotShort turns with a reused system prompt — 3k in, 400 out, 60% cached.$0.0013$6.50$195
RAG over documentsRetrieved context dominates — 12k in, 500 out, 30% cached.$0.0045$6.78$203
Coding agentGrowing context every turn — 20k in, 1.5k out, 80% cached.$0.0056$16.80$504
Batch classificationTiny prompts at volume through the Batch API — 800 in, 20 out.$0.0002$35.20$1,056

Its blast radius when an agent loops

The coding-agent workload above at 30 requests a minute — $10.08 an hour — priced at each point a team usually finds out:

Hourly alert

$10.08

Next morning

$242

After a weekend

$605

Monthly invoice

$7,258

Get the alert, not the invoice — start free

Run your own numbers on GPT-4.1 mini

Other OpenAI models