Author’s note: This article isn’t about comparing “who’s cheaper”—it solves one problem: why the model you pick by sorting on unit price often doesn’t produce the bill you expected.
When it comes to selecting a Large Language Model, many people’s first step is to open the pricing page, sort text input unit prices from low to high, and grab the cheapest one. It’s a quick move, but what it gives you isn’t your bill—it’s just the first column of the price list. What actually determines your monthly spend lives outside that column: how output is billed, where thinking tokens get counted, how much cache hits can offset, and how unit price shifts once context crosses a tier threshold.
This isn’t another price comparison table. All listed prices in this article come from APIYI (apiyi.com) pricing data as of 2026-12-04; Gemini 4 Live unit prices come from the official model page. Every derivation is written out in full, so you can swap in your own token volumes and recalculate.
The core value: By the end of this article, you’ll have a task-based method for calculating total price—given input length, output length, daily call volume, and cache hit rate, you can directly compute the monthly cost of three candidate models instead of guessing based on unit-price rankings.

Three Cost Pitfalls in Large Language Model Selection: First Understand What Each One Is Actually Measuring
Looking at the three pitfalls together, their common thread is obvious: each one compresses a multidimensional billing structure into a one-dimensional number. Input unit price, output unit price, cache-read unit price, and over-threshold tier are four independent variables. Any ranking that looks at only one of them will be distorted.
| Cost pitfall | Common approach | What it misses | When it bites |
|---|---|---|---|
| Pitfall 1: Only looking at the text input unit price | Sort by input unit price from lowest to highest and take the first one | Output unit price, modality capabilities, context limit, availability | The candidate model simply can’t do the job, or can’t fit your input |
| Pitfall 2: Ignoring output and thinking tokens | Estimate the budget using “input unit price × total token count” | Output unit price is far higher than input unit price, and thinking tokens are billed as output | Tasks with long outputs, such as report generation, code generation, and long reasoning |
| Pitfall 3: Ignoring caching and context tiers | Assume the unit price stays linear with usage | Cache-read unit price, and the new tier after crossing a threshold | The same long document is sent repeatedly, or a single context approaches the upper limit |
Why these three pitfalls deserve their own discussion
In the several models cited in this article, the output unit price is 5 to 6 times the input unit price: hydrogen is 1.5 versus 7.5, neon is 3 versus 15, gpt-6.1-sol is 2 versus 10, and Gemini 4 Live is 0.75 versus 4.5. This means that as soon as your output tokens account for more than one-sixth of total tokens, the output line is already on equal footing with input. And in scenarios where you repeatedly ask questions about long documents, the input side also has the cache-read tier that can bring costs down—1.5 versus 0.075, a twentyfold relationship.
In other words, the right order for model selection isn’t “compare unit prices first, then test performance,” but “break down the task first, calculate the total cost, and only then look at unit prices.” The three sections below unpack this order.
Cost pitfall #1: Ranking by text-input price alone puts models that can’t do the job at the top
The first column on a pricing page is usually the text-input price, because it’s the number that’s easiest to line up side by side. For text-only models, that column works as a rough screening tool at best; for multimodal or real-time models, it’s barely comparable at all — because what you’re really comparing is two different product shapes.
Gemini 4 Live is the textbook counterexample. The official model page lists $0.75 for text input and $4.50 for text output per million tokens, with thinking billed as output. Look at the input column alone and it comes in lower than hydrogen at 1.5, gpt-6.1-sol at 2, and neon at 3 — first place. But it’s a real-time audio/video model: input limit of 131072 (about 130K tokens), output limit of 65536, no context caching, no structured output, no Batch.
| Item | Gemini 4 Live | gemini-4-hydrogen | gemini-4-neon | gpt-6.1-sol (under 272K tier) |
|---|---|---|---|---|
| Text input (USD per million tokens) | 0.75 | 1.5 | 3 | 2 |
| Text output (USD per million tokens) | 4.5 | 7.5 | 15 | 10 |
| Cache read (USD per million tokens) | Not supported | 0.075 | 0.15 | 0.1 |
| Context input limit | 131072 | See platform docs | See platform docs | Another tier above 272K |
| Structured output | Not supported | — | — | — |
| Available on APIYI | Not listed yet | Yes | Yes | Yes |
A low price for a different kind of product
Gemini 4 Live’s 0.75 isn’t “cheap” — it’s priced for a different use case: short context, real-time interaction, audio and video input as the main event. If your task is to push a document hundreds of thousands of characters long into the model over and over for information extraction, it shouldn’t be on your shortlist at all — not because it’s expensive, but because it can’t hold the document and there’s no cache to lean on.
That’s what makes this pitfall so sneaky: sorting by unit price won’t tell you “this model can’t do it.” It just quietly puts it at the top. By the time you’ve wired up the API, written the prompt, and got the demo running, you discover the context isn’t big enough or you can’t get structured output — and at that point, switching costs a lot more than a few lines of code. Neither APIYI’s (apiyi.com) pricing API nor its documentation master table lists gemini-4-live right now; the model isn’t available yet, and we’ll get it listed as soon as we can. Until then, real-time audio/video needs will have to be handled another way.
🎯 Technical tip: Put the context limit and structured-output support for each candidate model in the first row of your price comparison table, not in a footnote on the last row. These are hard gatekeeping criteria — if a model fails them, it doesn’t belong in the price comparison at all.

Cost pitfall #2: ignoring output and thinking tokens — your budget breaks on long responses
The second pitfall comes from the estimation formula itself. Plenty of budget spreadsheets are laid out like this: total tokens × input unit price. That formula is roughly fine when input accounts for 90% of the traffic, but the moment outputs get long it systematically underestimates, because output pricing runs 5 to 6 times the input price.
The Gemini 4 Live model page spells out something else clearly: thinking tokens are counted as output. In other words, the output unit price applies not just to the text you eventually see, but also to the part the model “thinks” through before it gives you an answer. For long-chain reasoning, multi-step calculations, and complex code generation, that portion is often non-trivial — and since it never shows up in your response, it’s easy to leave out of the math.
| Model | Input price | Output price | Cost per input | Cost per output | Total per call | 1000 calls/day |
|---|---|---|---|---|---|---|
| gemini-4-hydrogen | 1.5 | 7.5 | 0.0150 | 0.0150 | 0.0300 | 30.00 |
| gpt-6.1-sol (under 272K tier) | 2 | 10 | 0.0200 | 0.0200 | 0.0400 | 40.00 |
| gemini-4-neon | 3 | 15 | 0.0300 | 0.0300 | 0.0600 | 60.00 |
Let’s state the assumptions in the table above clearly: 10,000 input tokens and 2,000 output tokens per call, converted linearly in USD per million tokens, with caching and tiered pricing excluded. Under those assumptions, hydrogen’s per-call cost splits evenly between input and output. Push the output from 2,000 to 10,000 while input stays the same, and hydrogen’s per-call cost goes from 0.0300 to 0.0900 — output then accounts for over 80% of the total.
How to estimate output length accurately
Don’t eyeball it with “a few hundred words, give or take.” A workable approach: fire twenty real requests first, record the usage field from each response, take the median output token count, then multiply by 1.3 as your budget figure — because the distribution is usually right-skewed, and a handful of extra-long responses will noticeably pull the mean up. Read thinking tokens from the same field; no separate estimate needed.
Once you’ve estimated accurately, you’ll find that many candidates with “cheap unit prices” aren’t actually cheap. A model priced at 1.5 input / 7.5 output can end up costing more than a model at 2 input / 10 output on an output-heavy report-generation task — as long as the latter produces shorter, less padded output. That’s why sorting by a single column is meaningless: where your task falls on the input-to-output ratio determines which column you should be looking at.
Cost trap #3: Ignoring cache hits and context tiers — long-document scenarios inflate the total price
The third trap shows up once your usage ramps up. It has two sources: caching and tiering.
Context caching solves the problem of “the same long prefix getting sent in over and over.” Cache the parts that don’t change (system prompt, reference docs, codebase), and later hits get billed at the cache-read unit price. The table below assumes an 80,000-token document is sent in 20 times, with 2,000 tokens of output each round, priced at list rates:
| Model | Input cost without cache hit | Input cost with cache-read hit | Total without hit (incl. output) | Total with hit (incl. output) |
|---|---|---|---|---|
| gemini-4-hydrogen | 2.40 | 0.12 | 2.70 | 0.42 |
| gpt-6.1-sol | 3.20 | 0.16 | 3.60 | 0.56 |
| gemini-4-neon | 4.80 | 0.24 | 5.40 | 0.84 |
This table only uses the cache-read unit price. How cache writes and storage get billed falls outside the data scope of this article, so your actual bill will come in somewhat higher than the “with hit” column — check your platform’s pricing page for the specifics. But the conclusion is clear enough: in scenarios where you keep asking questions about a long document, hit rate is a variable that moves the total price by multiples, not a tweak in the decimals.
Tiers bite harder than caching
Tiered pricing is the other source. gpt-6.1-sol bills input at 2 and output at 10 below 272K tokens, then input at 4 and output at 15 above that. Take a 300,000-token codebase analyzed in full in a single pass with 3,000 tokens of output: at the over-threshold tier that’s 0.3 × 4 + 0.003 × 15 = $1.245. Squeeze the input under 272K and the same job costs 0.3 × 2 + 0.003 × 15 = $0.645. Same task — the only difference is whether it crossed that line, and input-side cost doubles.
One caveat worth spelling out: whether exceeding 272K applies the higher tier to the entire request or accumulates per segment isn’t detailed in the reference material. Confirm it on the platform’s pricing page before you buy — don’t budget on your own assumptions. Same goes for the cache-read unit price above 272K; go by the platform’s pricing page.

💡 Selection advice: If your workload has the “same long material gets asked about many times” trait, first confirm whether the candidate model supports context caching, then compare unit prices. Without caching support, a low unit price is just a number on paper.
LLM Selection Cost Accounting: A Quick Start for Per-Task Total Cost
Fold the previous three sections into a single formula and things become something you can actually calculate. Per-call cost = (tokens that miss the input cache × input unit price + tokens that hit the cache × cache-read unit price + output tokens × output unit price) ÷ 1000000; monthly cost = per-call cost × daily calls × 30. There are three variables you need to estimate first: input length, output length (including thinking), and cache hit rate.
The code below puts three models available on the platform on the same ruler — pure arithmetic, no network required:
# Monthly cost per task: input length, output length, daily calls, cache hit rate
PRICES = {
"gemini-4-hydrogen": {"in": 1.5, "out": 7.5, "cache": 0.075},
"gemini-4-neon": {"in": 3.0, "out": 15.0, "cache": 0.15},
"gpt-6.1-sol": {"in": 2.0, "out": 10.0, "cache": 0.1}, # tier below 272K
}
def monthly_cost(model, in_tok, out_tok, calls_per_day, hit_rate=0.0):
p = PRICES[model]
cached = in_tok * hit_rate
per_call = ((in_tok - cached) * p["in"]
+ cached * p["cache"]
+ out_tok * p["out"]) / 1e6
return per_call * calls_per_day * 30
for name in PRICES:
print(name, round(monthly_cost(name, 10_000, 2_000, 1000), 2))
The results line up with the estimate from the previous section: hydrogen at about 900, gpt-6.1-sol at about 1200, neon at about 1800 (USD/month). Change hit_rate to 0.8 and in_tok to 80000, and you’ll see the ranking shift — that’s exactly the point of computing total cost per task.
View the full implementation code (real calls + reading usage to back-compute cost)
from openai import OpenAI
# APIYI offers an OpenAI-compatible interface, so one key can call multiple mainstream models
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyi.com/v1",
)
with open("input.txt", encoding="utf-8") as f:
doc = f.read()
resp = client.chat.completions.create(
model="gemini-4-hydrogen",
messages=[
{"role": "system", "content": "你是一个严谨的技术文档助手,只输出要点。"},
{"role": "user", "content": "把下面这份文档压缩成 10 条要点:\n" + doc},
],
)
u = resp.usage
in_tok = u.prompt_tokens
out_tok = u.completion_tokens
# OpenAI-compatible interfaces usually report the cache hit count in prompt_tokens_details;
# whether that field is available depends on the platform and model, so treat it as 0 if missing
cached = 0
details = getattr(u, "prompt_tokens_details", None)
if details is not None:
cached = getattr(details, "cached_tokens", 0) or 0
per_call = ((in_tok - cached) * 1.5
+ cached * 0.075
+ out_tok * 7.5) / 1e6
print(f"输入 {in_tok} / 输出 {out_tok} / 命中缓存 {cached}")
print(f"本次成本约 {per_call:.6f} 美元")
Run this twenty times, take the median output tokens and the average cache hit rate, plug them back into the monthly cost function above — only then is your budget sheet actually built around your own task.
🚀 Quick start: If you’d rather not write a script first, you can grab a free trial quota directly at APIYI apiyi.com, then use the same key to call hydrogen, neon, and gpt-6.1-sol against the same batch of real requests, record the usage, and do the math afterward. Replacing assumptions with real data beats any comparison table.
| Your workload characteristics | Which number to look at first | Available candidates | Cost calculation notes |
|---|---|---|---|
| Short inputs, short outputs, high call volume | Sum of input and output unit prices | gemini-4-hydrogen | Start with the lowest-priced tier and calibrate against real usage |
| Very long outputs (reports, code, long reasoning) | Output unit price | Compare hydrogen vs. neon | Output can account for more than 80% of total cost |
| Repeated questions over the same long document | Cached-read unit price | All three models support cached reads | Hit rate is the dominant variable |
| A single context approaching or exceeding 272K | Unit price of the over-threshold tier | gpt-6.1-sol | Work out the over-tier cost first, then decide on a splitting strategy |
| Real-time audio/video interaction | Modality capability takes priority over price | None yet (Live isn’t listed) | Wait for it to be listed, or find another approach |
Large Language Model Selection FAQ
Q1: What is the “per-token price trap”?
It’s the misjudgment that comes from collapsing multi-dimensional billing into a one-dimensional ranking. A Large Language Model’s real cost is determined jointly by the input unit price, the output unit price, the cache-read unit price, and the tiered pricing brackets. If you rank models by text input price alone, the one you pick may not be able to do the job at all — or it may be more expensive on the other three dimensions.
Q2: Why is the output unit price more worth watching than the input unit price?
Because among the models cited in this article, the output unit price is 5 to 6 times the input unit price. As soon as output tokens make up more than one-sixth of total tokens, the output line item costs roughly as much as the input line item; and in tasks like report generation or code generation, output is often the main cost driver. On top of that, thinking tokens are billed as output — they never appear in the answer, but you pay for them anyway.
Q3: Gemini 4 Live has a lower input price, so why can’t I just pick it?
Because its low price corresponds to a different kind of product. It’s a real-time audio/video model with an input limit of 131072 (about 130K tokens) and an output limit of 65536, and it doesn’t support context caching, structured output, or Batch. Scenarios that repeatedly feed in long documents and need structured results are simply out of its reach — that has nothing to do with price. Also, gemini-4-live currently appears in neither APIYI’s pricing API nor the master documentation table; this model isn’t listed on the platform yet, and we’ll get it up as soon as we can.
Q4: How do I tell whether I’ll hit gpt-6.1-sol’s 272K tier?
First, measure the input length of your task and see how far it sits from 272K. Once you cross it, billing switches to 4 for input and 15 for output; in this article’s worked example, a task with 300K input costs $1.245 in the over-threshold tier, versus $0.645 if you squeeze it under 272K. If you really do need to cross the tier, first confirm whether the higher tier applies to the whole request or accumulates segment by segment, then decide whether to split the document or switch models.
Q5: How much does context caching actually save?
It depends on two things: how long the prefix you send in is, and how many times it gets reused. In this article’s worked example, an 80000-token document repeated 20 times drops the input side from 2.40 to 0.12 (hydrogen, counting only the cache-read unit price, excluding cache write and storage fees). That ratio won’t map directly onto your own scenario, but it’s enough to show that cache hit rate is an order-of-magnitude variable.
Q6: How can I quickly compare the real bills for these three models on the same platform?
Go to APIYI at apiyi.com, sign up for an account, and grab your API key plus the free testing quota. Then keep the exact same batch of requests and only switch the model parameter, calling gemini-4-hydrogen, gemini-4-neon, and gpt-6.1-sol separately. Jot down the usage returned by each call and plug it back into the cost formula from this article. Same batch of inputs, same key, same base_url — that’s the only way the comparison means anything.
Q7: What costs does this calculation leave out?
At least three kinds. First, the billing rules for cache writes and cache storage — this article only used the cache-read unit price. Second, the extra calls caused by failed retries and timeout re-sends. Third, the engineering cost of migrating between models, including prompt rewriting, output format adaptation, and regression testing. The first two can be measured on your bill; the third is often bigger than the bill itself.
Large Language Model Selection Cost Control: Key Takeaways
- Unit price isn’t cost: Input, output, cache reads, and pricing tiers — four variables that jointly determine your bill. Rank models by just one of them and the result is guaranteed to be misleading.
- Output is the main cost driver: For every model cited in this article, the output unit price is 5 to 6 times the input price, and reasoning tokens are billed as output as well.
- Hard requirements come before price: Models that don’t meet your needs on context limits, structured output, or modality capabilities shouldn’t even enter the price comparison.
- Cache hit rate is an order-of-magnitude variable: In scenarios where you repeatedly query long documents, confirm cache support first, then talk about unit price.
- Plan ahead for pricing tiers: gpt-6.1-sol has two different unit prices on either side of 272K. Work out the numbers before you cross that threshold — don’t build a budget on assumptions.
- Run first, calculate later: Calibrating input/output lengths and hit rates with the usage from real requests is more accurate than any comparison table. On APIYI apiyi.com, you can run a controlled comparison across three models with a single API key.
Summary: When Choosing a Large Language Model, Calculate the Total Price per Task
All three pitfalls boil down to one sentence: compress a multi-dimensional billing structure into a one-dimensional ranking, and the error hides in the columns you can’t see.
- Pitfall one is a hard-requirement problem: Looking only at input unit price puts models with insufficient context and no structured output at the top. Gemini 4 Live is a textbook case — it’s cheap because it serves a different use case.
- Pitfall two is an estimation-formula problem: Output unit price is 5 to 6 times input, and reasoning tokens are billed as output, so estimating your budget with “input unit price × total tokens” will systematically come out low.
- Pitfall three is a usage-structure problem: Caching cuts repeated long-prefix input by an order of magnitude, while pricing tiers switch to a whole new unit price right at thresholds like 272K.
There’s only one actionable approach: break the task down first, estimate input/output lengths and hit rates accurately, then use a single formula to compute monthly cost, and only then look at unit price. We recommend grabbing free credits on APIYI apiyi.com, running real requests against your candidate models with the same API key, and plugging the usage back into the formula — the number you get is the basis for your selection.
References
-
Gemini 4 Live official model page: the original source for unit pricing, context limits, and capability support
- Link:
aistudio.google.com/docs/models/gemini-4-live - Notes: text input at $0.75 and text output at $4.5 per million tokens, with thinking tokens counted inside the output; input limit of 131072 and output limit of 65536; no support for context caching, structured output, or Batch
- Link:
-
APIYI pricing API and documentation master table: the source for live unit prices of currently listed models
- Link:
apiyi.com - Notes: the unit prices for hydrogen, neon, and gpt-6.1-sol in this article match that table’s 2026-12-04 data; gemini-4-live isn’t on it yet
- Link:
-
OpenAI-compatible API
usagefield reference: reading input, output, and cache-hit tokens- Link:
platform.openai.com/docs/api-reference - Notes: used in this article’s complete example to pull token usage back out of the response and recalculate the cost of a single call
- Link:
Author: APIYI technical team
Technical discussion: You’re welcome to get in touch with us from the APIYI homepage. Pricing and the model list are governed by the platform’s pricing page and documentation center.
