Pricing at a glance
| Metric | GPT-5.4 Mini | Gemini 3.5 Flash |
|---|---|---|
| Provider | OpenAI | |
| Tier | Efficient | Efficient |
| Input / 1M tokens | $0.15 | $0.075 |
| Output / 1M tokens | $0.60 | $0.30 |
| Cached input / 1M | $0.075 | — |
| Context window | 128,000 tokens | 1,000,000 tokens |
Cost per 1,000 calls, by workload
Output tokens cost more than input tokens, so the “cheaper” model flips depending on how much your workload reads versus writes. Each row prices 1,000 identical calls:
| Workload | GPT-5.4 Mini | Gemini 3.5 Flash | Cheaper |
|---|---|---|---|
| Short chat turn1K in / 500 out — a typical assistant reply | $0.45 | $0.225 | Gemini 3.5 Flash (−50%) |
| RAG answer8K in / 800 out — retrieved context + grounded answer | $1.68 | $0.84 | Gemini 3.5 Flash (−50%) |
| Long-doc summary50K in / 2K out — summarize a long document | $8.70 | $4.35 | Gemini 3.5 Flash (−50%) |
| Bulk classification2K in / 50 out — label/route at high volume | $0.33 | $0.165 | Gemini 3.5 Flash (−50%) |
These are list prices for the exact token mix shown. Model your real traffic — your own token counts, prompt-cache hit rate, and monthly volume — in the LLM API Cost Calculator, or see where both land among all 25 models in the 2026 LLM API Pricing Study.
The verdict
On the workloads above, Gemini 3.5 Flash is the cheaper option more often (4 of 4 task shapes), driven mainly by its lower output rate ($0.30 vs $0.60 per 1M output). A simple chat turn at 1,000 calls is $0.225 on Gemini 3.5 Flash versus $0.45 on the other — a 50% difference that compounds at scale.
Don't ignore prompt caching
If your prompts share a large fixed prefix (a system prompt, retrieved docs, few-shot examples), caching changes the math. GPT-5.4 Mini bills cached input at $0.075/1M (vs $0.15 fresh), and Gemini 3.5 Flash does not list a cached-input rate. For input-heavy, repetitive traffic that can swing the cheaper choice — the calculator lets you set a cache-hit ratio.
Cost is one axis — not the whole decision
This page compares price only. It does not rank quality, latency, tool-use reliability, or rate limits, which differ between GPT-5.4 Mini and Gemini 3.5 Flash and often matter more than a few dollars per thousand calls. Use cost to size the budget, then validate the cheaper model on your own evals before you switch.
FAQ
Is GPT-5.4 Mini or Gemini 3.5 Flash cheaper?
Gemini 3.5 Flash wins on most workloads we model, e.g. $0.225 vs $0.45 per 1,000 short chat turns. Your real answer depends on your input/output ratio — output tokens are the expensive half.
Are these the official prices?
They reflect each provider's published list pricing, verified 2026-05-28, sourced from OpenAI and Google. Enterprise and committed-use discounts can lower them — always confirm on the provider's pricing page before budgeting.
Pricing verified 2026-05-28. Independent analysis, not affiliated with OpenAI or Google. Confirm live rates on each provider's official pricing page.