GPT-4.1 mini API price

Last updated 2026-07-11 · model id openai/gpt-4.1-mini

Smaller, cheaper GPT-4.1 with the same 1M-token context. Use it through CheaperLLM's OpenAI-compatible API — one key that also unlocks 612 other models, with free credit on signup and no subscription.

Price per 1M tokens

CheaperLLM (pay-as-you-go)Upstream list rate*
Input, per 1M tokens$0.488$0.40
Output, per 1M tokens$1.95$1.60
Context window1,047,576 tokens
Subscription requiredNone — pay per token; free credit on signup

*Provider/aggregator list rate at snapshot time. CheaperLLM bills the live upstream rate plus a 22% platform fee, which funds the free signup credit, 211 always-free models, the built-in chat app and unified billing across 56 providers. Rates shown are a 2026-07-11 snapshot; the live rate applies at request time.

Get a free API key — no card

Call GPT-4.1 mini in 5 lines

from openai import OpenAI
client = OpenAI(base_url="https://api.cheaperllm.com/v1",
                api_key="YOUR_CHEAPERLLM_KEY")
r = client.chat.completions.create(model="openai/gpt-4.1-mini",
    messages=[{"role": "user", "content": "Hello!"}])

Or with curl:

curl https://api.cheaperllm.com/v1/chat/completions \
  -H "Authorization: Bearer $CHEAPERLLM_KEY" -H "Content-Type: application/json" \
  -d '{"model": "openai/gpt-4.1-mini", "messages": [{"role":"user","content":"Hello!"}]}'

FAQ

How much does the GPT-4.1 mini API cost on CheaperLLM?

$0.488 per 1M input tokens and $1.95 per 1M output tokens, billed pay-as-you-go. No monthly minimum or subscription (snapshot 2026-07-11).

Can I try GPT-4.1 mini for free?

Yes. New accounts get free credit with no card required, and it works on GPT-4.1 mini. There are also 211 always-free models in the same catalog.

How do I call GPT-4.1 mini with the OpenAI SDK?

Set base_url="https://api.cheaperllm.com/v1", use your CheaperLLM key, and pass model="openai/gpt-4.1-mini". Existing OpenAI SDK code needs no other changes.

Related model prices

GPT-4o · GPT-4o mini · GPT-4.1 · all model prices