<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: HAOHAOnovai</title>
    <description>The latest articles on DEV Community by HAOHAOnovai (@aiapikey).</description>
    <link>https://dev.to/aiapikey</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3816966%2F2a555027-747b-4539-878b-c6b4ef31efed.jpg</url>
      <title>DEV Community: HAOHAOnovai</title>
      <link>https://dev.to/aiapikey</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aiapikey"/>
    <language>en</language>
    <item>
      <title>Your LLM cost average is a lie when the output is bimodal</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Fri, 27 Nov 2026 17:02:54 +0000</pubDate>
      <link>https://dev.to/aiapikey/your-llm-cost-average-is-a-lie-when-the-output-is-bimodal-43bm</link>
      <guid>https://dev.to/aiapikey/your-llm-cost-average-is-a-lie-when-the-output-is-bimodal-43bm</guid>
      <description>&lt;p&gt;Two weeks ago I measured the same prompt on one model and got completion lengths of &lt;strong&gt;90, 80, 86, 147, 146&lt;/strong&gt; tokens. Two clusters, nothing in between.&lt;/p&gt;

&lt;p&gt;I called it a distribution and moved on. One observation is not a property, so this week I ran it again on a different model, on a different day, and got &lt;strong&gt;99, 107, 241, 244&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Same shape. Same empty middle.&lt;/strong&gt; Two clusters near 100 and 240, and no run anywhere between them.&lt;/p&gt;

&lt;p&gt;That turns this from an anecdote into something you have to design around.&lt;/p&gt;




&lt;h2&gt;
  
  
  What a bimodal output distribution does to every cost number
&lt;/h2&gt;

&lt;p&gt;Your bill is &lt;code&gt;prompt_tokens × input_price + completion_tokens × output_price&lt;/code&gt;. Only one term moves, and it does not move smoothly.&lt;/p&gt;

&lt;p&gt;On the second model, the four runs average &lt;strong&gt;172&lt;/strong&gt; completion tokens. &lt;strong&gt;No run produced anything near 172.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you budget from the mean, you budget for a value the model never returns.&lt;/li&gt;
&lt;li&gt;If you bill someone from the mean, you are charging them for a scenario that did not happen.&lt;/li&gt;
&lt;li&gt;If you compare two models by mean output length, you are comparing two averages of two different mixtures.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The spread between the clusters here is &lt;strong&gt;2.4×&lt;/strong&gt; (244 / 99). That is not variance around a centre. That is two behaviours.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The honest summary of a bimodal metric is its modes, not its mean.&lt;/strong&gt; "About 100, or about 240" is a true statement. "About 172" is not, and it is the one a dashboard will show you.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why 3-of-3 repeat checks will not catch it
&lt;/h2&gt;

&lt;p&gt;A reasonable reaction is to run the request three times and check for stability. I like that check, and it fails here for a specific reason: &lt;strong&gt;all three runs can land in the same cluster.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If three runs return 99, 107, and 101, your stability check reports a tight spread and passes. The model is behaving consistently — &lt;em&gt;in the low mode&lt;/em&gt;. The 2.4× path exists and you have simply not sampled it.&lt;/p&gt;

&lt;p&gt;So a repeat check answers "is this run reproducible", which is a real question. It does not answer &lt;strong&gt;"which modes does this system have"&lt;/strong&gt;, and those need different instruments:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Instrument&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Is a single run reproducible?&lt;/td&gt;
&lt;td&gt;3× repeat, compare spread&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Which modes exist, and how often?&lt;/td&gt;
&lt;td&gt;10–20 runs, histogram the quantity&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Did a change add or remove a mode?&lt;/td&gt;
&lt;td&gt;run both versions, compare histograms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The second and third are cheap. They just are not what a CI pipeline usually runs.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I would actually measure
&lt;/h2&gt;

&lt;p&gt;Pick the quantity that multiplies your price — for most chat workloads that is &lt;code&gt;completion_tokens&lt;/code&gt;. Run your own prompt 10 times. Print the sorted list, not the average.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tokens per run, sorted:  99  107  241  244
modes:                   ~103     ~243
gap between modes:       2.4x
runs in each mode:       2        2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two lines of arithmetic. If you see a gap with nothing in it, you have modes, and every summary statistic you compute from that point should be per-mode.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If your ten runs are smoothly spread instead&lt;/strong&gt;, that is also worth knowing: it means the behaviour depends on the prompt, and the bimodality in my data is about &lt;em&gt;this&lt;/em&gt; prompt shape. I have not isolated the trigger — I only know the shape repeats across models and days.&lt;/p&gt;




&lt;h2&gt;
  
  
  The uncomfortable part
&lt;/h2&gt;

&lt;p&gt;I have not explained &lt;strong&gt;why&lt;/strong&gt; the model chooses between two lengths. My guess is that it switches between two ways of ending an answer — a short one and a worked-out one — but I have not run the experiment that would confirm it, and I am not going to write a plausible mechanism I have not tested.&lt;/p&gt;

&lt;p&gt;What I can defend is the shape and its consequence: &lt;strong&gt;across two models and two weeks, the same prompt produced two clusters with an empty middle, and the mean of those runs described a value neither run produced.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you are estimating spend from an average output length, that number is a fiction for this workload. Measure the histogram once, then price the modes.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The probe script I used is plain Python with no dependencies — ten runs against any base URL, it prints tokens and latency per run. I run it on my own workload, not on published benchmarks, because the published numbers are averages too.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>performance</category>
    </item>
    <item>
      <title>Five numbers your LLM eval never prints, and what each one would change</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Thu, 26 Nov 2026 17:04:13 +0000</pubDate>
      <link>https://dev.to/aiapikey/five-numbers-your-llm-eval-never-prints-and-what-each-one-would-change-54cg</link>
      <guid>https://dev.to/aiapikey/five-numbers-your-llm-eval-never-prints-and-what-each-one-would-change-54cg</guid>
      <description>&lt;p&gt;An eval score is a numerator without a denominator. Most tools implement the metric correctly and then report a single number, which is like reporting a blood pressure as "120" without the second figure or the units. This post is about the five numbers that make a score interpretable, all of which are cheap to compute and almost none of which appear in a report.&lt;/p&gt;

&lt;p&gt;I did not run a survey to write this. I read a lot of practitioner threads this week, and the same five gaps kept showing up in otherwise careful work.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What the majority-class baseline scores
&lt;/h2&gt;

&lt;p&gt;Someone had a Czech coreference model stuck at 90% with labels they estimated were about 98% clean, and asked where the missing 8% was.&lt;/p&gt;

&lt;p&gt;Czech drops subjects. In a pro-drop language a large share of mentions have no overt antecedent, so "no antecedent" becomes the majority class. If that class is around 88 to 90% of mentions, then 90% is roughly what you get by predicting the majority class every time, and the model has learned a prior and stopped.&lt;/p&gt;

&lt;p&gt;The baseline is one line of code. Without it you cannot distinguish a model from a prior, and the 90% looks like a ceiling when it is actually a floor.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. How many cases were ungraded
&lt;/h2&gt;

&lt;p&gt;A red-team writeup reported the same agent, same settings, same afternoon, twice: 49.48 and 41.39. Eight points of movement with nothing changed.&lt;/p&gt;

&lt;p&gt;The tell was in the details: one run had 5 conversations the judge could not assess, the other had 16. Excluding ungraded, the two runs scored 67% and 64% pass rates. The eight-point gap was mostly the denominator moving, not the agent changing.&lt;/p&gt;

&lt;p&gt;A score computed over a changing set of assessable cases is not comparable to anything, including itself. Printing the ungraded count next to the score costs nothing and tells the reader whether they are looking at a measurement or an artifact.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The run-to-run spread with nothing changed
&lt;/h2&gt;

&lt;p&gt;This is the one that makes every other number falsifiable.&lt;/p&gt;

&lt;p&gt;If you have not measured the spread of an unchanged system, then every delta you report is consistent with noise, and there is no way for a reader to tell a real improvement from a lucky run. The practical consequence is that teams end up trusting whichever number moved last, which is a bad way to make decisions and a worse way to staff a project.&lt;/p&gt;

&lt;p&gt;Measuring it is easy: run the same thing three times and report the range. If the change you are proposing is smaller than that range, you do not have a result yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Confidence separated by correctness
&lt;/h2&gt;

&lt;p&gt;One team tested a decision model on 307 database-work examples and found a specific failure: when the right answer was not among the options, it picked the nearest one, often at high confidence. Their cases had confidence 0.98, 0.97 and 0.89 on answers that were wrong.&lt;/p&gt;

&lt;p&gt;That means the confidence score was not usable as a signal at all. It is high when the answer was on the menu and high when it was not.&lt;/p&gt;

&lt;p&gt;They added an "not on the list" option and replayed 14 requests: 13 correct with the exit, 11 without. Honest, and labelled indicative. But the stronger claim is available: plot the confidence distribution for correct answers against incorrect ones, before and after the fix. If the two overlap before and separate afterwards, the fix did not just add three correct answers, it made the confidence score mean something again. That is a much harder result to argue with than 13 against 11 on a single replay.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Cost per task, not cost per call
&lt;/h2&gt;

&lt;p&gt;A benchmark post highlighted a search API returning results in 0.17s per search, fastest of 25 products. The same post reported 13.3s per task.&lt;/p&gt;

&lt;p&gt;Those two numbers interact. If task time were search time alone, 13.3 over 0.17 implies roughly 78 searches per task, which would mean per-search latency is about one seventy-eighth of what the user waits through. The ratio between them, searches per task, is the conversion factor between a per-call metric and a per-user one, and it is the number that makes a comparison against a slower-per-search product honest.&lt;/p&gt;

&lt;p&gt;The same shape appears in pricing. A list price per million tokens is a per-call number. What the buyer experiences is dollars per finished task, which depends on tokens per call, calls per task, and how much of the input is cached. A table sorted by list price is sorted by the wrong quantity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this gap persists
&lt;/h2&gt;

&lt;p&gt;None of these are feature requests. Every one is a line in a report.&lt;/p&gt;

&lt;p&gt;The reason they persist is that a single number is a much better artifact for a changelog, a launch post, and a leaderboard than a five-line block with intervals in it. A score of 82 travels. "82 plus or minus 4 with 7% ungraded" does not.&lt;/p&gt;

&lt;p&gt;So the fix is not to wait for the tools. Print the five numbers next to the score, even in a footnote, and let the reader decide how much of the number they believe. If the numbers are embarrassing, that is information about the measurement, and it is better to have it before shipping than after.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short version
&lt;/h2&gt;

&lt;p&gt;If you only add one thing, add the run-to-run spread on an unchanged system. It is the number that makes all the others checkable, and it is the one most likely to change your mind about a result you were excited about.&lt;/p&gt;

</description>
      <category>llm</category>
    </item>
    <item>
      <title>The cache read ratio decides your agent bill, not the list price</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Wed, 25 Nov 2026 09:17:12 +0000</pubDate>
      <link>https://dev.to/aiapikey/the-cache-read-ratio-decides-your-agent-bill-not-the-list-price-1c35</link>
      <guid>https://dev.to/aiapikey/the-cache-read-ratio-decides-your-agent-bill-not-the-list-price-1c35</guid>
      <description>&lt;p&gt;If you compare models by list price per 1M tokens, you are comparing the wrong number for anything agent-shaped. Here is a measurement that makes the case, from a thread I followed on r/LLMDevs where three people posted their own numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  The measurement
&lt;/h2&gt;

&lt;p&gt;One practitioner instrumented a real long-running coding session: &lt;strong&gt;233 requests&lt;/strong&gt;, median input &lt;strong&gt;~148,000 tokens&lt;/strong&gt;, median output &lt;strong&gt;~500 tokens&lt;/strong&gt; — roughly &lt;strong&gt;230:1 input to output&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Of that input, &lt;strong&gt;91% was cache reads, 9% cache writes, and fresh input was close to zero.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That single ratio changes what a bill is made of. Fresh input is the expensive part; cache reads are typically a small fraction of it. When 91% of your input is cache reads, &lt;strong&gt;your effective input price is set by the cache read ratio, not by the headline input price.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The ratio is not a constant across providers
&lt;/h2&gt;

&lt;p&gt;This is the part that breaks comparisons. Two vendors can have the same list input price and very different cache behaviour. In the same thread, one person noted that one model's &lt;strong&gt;cache read is priced at 19% of its input price&lt;/strong&gt;, while for a major Western provider it is &lt;strong&gt;around 5%&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A 4x difference in the multiplier applied to 91% of your input is not a rounding error. It can invert the ranking.&lt;/p&gt;

&lt;p&gt;Concretely, in that thread the person who built a cost calculator reported that &lt;strong&gt;a model with a higher list price came out cheaper for an agent workload than two cheaper-listed alternatives&lt;/strong&gt; — purely because of the cache read ratio. Same list price table, opposite conclusion, once the cache column was filled in.&lt;/p&gt;

&lt;p&gt;And a second crossover: &lt;strong&gt;the ranking flips at about 40% output share&lt;/strong&gt; on one comparison, and at &lt;strong&gt;about 24%&lt;/strong&gt; on another once hosting was added as a variable. Those are wide margins, not knife-edge ties. If your workload sits anywhere between 24% and 40% output share, &lt;strong&gt;"which model is cheaper" has no answer that does not first settle the cache and hosting questions.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a synthetic preset can hide this entirely
&lt;/h2&gt;

&lt;p&gt;The most useful correction in that thread came from someone reporting a &lt;strong&gt;2.4x&lt;/strong&gt; saving from caching, where another had claimed &lt;strong&gt;10x&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Both were right, and the difference was the workload shape:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;agent preset&lt;/th&gt;
&lt;th&gt;real long session&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;input&lt;/td&gt;
&lt;td&gt;12k&lt;/td&gt;
&lt;td&gt;148k&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;output&lt;/td&gt;
&lt;td&gt;1.5k&lt;/td&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;what dominates the bill&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;output&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;input&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;caching impact&lt;/td&gt;
&lt;td&gt;modest (~2.4x)&lt;/td&gt;
&lt;td&gt;very large&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In a preset with 12k in and 1.5k out, output dominates, so caching input cannot help much — 2.4x is the honest number. In a real agent session where context has grown to 148k and each turn emits ~500 tokens, &lt;strong&gt;input dominates, and the cache read ratio is the single biggest lever in the bill.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So a preset that looks reasonable can invert the conclusion.&lt;/strong&gt; The preset said "caching is a 2.4x thing". The real workload says it is the main thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to add to a calculator
&lt;/h2&gt;

&lt;p&gt;Two fields, both measured per request rather than assumed:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Repeated-prefix share&lt;/strong&gt; — what fraction of the input is a stable prefix that can be cached.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache read price ratio&lt;/strong&gt; — the cache read price as a fraction of the fresh input price, per provider.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then a third field that is optional but useful for agents: &lt;strong&gt;fresh input per turn&lt;/strong&gt;. Not total context — the uncached part. That is the portion you actually pay full price for, and it can be an order of magnitude smaller than the context size.&lt;/p&gt;

&lt;p&gt;A reconciliation worth keeping in mind: a preset of "12k in / 1.5k out" and a measured session of "148k in / 500 out" can both be true, because one measures &lt;strong&gt;raw context&lt;/strong&gt; and the other effectively measures &lt;strong&gt;billable input&lt;/strong&gt;. With 91% cache reads, 148k raw leaves about 13k of fresh input — which is almost exactly the 12k the preset assumed. &lt;strong&gt;The preset was not wrong; it was denominated differently.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;These are three practitioners' numbers, not a benchmark.&lt;/strong&gt; One long session, one calculator, one thread.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache behaviour is provider-specific and changes.&lt;/strong&gt; Read prices, write prices, and cache lifetimes all move. A cache read ratio measured last month may not hold.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The 40% and 24% crossovers are specific to particular model pairs&lt;/strong&gt; on particular dates. Read them as evidence that the flip is real and wide, not as constants.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I did not verify these numbers independently.&lt;/strong&gt; They are reported measurements from people running the workload, which is more than a list price table gives you, but less than a controlled test.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache writes are not free.&lt;/strong&gt; A 5-minute cache write tier can cost more than fresh input, so short-lived caches can lose money. The break-even depends on how many reads you get per write — and that is another field a calculator should ask for.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;The pattern across all of this: a per-token price is a property of a model, but a bill is a property of a workload. The fields that decide the bill — prefix share, cache read ratio, fresh input per turn — are workload properties, and almost no price table asks for them.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
    </item>
    <item>
      <title>Same prompt, 5 runs, 65% different cost: why per-request price is a distribution</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:03:46 +0000</pubDate>
      <link>https://dev.to/aiapikey/same-prompt-5-runs-65-different-cost-why-per-request-price-is-a-distribution-400c</link>
      <guid>https://dev.to/aiapikey/same-prompt-5-runs-65-different-cost-why-per-request-price-is-a-distribution-400c</guid>
      <description>&lt;p&gt;Every LLM price table gives you one number: $X per 1M tokens. You multiply by your token estimate and get a monthly bill. That arithmetic has a hidden assumption — that a request costs roughly the same every time you make it.&lt;/p&gt;

&lt;p&gt;It doesn't. Here is the same prompt, same model, five identical calls, back to back.&lt;/p&gt;

&lt;h2&gt;
  
  
  The measurement
&lt;/h2&gt;

&lt;p&gt;Model: a small fast text model. Price: $0.14 per 1M input tokens, $0.28 per 1M output. Prompt: 47 tokens, identical string every run.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;run&lt;/th&gt;
&lt;th&gt;prompt tokens&lt;/th&gt;
&lt;th&gt;completion tokens&lt;/th&gt;
&lt;th&gt;latency&lt;/th&gt;
&lt;th&gt;cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;47&lt;/td&gt;
&lt;td&gt;90&lt;/td&gt;
&lt;td&gt;1752 ms&lt;/td&gt;
&lt;td&gt;$0.00003178&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;47&lt;/td&gt;
&lt;td&gt;80&lt;/td&gt;
&lt;td&gt;1184 ms&lt;/td&gt;
&lt;td&gt;$0.00002898&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;47&lt;/td&gt;
&lt;td&gt;86&lt;/td&gt;
&lt;td&gt;1512 ms&lt;/td&gt;
&lt;td&gt;$0.00003066&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;47&lt;/td&gt;
&lt;td&gt;147&lt;/td&gt;
&lt;td&gt;1339 ms&lt;/td&gt;
&lt;td&gt;$0.00004774&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;47&lt;/td&gt;
&lt;td&gt;146&lt;/td&gt;
&lt;td&gt;1244 ms&lt;/td&gt;
&lt;td&gt;$0.00004746&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Cost range: &lt;strong&gt;$0.00002898 to $0.00004774 — a 64.7% spread on identical input.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The prompt side is perfectly stable at 47 tokens. All the variance is on the output side. That is the whole mechanism: &lt;strong&gt;generation length varies, and output tokens are usually priced 2x input.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that surprised me: it is bimodal, not noisy
&lt;/h2&gt;

&lt;p&gt;Look at the completion counts again: &lt;strong&gt;90, 80, 86, 147, 146.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That is not a smooth distribution around a mean. That is two clusters — roughly 85 and roughly 146 — with nothing in between. Same prompt, same model, same temperature, five calls.&lt;/p&gt;

&lt;p&gt;This matters for capacity planning. If your variance were smooth, you could budget median + 20% and be fine. With two discrete regimes, a single request either costs about $0.000030 or about $0.000047, and &lt;strong&gt;the regime is decided by the model, not by anything you control.&lt;/strong&gt; A p50-based estimate is wrong for roughly half your calls, and not by a little.&lt;/p&gt;

&lt;p&gt;I do not have a complete explanation. The most plausible one is that the answer shape has more than one natural stopping point — a terse form and a longer form — and the sampler picks one each time. Whatever the cause, it is measurable and it is not rare.&lt;/p&gt;

&lt;h2&gt;
  
  
  The other source of variance: retries
&lt;/h2&gt;

&lt;p&gt;I ran a second model in the same batch — one of the free-tier models on the same endpoint. Results:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;run&lt;/th&gt;
&lt;th&gt;outcome&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;timeout&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;HTTP 429 — provider says the model is under heavy load&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3-5&lt;/td&gt;
&lt;td&gt;HTTP 429 — rate limit reached&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Zero of five attempts succeeded.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A free tier is rate-limited precisely because it is free, so this is not a scandal — but it breaks a specific kind of accounting. If your comparison is "free model: $0" versus "paid model: $X", you are comparing &lt;strong&gt;$0 per successful call&lt;/strong&gt; against &lt;strong&gt;$X per successful call&lt;/strong&gt;, while ignoring that the free one costs you attempts, latency, and application complexity. The honest unit is &lt;strong&gt;cost per successful task&lt;/strong&gt;, and that number needs the retry count in the denominator.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do about it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Price on a distribution, not a point.&lt;/strong&gt; Run the same workload N times, take median and p90, budget against p90. One measurement tells you what one call cost once.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Model output length as a variable, not a constant.&lt;/strong&gt; If you are estimating from a fixed "tokens per request" assumption, you are estimating a distribution with its mean. For a bimodal model, the mean is the one number no request actually costs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Count retries in the denominator.&lt;/strong&gt; Cost per attempt and cost per accepted task are different numbers, and the gap between them is where budgets die.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Re-measure when the provider changes something.&lt;/strong&gt; Latency and length distributions move without notice. A single measurement ages badly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproducing this
&lt;/h2&gt;

&lt;p&gt;The measurement above came from a small script that runs the same prompt N times against any OpenAI-compatible endpoint, reads back the &lt;code&gt;usage&lt;/code&gt; object, and prices it with input and output separately:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 probe_pricing.py \
  --base-url https://your-endpoint.example.com \
  --api-key-env YOUR_KEY_ENV \
  --models model-a,model-b \
  --runs 5 \
  --prices prices.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nothing in it is vendor-specific. The only input it needs is a price file with separate &lt;code&gt;in&lt;/code&gt; and &lt;code&gt;out&lt;/code&gt; rates — which, notably, is one more field than most published price feeds give you.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Five runs is a small sample.&lt;/strong&gt; The bimodality is clearly visible, but I would not quote a p90 from n=5. Run 30 if you are sizing real capacity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One prompt.&lt;/strong&gt; A "list exactly three differences" prompt has a natural three-part structure; that may be what creates two stopping points. Longer or more open prompts may behave differently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;My prices are list prices.&lt;/strong&gt; Batch discounts, cache hits, and committed-use pricing will move the absolute numbers. They will not remove the variance — output length is still variable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The failure was one model on one endpoint on one night.&lt;/strong&gt; Rate limits are time-dependent. Treat it as a demonstration of the mechanism, not a verdict on any provider.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;The script is &lt;code&gt;probe_pricing.py&lt;/code&gt;, standard library only. Run it against your own workload before you trust any per-request number, including the ones in this post.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
    </item>
    <item>
      <title>Why a 100% benchmark score is a red flag, not a win</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Mon, 23 Nov 2026 10:06:23 +0000</pubDate>
      <link>https://dev.to/aiapikey/why-a-100-benchmark-score-is-a-red-flag-not-a-win-epd</link>
      <guid>https://dev.to/aiapikey/why-a-100-benchmark-score-is-a-red-flag-not-a-win-epd</guid>
      <description>&lt;p&gt;A model hit 100% on a benchmark this week and it was reported as a milestone. It is not one. It is a benchmark that has stopped being able to tell you anything, and the moment it saturates is the moment to retire the subtest rather than quote the number.&lt;/p&gt;

&lt;p&gt;Here is what actually happens, in the order it matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  A saturated benchmark has no headroom left
&lt;/h2&gt;

&lt;p&gt;A test discriminates over a range. Once the top model reaches the maximum score, every model below it is compressed into a smaller interval than the test was designed to resolve, and the ordering within that interval is noise. The ranking still prints. It just no longer measures anything.&lt;/p&gt;

&lt;p&gt;Worse, the number that used to mean "this model is strong" now means "the ceiling was reached". Those are different claims, and only one of them is about the model.&lt;/p&gt;

&lt;h2&gt;
  
  
  The other benchmarks are the tell
&lt;/h2&gt;

&lt;p&gt;A model that saturates a format-heavy benchmark while falling on a benchmark that is harder to optimise for is showing a specific signature. Contamination or overfitting to the task format produces exactly that: the tuned-for test goes to the top, the adversarial or deliberately weird one goes down.&lt;/p&gt;

&lt;p&gt;So when you see "hits 100% on X, drops from #9 to #15 on Y", the second number is the informative one. The first is an artefact of the test running out of difficulty.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two models from one lab moving in opposite directions is a training story
&lt;/h2&gt;

&lt;p&gt;If one model from a lab gains and another from the same lab loses on the same benchmark, that is not a capability message about either model. It is a statement about what each was trained for. You cannot read "model A got smarter" from a table where model B got worse, unless you also believe the lab got worse at training.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do instead
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Retire a subtest when it saturates.&lt;/strong&gt; A benchmark at ceiling provides zero bits of information per run, at full cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Report the distance to ceiling, not just the score.&lt;/strong&gt; "97% on a test where the top is 100%" is a very different claim from "97% on a test where the top is 91%".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;When a score hits the maximum, ask what the discarded difficulty was.&lt;/strong&gt; If nobody can name a task that would still fail, the test is finished.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Track the spread, not the mean.&lt;/strong&gt; Once the top several models cluster within the run-to-run variance, the ranking is a coin flip with extra steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The general form
&lt;/h2&gt;

&lt;p&gt;This is the same failure as any saturated metric: it was designed when the population was spread out, and it keeps reporting after the population has compressed against the ceiling. Benchmark authors notice and write new tests. Readers do not notice, because 100% looks like a win.&lt;/p&gt;

&lt;p&gt;The honest sentence is not "model X achieved 100%". It is "model X achieved 100%, and that test can no longer distinguish between the top N models, so treat the leaderboard below this line as unordered."&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The measurements behind this piece are in the Nov prices and latency indices; the benchmark discussion is from public results reported this week.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
    </item>
    <item>
      <title>How to read LLM latency numbers: TTFT, sample count, and why one measurement is worthless</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Sun, 22 Nov 2026 10:05:27 +0000</pubDate>
      <link>https://dev.to/aiapikey/how-to-read-llm-latency-numbers-ttft-sample-count-and-why-one-measurement-is-worthless-2p7l</link>
      <guid>https://dev.to/aiapikey/how-to-read-llm-latency-numbers-ttft-sample-count-and-why-one-measurement-is-worthless-2p7l</guid>
      <description>&lt;p&gt;If you have ever picked a model because it "felt faster", you have probably been reading noise.&lt;/p&gt;

&lt;p&gt;Across four measurement windows against the same API, one pattern kept showing up: &lt;strong&gt;the spread inside three consecutive calls is larger than the difference between most adjacent models in a latency leaderboard.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Below is the fourth window, measured 2026-11-22 03:01 UTC. Three consecutive samples per model, about 1.5 s apart, &lt;code&gt;stream: true&lt;/code&gt;, &lt;code&gt;max_tokens: 16&lt;/code&gt;, prompt "Reply with exactly: OK". The number is time to first token, in seconds.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;model&lt;/th&gt;
&lt;th&gt;samples&lt;/th&gt;
&lt;th&gt;median&lt;/th&gt;
&lt;th&gt;spread&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;deepseek-v4-flash&lt;/td&gt;
&lt;td&gt;0.237 / 0.198 / 0.322&lt;/td&gt;
&lt;td&gt;0.237&lt;/td&gt;
&lt;td&gt;1.6x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deepseek-v4-pro&lt;/td&gt;
&lt;td&gt;0.254 / 0.251 / 0.360&lt;/td&gt;
&lt;td&gt;0.254&lt;/td&gt;
&lt;td&gt;1.4x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;qwen3.8-max&lt;/td&gt;
&lt;td&gt;3.068 / 1.766 / 1.187&lt;/td&gt;
&lt;td&gt;1.766&lt;/td&gt;
&lt;td&gt;2.6x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;minimax-m3&lt;/td&gt;
&lt;td&gt;1.363 / 2.556 / 1.977&lt;/td&gt;
&lt;td&gt;1.977&lt;/td&gt;
&lt;td&gt;1.9x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;kimi-k2.8-preview&lt;/td&gt;
&lt;td&gt;3.735 / 4.789 / 1.671&lt;/td&gt;
&lt;td&gt;3.735&lt;/td&gt;
&lt;td&gt;2.9x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;glm-4.7-flash&lt;/td&gt;
&lt;td&gt;429 / 429 / 429&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three findings, in order of how much they should change your reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The within-model spread beats the between-model difference
&lt;/h2&gt;

&lt;p&gt;qwen3.8-max and minimax-m3 have medians of 1.77 s and 1.98 s, a 12% difference, and internal spreads of 2.6x and 1.9x. "Which of these two is faster" is not answerable from this data. The noise inside one model is an order of magnitude larger than the gap between the two.&lt;/p&gt;

&lt;p&gt;kimi-k2.8-preview is the clearest case: 1.671 s to 4.789 s across three calls placed one second apart. A single probe of that model could honestly report "fast" or "slow" and be wrong about half the time.&lt;/p&gt;

&lt;p&gt;A TTFT figure therefore needs at least three samples plus a reported median and range. One number is not a measurement, it is a draw from a distribution.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A transient looks exactly like a trend
&lt;/h2&gt;

&lt;p&gt;Earlier windows for deepseek-v4-pro, same probe:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;timepoint&lt;/th&gt;
&lt;th&gt;median TTFT&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;T1&lt;/td&gt;
&lt;td&gt;0.20 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;4.99 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T3&lt;/td&gt;
&lt;td&gt;4.39 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;0.254 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two consecutive windows showed roughly a 22x degradation, and then it recovered fully.&lt;/p&gt;

&lt;p&gt;I reported T2 and T3 as a 22x swing. With T4 in hand the honest description is "a transient episode that recovered". Anyone reading only T2 and T3 would have concluded the model was persistently degraded, and would have been wrong.&lt;/p&gt;

&lt;p&gt;That generalises: one bad reading is not evidence of unreliability, and two consecutive bad readings are still not a trend if you stop measuring after them.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. A capacity signal can hide inside a latency table
&lt;/h2&gt;

&lt;p&gt;glm-4.7-flash returned HTTP 429 on all three probes, one and a half seconds apart, with no other traffic from the same key. That is not a latency number. It is a capacity or quota finding wearing the costume of a missing row. It also happened to be one of the five models the feed lists as free, and a free model is the one most likely to be saturated.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do with this
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Report the median, the range, and n. A number without all three is a rumour.&lt;/li&gt;
&lt;li&gt;Do not rank the middle of a latency leaderboard. The middle is inside the noise.&lt;/li&gt;
&lt;li&gt;Keep the timestamp in the artefact. "Fast" with no measurement window does not survive a week.&lt;/li&gt;
&lt;li&gt;Treat a missing row as data. A 429 is a finding, not a gap.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The reproduction is four lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"model"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;id&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"stream"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"max_tokens"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="s2"&gt;"messages"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Reply with exactly: OK"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Measure the time to the first SSE chunk that is not &lt;code&gt;[DONE]&lt;/code&gt;. Repeat at least three times. Report the median and the range.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>api</category>
    </item>
    <item>
      <title>How to tell a real AI model price from a placeholder (26 of 116 are the same number)</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Sat, 21 Nov 2026 09:03:33 +0000</pubDate>
      <link>https://dev.to/aiapikey/how-to-tell-a-real-ai-model-price-from-a-placeholder-26-of-116-are-the-same-number-14mm</link>
      <guid>https://dev.to/aiapikey/how-to-tell-a-real-ai-model-price-from-a-placeholder-26-of-116-are-the-same-number-14mm</guid>
      <description>&lt;p&gt;A price list looks like a column of facts. In the feed I audited for this post, it is fact on most rows and a default value on some of them — and the defaults look exactly like the facts.&lt;/p&gt;

&lt;p&gt;That is the failure mode worth writing about, because an empty cell makes you suspicious and a filled-in default does not.&lt;/p&gt;

&lt;h2&gt;
  
  
  The finding
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;116 models. 26 of them carry the identical price: &lt;code&gt;1.54&lt;/code&gt;.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Twenty-six coincidences would be a story about the market. This is not that, because the duplication is not spread randomly across the table — it covers &lt;strong&gt;every single product of several providers&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;Models in the feed&lt;/th&gt;
&lt;th&gt;Priced at exactly 1.54&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Kuaishou Kling&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;6 (all)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PixVerse&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3 (all)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vidu Shengshu&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2 (all)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MiniMax&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;8&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tencent&lt;/td&gt;
&lt;td&gt;many&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When a provider's entire product line lands on one number, the most economical explanation is that the number is a fallback: the scraper could not find a price, so the field got a default. &lt;code&gt;1.54&lt;/code&gt; is that default.&lt;/p&gt;

&lt;h2&gt;
  
  
  The evidence that is not "the number is repeated"
&lt;/h2&gt;

&lt;p&gt;Repeated values happen for real reasons. The test I would apply is the &lt;strong&gt;distribution across categories and providers&lt;/strong&gt;, not the count.&lt;/p&gt;

&lt;p&gt;The cleanest single statistic: &lt;strong&gt;the Audio category has 11 models with a numeric price and only 2 distinct prices.&lt;/strong&gt; A distribution like that cannot come from real pricing — no vendor prices eleven products across two values.&lt;/p&gt;

&lt;p&gt;Meanwhile Chat/LLM has &lt;strong&gt;47 priced models and 41 distinct prices&lt;/strong&gt;, which is what real data looks like.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Models with a price&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Distinct prices&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;Verdict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Chat / LLM&lt;/td&gt;
&lt;td&gt;47&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;41&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;usable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3D&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;mostly usable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Video&lt;/td&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;td&gt;few&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14 of 22 are 1.54&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audio&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;9 of 11 are 1.54&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  A second default value, one column over
&lt;/h2&gt;

&lt;p&gt;The same feed has a second, independent default problem in the &lt;code&gt;unit&lt;/code&gt; field.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;48 of 116 rows (41.4%) have the unit &lt;code&gt;flat&lt;/code&gt;&lt;/strong&gt; — which is not a billing unit. And its distribution is diagnostic:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;flat&lt;/code&gt; share&lt;/th&gt;
&lt;th&gt;Real billing unit for that category&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Chat / LLM&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;71%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;per token&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audio&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;73%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;per token / per second&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Embedding&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;67%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;per token&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Video&lt;/td&gt;
&lt;td&gt;5%&lt;/td&gt;
&lt;td&gt;per second / per token / per generation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Image&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;per image — &lt;code&gt;per generation&lt;/code&gt; is correct here&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3D&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;per generation — 9 of 9 correct&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;flat&lt;/code&gt; fires in exactly the categories whose real unit is per-token, and never in the categories where per-generation is genuinely right. That is not noise either — it is the same pattern: &lt;strong&gt;when the source page does not state a unit, the field falls back to a default, and the pages that do not state a unit are precisely the per-token ones.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Both defects share one structure
&lt;/h2&gt;

&lt;p&gt;Two fields, two defaults, one mechanism:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;unit&lt;/code&gt; missing → &lt;code&gt;flat&lt;/code&gt;. It looks like a unit.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;price_usd&lt;/code&gt; missing → &lt;code&gt;1.54&lt;/code&gt;. It looks like a price.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The real failure mode of a data feed is not emptiness. Empty is loud. The failure mode is a field that is populated with a plausible default, because then the table is complete and wrong in the same glance.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Publishing 26 defaults as 26 real prices means a 116-row table lies on 22% of its cells — and every one of those cells looks normal.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is actually usable
&lt;/h2&gt;

&lt;p&gt;Cross-referencing both defects, the rows you can act on today are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;3D: all 9 rows.&lt;/strong&gt; One unit (9 of 9 &lt;code&gt;per generation&lt;/code&gt;), 6 distinct prices. This is the cleanest column in the table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chat / LLM: 12 rows.&lt;/strong&gt; The 4 labelled &lt;code&gt;per 1M tokens&lt;/code&gt; plus the 8 labelled &lt;code&gt;per generation&lt;/code&gt;. The remaining 35 carry &lt;code&gt;flat&lt;/code&gt; and should be treated as unknown.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Image, Audio, Video: not currently safe for cross-vendor comparison.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to check any feed for this, including this one
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Count distinct values per group, not repeated values.&lt;/strong&gt; Group by provider and by category. If one provider has many products and one price, that is a default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compare distinct-price counts to row counts.&lt;/strong&gt; 11 rows and 2 distinct values is not a market; 47 rows and 41 values is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check whether the "unit" column is a unit.&lt;/strong&gt; &lt;code&gt;flat&lt;/code&gt;, &lt;code&gt;variable&lt;/code&gt;, &lt;code&gt;custom&lt;/code&gt;, &lt;code&gt;contact us&lt;/code&gt; are not units and cannot be compared.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look for the default in the extreme rows.&lt;/strong&gt; If the max value of a category appears once per provider across unrelated products, it is probably the cap, not a price.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why publish this
&lt;/h2&gt;

&lt;p&gt;An index is worth something only if the reader can tell which rows to trust. If I told you this feed had 116 prices, you would reasonably assume 116 prices. The honest number is closer to &lt;strong&gt;21 rows you can act on&lt;/strong&gt;, and saying so is what makes the other rows worth reading.&lt;/p&gt;

&lt;p&gt;Notably, both defects are &lt;strong&gt;one rule each&lt;/strong&gt;, not 48 and 26 individual corrections. The &lt;code&gt;flat&lt;/code&gt; fallback and the &lt;code&gt;1.54&lt;/code&gt; fallback are two lines of default-handling in the ingestion path. Data quality work is usually described as a checklist; this one is arithmetic on the defaults.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;All figures from the public feed at &lt;code&gt;generated_at 2026-11-20 19:00 UTC&lt;/code&gt;, 116 rows, &lt;code&gt;platform_markup_pct: 0&lt;/code&gt;. The &lt;code&gt;1.54&lt;/code&gt; conclusion rests on whole-provider coverage, not on the value itself. No de-duplication or estimation was applied to any number in this post.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
      <category>ai</category>
      <category>showdev</category>
    </item>
    <item>
      <title>How to read an LLM API price list: 4 billing units in 116 models</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Fri, 20 Nov 2026 08:06:01 +0000</pubDate>
      <link>https://dev.to/aiapikey/how-to-read-an-llm-api-price-list-4-billing-units-in-116-models-1hbh</link>
      <guid>https://dev.to/aiapikey/how-to-read-an-llm-api-price-list-4-billing-units-in-116-models-1hbh</guid>
      <description>&lt;p&gt;A price list looks like a column you can sort. It is usually four different columns stacked on top of each other.&lt;/p&gt;

&lt;p&gt;In the feed I pulled for this post, the &lt;strong&gt;Chat / LLM&lt;/strong&gt; category contains &lt;strong&gt;49 models across four billing units&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Unit as printed&lt;/th&gt;
&lt;th&gt;Models in that unit&lt;/th&gt;
&lt;th&gt;What it actually means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;flat&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;35&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Ambiguous. In practice almost all of these are &lt;strong&gt;per 1M tokens&lt;/strong&gt; — see the defect note below&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;per generation&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;8&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A per-request price, not a per-token price&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;per 1M tokens&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Unambiguous&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Free&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Rate-limited free tier&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sort that column and you are comparing a per-token number against a per-request number. The sort is still a sort; it just is not a price ranking.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four units, and when each is honest
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Per 1M tokens.&lt;/strong&gt; The only unit that scales with how much work you send. Right for chat, completion, reasoning, embeddings. If you are comparing chat models, this is the axis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Per request / per generation.&lt;/strong&gt; Right when the provider's cost is dominated by a fixed amount of work: one image, one video clip, one 3D asset. Not right for chat, because two chat requests can differ by 50x in token count.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Per image / per second / per megapixel.&lt;/strong&gt; Media-specific. Per-megapixel is the only one that compares cleanly across models that output different resolutions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Free.&lt;/strong&gt; A price, not a unit. Requires knowing the rate limit to be comparable at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  The defect, stated plainly
&lt;/h2&gt;

&lt;p&gt;The feed this post is based on labels &lt;strong&gt;35 Chat/LLM models as &lt;code&gt;flat&lt;/code&gt;&lt;/strong&gt;. Those models are billed &lt;strong&gt;per 1M tokens&lt;/strong&gt;; the label is wrong. This is the same defect that has been recorded before, and it is still present in the current feed.&lt;/p&gt;

&lt;p&gt;It matters because "flat" reads as &lt;em&gt;per request&lt;/em&gt; to anyone scanning the table. A reader who sorts by price and compares a &lt;code&gt;flat&lt;/code&gt; chat model against a &lt;code&gt;per generation&lt;/code&gt; one is comparing two numbers that were never on the same axis.&lt;/p&gt;

&lt;p&gt;Two more inconsistencies in the same feed, for completeness:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Embedding&lt;/strong&gt;: 4 models &lt;code&gt;flat&lt;/code&gt;, &lt;strong&gt;2 models &lt;code&gt;per image&lt;/code&gt;&lt;/strong&gt; — an embedding model priced per image is almost certainly a labelling error, since embeddings are billed by input tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Video&lt;/strong&gt;: 11 models &lt;code&gt;per 1M tokens&lt;/code&gt;, 6 &lt;code&gt;per generation&lt;/code&gt;, 3 &lt;code&gt;per image&lt;/code&gt; — all three can be legitimate for video, which means video prices from different rows are &lt;strong&gt;not comparable without converting&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I am publishing the defect rather than the fix because the defect is the interesting part: a price table's failure mode is not being wrong, it is being &lt;em&gt;sortable&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to compare anyway
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Group by unit before you sort.&lt;/strong&gt; Never rank across units. Split the table by unit, rank inside each group, and only then decide whether the groups are substitutes for your use case.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Convert to the thing you actually buy.&lt;/strong&gt; If you are building a chat feature, the unit you care about is &lt;strong&gt;cost per completed task&lt;/strong&gt;, not cost per token. Those differ because of retries:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cost per completed task = (cost of all attempts) / (tasks that succeeded)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A model at $0.50/M tokens that needs three attempts costs the same as a model at $1.50/M that gets there in one. Per-token prices cannot tell you which is which; only your own pass rate can.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;State the measurement window for anything time-dependent.&lt;/strong&gt; Price is stable enough to publish with a date. Latency is not. In a three-timepoint probe on the same platform, one model measured:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;TTFT median&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;03:10&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.20s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;05:15&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4.99s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;07:00&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4.39s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Same model, same endpoint, same prompt. That is &lt;strong&gt;22x&lt;/strong&gt; across four hours, while a sibling model from the same provider stayed inside 0.24–0.50s the whole time. Any latency number published without a measurement window is not comparable to anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  A worked comparison from today's feed
&lt;/h2&gt;

&lt;p&gt;Chat/LLM, price as printed (unit caveats as above):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;price&lt;/th&gt;
&lt;th&gt;Printed unit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cheapest&lt;/td&gt;
&lt;td&gt;Hy4 Flash&lt;/td&gt;
&lt;td&gt;0.035&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;per generation&lt;/code&gt; ← should be per-1M-tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Hy-MT2 Lite&lt;/td&gt;
&lt;td&gt;0.043&lt;/td&gt;
&lt;td&gt;&lt;code&gt;flat&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Doubao Seed 2.0 Lite&lt;/td&gt;
&lt;td&gt;0.075&lt;/td&gt;
&lt;td&gt;&lt;code&gt;flat&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Qwen3.8 Max&lt;/td&gt;
&lt;td&gt;1.840&lt;/td&gt;
&lt;td&gt;&lt;code&gt;flat&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Kimi-K3.1-Pro&lt;/td&gt;
&lt;td&gt;2.000&lt;/td&gt;
&lt;td&gt;&lt;code&gt;flat&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Most expensive&lt;/td&gt;
&lt;td&gt;Kimi-K3.1-Pro HighSpeed&lt;/td&gt;
&lt;td&gt;4.000&lt;/td&gt;
&lt;td&gt;&lt;code&gt;flat&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Spread: 114.3x.&lt;/strong&gt; Directionally that is the real story — a chat model choice spans two orders of magnitude. But do not read it as "model A is exactly 3.2x model B": six of these six rows carry a unit label I have just told you not to trust.&lt;/p&gt;

&lt;p&gt;Category spreads, all units mixed, same caveat:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;n priced&lt;/th&gt;
&lt;th&gt;Spread (max ÷ min)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Chat / LLM&lt;/td&gt;
&lt;td&gt;47&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;114.3x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audio&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;106.2x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Image&lt;/td&gt;
&lt;td&gt;17&lt;/td&gt;
&lt;td&gt;56.6x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Video&lt;/td&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;td&gt;28.5x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3D&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;3.0x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Embedding&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;1.4x&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;The shape is the useful finding.&lt;/strong&gt; Chat and audio span two orders of magnitude; 3D and embedding span 1.4–3x. Price is a real lever for chat and almost irrelevant for 3D and embeddings — which is the opposite of how much time people spend comparing them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Group by unit before ranking.&lt;/strong&gt; Four units live inside the Chat category alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;flat&lt;/code&gt; is not a unit.&lt;/strong&gt; On this feed it means per-1M-tokens for chat and is unresolved elsewhere.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per-token price does not predict cost per completed task.&lt;/strong&gt; Retries are in the second number and not the first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never publish or trust a latency figure without its measurement window.&lt;/strong&gt; 22x in four hours on one route.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spread is a shape, not a ranking.&lt;/strong&gt; 114x in chat tells you where the decision is worth making; it does not tell you which model is 3x another.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;em&gt;Prices: public feed, &lt;code&gt;generated_at 2026-11-19 19:00 UTC&lt;/code&gt;, 116 models, 0% platform markup. Latency: 3 samples per model per timepoint, single region, streaming TTFT, median. Feed: &lt;code&gt;https://aiapi-pro.com/china-ai-leaderboard.json&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
      <category>api</category>
      <category>showdev</category>
    </item>
    <item>
      <title>How to benchmark LLM latency: 3 measurement traps I hit on 116 models</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Thu, 19 Nov 2026 07:04:24 +0000</pubDate>
      <link>https://dev.to/aiapikey/how-to-benchmark-llm-latency-3-measurement-traps-i-hit-on-116-models-26mc</link>
      <guid>https://dev.to/aiapikey/how-to-benchmark-llm-latency-3-measurement-traps-i-hit-on-116-models-26mc</guid>
      <description>&lt;p&gt;I ran a streaming TTFT probe against one OpenAI-compatible endpoint at three different times on the same day, same prompt, same server. Here is what the first measurement would have told me, and what the third one did.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;model                 03:10 median   05:15 median   07:00 median
deepseek-v4-flash         0.41s          0.50s          0.24s
deepseek-v4-pro           0.20s          4.99s          4.39s
glm-4.7-flash             3.74s          1.26s         80.46s
kimi-k3                   2.26s          1.68s          3.16s
hy4-flash                 1.00s          0.92s          1.12s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;deepseek-v4-pro&lt;/code&gt; measured 0.20s at 03:10 and 4.39s four hours later. Same model, same endpoint, same prompt, same 16 max tokens. That is a &lt;strong&gt;22x&lt;/strong&gt; difference and it is not a typo.&lt;/p&gt;

&lt;p&gt;If I had published the 03:10 number, it would have been accurate and useless. This post is about the three ways that happens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap 1: n=1
&lt;/h2&gt;

&lt;p&gt;A single request is not a measurement, it is a sample. The &lt;code&gt;glm-4.7-flash&lt;/code&gt; row above is the reason to care: 0.61 / 3.74 / 4.29 in one session, 8.45 / 1.26 / 0.70 in another, 80.46 / 52.15 / timeout in a third. A single probe of that model can return anything from 0.6s to 80s depending on which request you happen to catch.&lt;/p&gt;

&lt;p&gt;The cheap fix is three requests and a median, which costs almost nothing and immediately separates the two populations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;hy4-flash&lt;/code&gt;: 1.00 / 0.92 / 0.91 — spread 0.09s. Boring, publishable.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;glm-4.7-flash&lt;/code&gt;: 8.45 / 1.26 / 0.70 — spread 7.75s. Not a latency number, a distribution with a long right tail.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;A model whose median is 0.6s and whose p90 is 4.3s feels broken to users far more often than its median suggests.&lt;/strong&gt; If your table only publishes the median, you have hidden the number that predicts the complaint.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap 2: measuring a model instead of a route
&lt;/h2&gt;

&lt;p&gt;The 22x swing on &lt;code&gt;deepseek-v4-pro&lt;/code&gt; is the interesting one because it did not happen to &lt;code&gt;deepseek-v4-flash&lt;/code&gt; on the same vendor. Flash stayed between 0.24s and 0.50s all day. So the swing is not "DeepSeek is slow today", it is specific to that model's instance or queue.&lt;/p&gt;

&lt;p&gt;That distinction is only visible if you measure more than one model per vendor and more than one model per category. A benchmark that measures "the API" and reports one number per provider will average a stable route with a degraded one and call the result a provider comparison.&lt;/p&gt;

&lt;p&gt;What I would report instead, per model:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;median over n&amp;gt;=3&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;spread&lt;/strong&gt; (max - min), because the spread is the user-visible risk&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;the time of measurement&lt;/strong&gt;, because without it the number is not comparable to anything&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The third item is the one everybody drops, and it is the one that makes a public leaderboard defensible or not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap 3: assuming the catalogue is honest
&lt;/h2&gt;

&lt;p&gt;Latency only matters for models that answer. I sent one &lt;code&gt;max_tokens: 1&lt;/code&gt; request to every id in a 116-entry catalogue and classified the responses by error type. 52 answered, 40 correctly complained that they are image/video/audio models and told me which endpoint to use instead, and:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2 entries were listed but not usable.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;minimax-text-01
  HTTP 404  "[MiniMax] The model \"MiniMax-Text-01\" is no longer available. (2069)"
             type=upstream_provider_error

minimax-m2.5
  HTTP 402  "The free trial quota for the service has been exhausted and postpaid billing is ..."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first is the worst kind of catalogue defect: a reader sees 116 models, picks one, and gets a 404 that says the model was retired upstream. The second is cheaper to fix but the same category — listed, and unusable for a reason the listing does not mention.&lt;/p&gt;

&lt;p&gt;Two out of 116 is 1.7%, which sounds small until you notice that a reader who picks either one concludes the whole catalogue is stale.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The audit costs one request per model and no generation spend&lt;/strong&gt;, which is the point: you can check liveness with deliberately invalid requests, because a dead model fails differently from a wrong-endpoint model. &lt;code&gt;404 no longer available&lt;/code&gt; and &lt;code&gt;400 use /v1/images/generations instead&lt;/code&gt; are different answers and both are informative.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Measure on a schedule, not once.&lt;/strong&gt; Three timepoints on one day already changed the conclusion. A daily three-sample probe would have caught the &lt;code&gt;deepseek-v4-pro&lt;/code&gt; regression the first morning it appeared instead of four hours into it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Publish the spread next to the median.&lt;/strong&gt; It is one extra number and it is the one that predicts complaints.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Verify liveness separately from latency.&lt;/strong&gt; They fail differently and the check costs almost nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Write the measurement time into the table header.&lt;/strong&gt; I have read probably a hundred latency comparisons and the ones that omit it are, without exception, the ones I cannot use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits, stated plainly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;n=3 per model per timepoint.&lt;/strong&gt; Enough to show the variance is real; not enough to publish a p90, which is what you would actually want to alert on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One server, one network path.&lt;/strong&gt; TTFT is client-location dependent, and this probe originates from the same region the endpoint is hosted in. Numbers from a different continent would be larger and differently shaped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One endpoint.&lt;/strong&gt; The 22x swing may be specific to this route, and treating it as a general claim about that vendor would be exactly the mistake this post is about.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The catalogue audit covered text endpoints only.&lt;/strong&gt; The 40 non-text models were verified only as far as their error messages, not by running them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The honest summary: the first number I measured was wrong in a way I could not have detected without measuring again later. That is an argument for scheduling measurements, not for measuring more carefully once.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>api</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Cost per completed task is the only number that survives a workload</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Wed, 18 Nov 2026 05:05:48 +0000</pubDate>
      <link>https://dev.to/aiapikey/cost-per-completed-task-is-the-only-number-that-survives-a-workload-lj1</link>
      <guid>https://dev.to/aiapikey/cost-per-completed-task-is-the-only-number-that-survives-a-workload-lj1</guid>
      <description>&lt;p&gt;Every leaderboard ranks models by price per million tokens. That number is easy to measure and almost useless for a decision, because the thing you actually buy is a completed task, and the gap between the two is set by your workload rather than by the price sheet.&lt;/p&gt;

&lt;p&gt;Three places the gap shows up, each with real numbers from the last month of arguments about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Trials are not attempts
&lt;/h2&gt;

&lt;p&gt;An eval scorecard that reports pass rate, cost, tokens and duration is already better than most. It is still missing the column that decides the purchase.&lt;/p&gt;

&lt;p&gt;Suppose a target scores 3/3 at $0.0003 per run. Another scores 3/3 at $0.0003 per run. Same pass rate, same reported cost — and one of them needed two internal retries on every run to get there. The first is three times cheaper per completed task than the second, and the scorecard as printed cannot tell you which one you are looking at.&lt;/p&gt;

&lt;p&gt;Pass rate over trials measures reliability. Attempts per trial is what reliability costs. They are different columns and only one of them is usually printed. Recording attempts is nearly free, because the loop already knows when it retried.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Per-generation is not per-accepted
&lt;/h2&gt;

&lt;p&gt;The same compression happens with generative output. A vendor announces 100 ten-second videos for $5 — five cents a clip — and it is true.&lt;/p&gt;

&lt;p&gt;It is also not the price you pay. If one seed in six produces something usable for a specific brief, the shot costs thirty cents. A loose prompt gets more usable variants per seed than a precise one, so the same model is cheap for mood boards and expensive for a shot you can describe exactly. The headline price is a property of the model; the accepted-clip price is a property of the brief.&lt;/p&gt;

&lt;p&gt;At five cents a clip the bottleneck also stops being money and becomes review time. A hundred clips still costs an afternoon to watch. The metric that decides which tool wins is accepted clips per hour, not clips per dollar.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The metric that retires with the failure
&lt;/h2&gt;

&lt;p&gt;The most expensive version of this is a metric that disappears when you fix the thing it measured.&lt;/p&gt;

&lt;p&gt;Replace prose-and-parse with typed outputs and format failures drop to zero. The parse-error alert goes quiet, the dashboard turns green, and the remaining failure mode — a well-formed, schema-valid, wrong answer — has no metric at all. Nothing throws. Nothing queues. The ticket goes to the wrong team looking exactly like a correct routing.&lt;/p&gt;

&lt;p&gt;The failure did not drop. It lost its instrument.&lt;/p&gt;

&lt;p&gt;This is not an argument against typed outputs; it is an argument for naming the replacement metric before shipping the removal. When the loud failure goes away, the thing you were measuring still happens — you just stopped being able to count it. Retiring the parser without adding a confidence threshold or a spot-check is how a measurable problem becomes an invisible one, and schema validation makes it feel like the problem was solved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Any rate you quote needs its bound
&lt;/h2&gt;

&lt;p&gt;The reason these gaps survive scrutiny is that most reported numbers are point estimates with no denominator attached.&lt;/p&gt;

&lt;p&gt;A clean example: zero regressions in 16 runs. The tempting summary is "0% regression rate". The honest one uses the rule of three — with zero events in &lt;em&gt;n&lt;/em&gt; trials, the 95% upper bound on the rate is about 3/&lt;em&gt;n&lt;/em&gt;, so 16 clean runs rules out rates above roughly 19%. That is still useful. It just cannot be multiplied by a cost per regression to produce a figure that looks precise.&lt;/p&gt;

&lt;p&gt;The sample size then follows from the claim you want to make: about 30 clean runs to rule out 10%, about 300 to rule out 1%, and thousands to say anything about one in a thousand. At that point you have to sample deliberately, because production will not hand you the evidence fast enough.&lt;/p&gt;

&lt;p&gt;The same logic applies to a confidence interval that straddles a floor — 74.3% measured against a 75% threshold is a breach by point estimate and an inconclusive result by interval. A gate that reports "inconclusive, would need N runs to resolve" is doing more for its users than one that reports fail, because the second trains people to ignore it within a month.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do instead
&lt;/h2&gt;

&lt;p&gt;Two habits cover most of it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Report the decision number next to the price number.&lt;/strong&gt; Cost per completed task, per accepted clip, per passing run — with the workload that produced it stated. If the workload is not stated, the number is marketing rather than evidence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When you remove a failure mode, name the metric that replaces it first.&lt;/strong&gt; The removal is the easy part. Keeping the instrument is the part that determines whether anyone notices the next regression.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Numbers above come from published vendor pricing, a public eval scorecard, and two months of arguing about this with people who run these systems for a living. All of them are per-attempt or per-run figures unless stated otherwise — which is the whole point.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
      <category>api</category>
      <category>ai</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Chinese LLM API pricing in 2026: 114 models and an 85x spread</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Tue, 17 Nov 2026 04:11:33 +0000</pubDate>
      <link>https://dev.to/aiapikey/chinese-llm-api-pricing-in-2026-114-models-and-an-85x-spread-18oh</link>
      <guid>https://dev.to/aiapikey/chinese-llm-api-pricing-in-2026-114-models-and-an-85x-spread-18oh</guid>
      <description>&lt;p&gt;If you are choosing a Chinese model right now, the honest description of the problem is this: &lt;strong&gt;the cheapest and the most expensive option, reachable through the same OpenAI-compatible endpoint and billed in the same unit, differ by 85x.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;$0.17 versus $14.50 per million output tokens.&lt;/p&gt;

&lt;p&gt;That is not a rounding difference you can ignore while you "just ship something". It is the difference between a feature that costs you $200/month and one that costs you $17,000/month for the same token volume.&lt;/p&gt;

&lt;p&gt;So I pulled the numbers. All of them are measured from a single &lt;code&gt;GET /v1/models&lt;/code&gt; response plus the published price table, read on &lt;strong&gt;2026-11-17&lt;/strong&gt;. Nothing here is copied from a vendor's landing page.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the catalogue
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Models reachable through one API key&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;114&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Priced per token&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;57&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;— with an output price (chat / generation)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;51&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;— embeddings (input price only)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;6&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Billed per generation (video / image / 3D / speech / music)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;59&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output price range&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0.17 → $14.50 per 1M = 85x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Input price range&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0.043 → $2.90 per 1M&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Cheapest 10 by output price
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;Input $/1M&lt;/th&gt;
&lt;th&gt;Output $/1M&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;deepseek-v4-flash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;DeepSeek&lt;/td&gt;
&lt;td&gt;0.080&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.170&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hy-mt2-lite&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tencent Hunyuan&lt;/td&gt;
&lt;td&gt;0.043&lt;/td&gt;
&lt;td&gt;0.172&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;glm-5.3-flash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ZhiPu&lt;/td&gt;
&lt;td&gt;0.080&lt;/td&gt;
&lt;td&gt;0.280&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;mimo-v2.6-flash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Xiaomi&lt;/td&gt;
&lt;td&gt;0.100&lt;/td&gt;
&lt;td&gt;0.280&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hy-mt2-plus&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tencent Hunyuan&lt;/td&gt;
&lt;td&gt;0.072&lt;/td&gt;
&lt;td&gt;0.287&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;glm-5.3-flashx&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ZhiPu&lt;/td&gt;
&lt;td&gt;0.120&lt;/td&gt;
&lt;td&gt;0.400&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;doubao-seed-2.0-lite&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ByteDance&lt;/td&gt;
&lt;td&gt;0.075&lt;/td&gt;
&lt;td&gt;0.450&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;qwen-plus&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Alibaba Cloud&lt;/td&gt;
&lt;td&gt;0.185&lt;/td&gt;
&lt;td&gt;0.530&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;qwen3-omni-flash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Alibaba Cloud&lt;/td&gt;
&lt;td&gt;0.150&lt;/td&gt;
&lt;td&gt;0.600&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;minimax-m3.1-flash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;MiniMax&lt;/td&gt;
&lt;td&gt;0.150&lt;/td&gt;
&lt;td&gt;0.600&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Most expensive 6 by output price
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;Input $/1M&lt;/th&gt;
&lt;th&gt;Output $/1M&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;kimi-k3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Moonshot&lt;/td&gt;
&lt;td&gt;2.900&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14.500&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Moonshot&lt;/td&gt;
&lt;td&gt;2.000&lt;/td&gt;
&lt;td&gt;10.000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;kimi-k2.7-code-highspeed&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Moonshot&lt;/td&gt;
&lt;td&gt;2.073&lt;/td&gt;
&lt;td&gt;8.610&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Alibaba Cloud&lt;/td&gt;
&lt;td&gt;1.840&lt;/td&gt;
&lt;td&gt;5.515&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;doubao-seed-evolving&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ByteDance&lt;/td&gt;
&lt;td&gt;0.920&lt;/td&gt;
&lt;td&gt;4.620&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;glm-5.3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ZhiPu&lt;/td&gt;
&lt;td&gt;1.250&lt;/td&gt;
&lt;td&gt;4.000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The cheap end is spread across four providers. The top three all come from one. That matters for failure modes as much as for price: &lt;strong&gt;a single provider's outage is a bigger slice of your catalogue than you think.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The unit trap: 57, 51, 6, 59
&lt;/h2&gt;

&lt;p&gt;This is where most price comparisons quietly go wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;57 models are priced per token.&lt;/strong&gt; But 6 of those are embeddings — they have an input price and &lt;strong&gt;no output price at all&lt;/strong&gt;, because they return a vector, not a completion. Comparing an embedding model's price to a chat model's output price is a category error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;59 models are billed per generation&lt;/strong&gt; — video, image, 3D, speech, music. Those are quoted per clip or per image. Put them in a per-token table and the resulting number means nothing.&lt;/p&gt;

&lt;p&gt;And &lt;strong&gt;114 is the count of reachable models&lt;/strong&gt;, while 57 is the count of per-token ones. Those are answers to different questions, and mixing them produces confident nonsense.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turning prices into cost
&lt;/h2&gt;

&lt;p&gt;List price is the starting point. Three things move the real number, roughly in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Retries.&lt;/strong&gt; A model needing 1.3 attempts per task costs 30% more than its list price. On agent workloads this dominates every difference in the tables above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache discounts.&lt;/strong&gt; Cached input is often billed at a fraction of list. A long, stable system prompt can change the effective price substantially — and asymmetrically between providers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Output length.&lt;/strong&gt; Output typically costs 3–20x the input price. Two models with identical input prices can differ 2x on real cost depending on how verbose they are on &lt;em&gt;your&lt;/em&gt; task.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Which is why the only comparison that survives contact with production is &lt;strong&gt;cost per completed task on your own workload&lt;/strong&gt; — not price per million tokens.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this page deliberately does not tell you
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;It contains no latency data.&lt;/strong&gt; Latency is the half of cost that decides whether a model is usable at all, and it cannot be read off a price table. Measuring it honestly needs controlled conditions: same region, same concurrency, same input length, repeated at different times of day. That is a measurement programme, not an afternoon of reading price tables — and a comparison that skips it and calls the result "cost" is telling half the story.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the numbers were produced
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Model count: &lt;code&gt;GET /v1/models&lt;/code&gt;, 114 entries, read 2026-11-17.&lt;/li&gt;
&lt;li&gt;Prices: the published per-model table, normalised to &lt;strong&gt;USD per 1M tokens&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Unit classification: "per token" if input or output price is non-zero; "per generation" if both are zero.&lt;/li&gt;
&lt;li&gt;The table is refreshed weekly; the snapshot date is the authoritative "as of".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a number here is wrong, the correct fix is a corrected table — not a rephrased claim. The full, machine-readable index is at &lt;a href="https://aiapi-pro.com/chinese-ai-api-pricing" rel="noopener noreferrer"&gt;aiapi-pro.com/chinese-ai-api-pricing&lt;/a&gt;, and the same catalogue is served by the &lt;code&gt;novai-prices-mcp&lt;/code&gt; MCP server if you would rather query it from an agent than read a page.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;If you want the same table as data rather than prose — &lt;a href="https://aiapi-pro.com/chinese-ai-api-pricing" rel="noopener noreferrer"&gt;the index page&lt;/a&gt; has it, filterable by billing unit.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llm</category>
      <category>ai</category>
      <category>showdev</category>
      <category>api</category>
    </item>
    <item>
      <title>How to verify an AI coding agent actually finished the task (5 checks)</title>
      <dc:creator>HAOHAOnovai</dc:creator>
      <pubDate>Sat, 14 Nov 2026 10:37:31 +0000</pubDate>
      <link>https://dev.to/aiapikey/a-green-diff-is-not-a-completeness-check-9gh</link>
      <guid>https://dev.to/aiapikey/a-green-diff-is-not-a-completeness-check-9gh</guid>
      <description>&lt;p&gt;Every agent-authored change arrives with the same reassuring signal: the tests pass, the diff is small, nothing looks obviously wrong. And every so often one of those changes has quietly removed a column, a branch, or a configuration key that no test ever touched.&lt;/p&gt;

&lt;p&gt;The diff was honest. It reported exactly what it checked — the tests that exist. The gap is what a diff can never report: the completeness of a change relative to the surface it touches.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why deleting is invisible
&lt;/h2&gt;

&lt;p&gt;A test suite is a set of assertions about behaviour someone thought to assert. Removal is the one class of change that can be perfectly consistent with all of them: if nothing selected that column, nothing fails when it disappears.&lt;/p&gt;

&lt;p&gt;Adding is different. A new column breaks something quickly, because the readers that do not know about it start returning wrong data or throwing. Addition is self-announcing; deletion is silent.&lt;/p&gt;

&lt;p&gt;That asymmetry is why review intuition fails here. Reviewers look for what is new, because that is where mistakes usually are in human-written code. An agent's characteristic mistake is the opposite — it removes what it believes is unused, and it is often right about "unused in the tests" while wrong about "unused".&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the schema diff its own artifact
&lt;/h2&gt;

&lt;p&gt;The cheapest fix I know is to compute the thing the code diff cannot show: a diff of the &lt;em&gt;surface&lt;/em&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For a database, that is columns added, removed, or type-changed between the previous version and the new one.&lt;/li&gt;
&lt;li&gt;For a config file, that is keys removed or defaulted differently.&lt;/li&gt;
&lt;li&gt;For a public API, that is fields dropped from the response shape.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Review that diff on its own, as a separate artifact from the code change. A removed column then arrives as a line item that says "this is being removed", instead of hiding inside a hundred lines of refactoring.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gate that costs almost nothing
&lt;/h2&gt;

&lt;p&gt;Snapshot the surface before and after. Fail the check on any removal unless the same change set also touches every reader of that field — and if you cannot enumerate the readers mechanically, treat that as a reason to require a human acknowledgement rather than a reason to skip the check.&lt;/p&gt;

&lt;p&gt;That converts "did the agent drop something?" from a review question into a mechanical one, which is the only kind that survives a busy afternoon.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this is not
&lt;/h2&gt;

&lt;h2&gt;
  
  
  It is not an argument against deletion, or against trusting diffs. It is the observation that a diff is a statement about &lt;em&gt;what changed&lt;/em&gt;, while we keep reading it as a statement about &lt;em&gt;what is still there&lt;/em&gt;. Those are different claims, and only the first one is being checked.
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Related, same thread: &lt;a href="https://dev.to/aiapikey/your-rollback-destroys-the-evidence-you-need-to-judge-it-2pg1"&gt;your rollback destroys the evidence you need to judge it&lt;/a&gt; and &lt;a href="https://dev.to/aiapikey/the-restart-budget-is-a-sum-not-a-default-ka5"&gt;the restart budget is a sum, not a default&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Run this yourself
&lt;/h2&gt;

&lt;p&gt;Three steps, about five minutes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Dump the columns before and after the change as two sorted lists - &lt;code&gt;information_schema.columns&lt;/code&gt; if it is a database, the response schema if it is an API.&lt;/li&gt;
&lt;li&gt;Diff them. Every removal is the whole finding; everything else is noise.&lt;/li&gt;
&lt;li&gt;For each removed name, grep the service for it. No hits means the removal is probably fine. A hit means you found the regression before a user did.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is the whole gate. It fails on removals only, which is why it costs almost nothing to run on every change.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>testing</category>
      <category>llm</category>
      <category>api</category>
    </item>
  </channel>
</rss>
