<?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: lin</title>
    <description>The latest articles on DEV Community by lin (@likeainews).</description>
    <link>https://dev.to/likeainews</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%2F4262785%2Fb55ce505-9c97-4b60-822c-f196c10a1a69.png</url>
      <title>DEV Community: lin</title>
      <link>https://dev.to/likeainews</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/likeainews"/>
    <language>en</language>
    <item>
      <title>I priced 13 LLM APIs against the same workload — the spread was 74x</title>
      <dc:creator>lin</dc:creator>
      <pubDate>Tue, 24 Nov 2026 13:55:21 +0000</pubDate>
      <link>https://dev.to/likeainews/i-priced-13-llm-apis-against-the-same-workload-the-spread-was-74x-2aln</link>
      <guid>https://dev.to/likeainews/i-priced-13-llm-apis-against-the-same-workload-the-spread-was-74x-2aln</guid>
      <description>&lt;p&gt;Every pricing page is technically correct and practically useless. One provider quotes per 1M tokens, another buries cache discounts in a footnote, a third changes its rates mid-quarter. You end up comparing numbers that were never comparable.&lt;/p&gt;

&lt;p&gt;So I did the boring thing: took 13 models from 7 providers, fixed a single reference workload, and priced all of them against it.&lt;/p&gt;

&lt;p&gt;The result was a &lt;strong&gt;74x spread&lt;/strong&gt; — $162/month at the bottom, $12,000/month at the top, for work that looks identical on paper.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reference workload
&lt;/h2&gt;

&lt;p&gt;To make the comparison meaningful, every model gets the same job:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;100,000 requests per month&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;6,000 input tokens per request&lt;/strong&gt; (prompt + retrieved context)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;1,200 output tokens per request&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's &lt;strong&gt;600M input tokens&lt;/strong&gt; and &lt;strong&gt;120M output tokens&lt;/strong&gt; per month.&lt;/p&gt;

&lt;p&gt;I picked this shape because it is roughly what a RAG-backed support assistant or a document enrichment pipeline looks like in production: a long-ish input, a short answer. If your workload is different — say, 10x the output — the ranking below changes. That is the point of publishing the method, not just the table.&lt;/p&gt;

&lt;h2&gt;
  
  
  The table
&lt;/h2&gt;

&lt;p&gt;All prices are USD per 1M tokens, list price, no caching or batch discounts applied. The monthly cost column is arithmetic on the reference workload above, not a vendor claim.&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;Provider&lt;/th&gt;
&lt;th&gt;Input $/1M&lt;/th&gt;
&lt;th&gt;Output $/1M&lt;/th&gt;
&lt;th&gt;Context&lt;/th&gt;
&lt;th&gt;Monthly cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPT-4o mini&lt;/td&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;$0.15&lt;/td&gt;
&lt;td&gt;$0.60&lt;/td&gt;
&lt;td&gt;128K&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$162&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Llama 3.3 70B (hosted)&lt;/td&gt;
&lt;td&gt;Meta&lt;/td&gt;
&lt;td&gt;$0.23&lt;/td&gt;
&lt;td&gt;$0.40&lt;/td&gt;
&lt;td&gt;128K&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$186&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepSeek V3&lt;/td&gt;
&lt;td&gt;DeepSeek&lt;/td&gt;
&lt;td&gt;$0.27&lt;/td&gt;
&lt;td&gt;$1.10&lt;/td&gt;
&lt;td&gt;64K&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$294&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 2.5 Flash&lt;/td&gt;
&lt;td&gt;Google&lt;/td&gt;
&lt;td&gt;$0.30&lt;/td&gt;
&lt;td&gt;$2.50&lt;/td&gt;
&lt;td&gt;1M&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$480&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Haiku 4.5&lt;/td&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;$1&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;td&gt;200K&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$1,200&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mistral Large 2&lt;/td&gt;
&lt;td&gt;Mistral&lt;/td&gt;
&lt;td&gt;$2&lt;/td&gt;
&lt;td&gt;$6&lt;/td&gt;
&lt;td&gt;128K&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$1,920&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 2.5 Pro&lt;/td&gt;
&lt;td&gt;Google&lt;/td&gt;
&lt;td&gt;$1.25&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;td&gt;1M&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$1,950&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI o3&lt;/td&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;$2&lt;/td&gt;
&lt;td&gt;$8&lt;/td&gt;
&lt;td&gt;200K&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$2,160&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-4o&lt;/td&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;$2.50&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;td&gt;128K&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$2,700&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Sonnet 5&lt;/td&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;$3&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;td&gt;200K&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$3,600&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Opus 4.8&lt;/td&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;td&gt;$25&lt;/td&gt;
&lt;td&gt;200K&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$6,000&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Opus 5&lt;/td&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;td&gt;$25&lt;/td&gt;
&lt;td&gt;500K&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$6,000&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Fable 5&lt;/td&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;td&gt;$50&lt;/td&gt;
&lt;td&gt;1M&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$12,000&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9zovz3bwzg8k0whch975.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9zovz3bwzg8k0whch975.png" alt=" " width="800" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cost per request ranges from &lt;strong&gt;$0.0016&lt;/strong&gt; (GPT-4o mini) to &lt;strong&gt;$0.12&lt;/strong&gt; (Fable 5).&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding 1: output tokens set the bill, but not the way people assume
&lt;/h2&gt;

&lt;p&gt;On nearly every model, output is 3x–5x the input price. It's tempting to conclude that output is where the money goes — but at a 5:1 input:output token ratio, output still accounts for roughly half of total spend:&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;Output as % of monthly bill&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Sonnet 5&lt;/td&gt;
&lt;td&gt;50%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-4o mini&lt;/td&gt;
&lt;td&gt;44%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 2.5 Flash&lt;/td&gt;
&lt;td&gt;63%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Llama 3.3 70B&lt;/td&gt;
&lt;td&gt;26%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The practical takeaway: &lt;strong&gt;constrain response length before you shop for a cheaper model.&lt;/strong&gt; Cutting output from 1,200 to 600 tokens on Sonnet 5 saves $900/month — more than switching to Haiku while keeping the verbose output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding 2: context size tells you nothing about price
&lt;/h2&gt;

&lt;p&gt;Gemini 2.5 Flash gives you a 1M-token context for $480/month on this workload. Claude Haiku 4.5 gives you 200K for $1,200. DeepSeek V3 gives you 64K for $294.&lt;/p&gt;

&lt;p&gt;Context window, price tier and capability are three independent decisions that vendor marketing deliberately blurs. Price the workload, then check whether the context you actually need fits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding 3: cheap input can be a trap
&lt;/h2&gt;

&lt;p&gt;The ranking above assumes a 5:1 input:output ratio. Flip it — 1,000 input tokens, 4,000 output tokens, same request count — and the cheap-input models lose their advantage fast, because their output rates are not proportionally cheap.&lt;/p&gt;

&lt;p&gt;This is the single most common pricing mistake I see: teams pick a model on input price and then discover the workload is output-heavy.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three levers that beat model choice
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Prompt caching
&lt;/h3&gt;

&lt;p&gt;Anthropic-style caching bills cache reads at &lt;strong&gt;0.1x&lt;/strong&gt; the base input rate, with a 1.25x premium on cache writes. If 70% of your input tokens are a stable system prompt plus a document set, the effective input cost collapses:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;IN_M&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt;          &lt;span class="c1"&gt;# million input tokens / month&lt;/span&gt;
&lt;span class="no"&gt;P_IN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;3.00&lt;/span&gt;         &lt;span class="c1"&gt;# $/1M input, Sonnet 5&lt;/span&gt;
&lt;span class="no"&gt;CACHE_HIT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.70&lt;/span&gt;
&lt;span class="no"&gt;CACHE_READ&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.10&lt;/span&gt;

&lt;span class="n"&gt;fresh&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;IN_M&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="no"&gt;CACHE_HIT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P_IN&lt;/span&gt;          &lt;span class="c1"&gt;# 180 * 3.00  = $540&lt;/span&gt;
&lt;span class="n"&gt;cached&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;IN_M&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;CACHE_HIT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P_IN&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;CACHE_READ&lt;/span&gt;   &lt;span class="c1"&gt;# 420 * 0.30  = $126&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fresh&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;cached&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                            &lt;span class="c1"&gt;# $666 vs $1,800&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's a &lt;strong&gt;63% cut on input&lt;/strong&gt; and takes the Sonnet 5 monthly total from $3,600 to &lt;strong&gt;$2,466&lt;/strong&gt; — before touching the model.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Batch processing
&lt;/h3&gt;

&lt;p&gt;Asynchronous batch tiers typically discount both directions by 50%. Any workload that doesn't need a real-time answer — nightly enrichment, backfills, classification of an existing corpus — should never run at interactive prices. On this workload that's another $1,233/month on Sonnet 5.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Routing by difficulty
&lt;/h3&gt;

&lt;p&gt;Most production traffic is easy. Running 80% of requests through Haiku 4.5 and 20% through Sonnet 5 costs &lt;strong&gt;$1,680/month&lt;/strong&gt; against $3,600 for an all-Sonnet pipeline — a 53% saving — and the distribution of hard cases is something you can measure rather than guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure cost per solved task, not cost per token
&lt;/h2&gt;

&lt;p&gt;A model that fails 20% of requests and requires a retry is not cheap, even at $0.15/1M. Two numbers worth logging from day one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;cost_per_solved&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;monthly_cost&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;retry_rate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;successful_requests&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If a cheaper model needs one retry in five, its effective cost per solved task rises by 20-25%. If it needs a human to fix the output, the comparison is over — labour dominates.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to reproduce this
&lt;/h2&gt;

&lt;p&gt;The whole exercise is four steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Log real prompt and completion token counts for a week — not estimates.&lt;/li&gt;
&lt;li&gt;Fix a reference request count and token shape.&lt;/li&gt;
&lt;li&gt;Multiply by each provider's input/output rates: &lt;code&gt;cost = in_M * p_in + out_M * p_out&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add 30-40% for retries, evaluation runs and the prompts nobody budgets for.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I built a calculator that does this arithmetic across models, with cache hit rate and batch share as inputs: &lt;a href="https://likeainews.com/tools/ai-api-pricing-calculator/" rel="noopener noreferrer"&gt;AI API pricing calculator&lt;/a&gt;. The full table with all 13 models and the monthly figures is on &lt;a href="https://likeainews.com/llm-api-pricing-comparison-2026/" rel="noopener noreferrer"&gt;LLM API pricing comparison 2026&lt;/a&gt;, which is also the canonical source for this post.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this doesn't tell you
&lt;/h2&gt;

&lt;p&gt;Price is not quality, and a 74x spread does not mean the $162 option is 74x worse. On hard reasoning tasks, a frontier model that succeeds on the first attempt regularly beats a cheap model that needs three tries plus a human review.&lt;/p&gt;

&lt;p&gt;The table tells you what the ceiling and floor of your bill look like. Your eval set tells you where on that range you should actually sit.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Prices are list prices compiled from provider pricing pages in November 2026 and change frequently — verify before committing to a budget. If you spot an outdated figure, I'd genuinely like to know; corrections are welcome in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>api</category>
      <category>cost</category>
    </item>
  </channel>
</rss>
