<?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: Darul</title>
    <description>The latest articles on DEV Community by Darul (@darulrahman).</description>
    <link>https://dev.to/darulrahman</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3957997%2Fd58a04fd-2161-49e0-b09b-83e7d35b1732.png</url>
      <title>DEV Community: Darul</title>
      <link>https://dev.to/darulrahman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/darulrahman"/>
    <language>en</language>
    <item>
      <title>I compared AI costs across 22 models — here's what surprised me</title>
      <dc:creator>Darul</dc:creator>
      <pubDate>Fri, 29 May 2026 07:47:35 +0000</pubDate>
      <link>https://dev.to/darulrahman/i-compared-ai-costs-across-22-models-heres-what-surprised-me-36l2</link>
      <guid>https://dev.to/darulrahman/i-compared-ai-costs-across-22-models-heres-what-surprised-me-36l2</guid>
      <description>&lt;p&gt;I was building an AI feature into a side project when I realised I had no idea what I was actually spending.&lt;/p&gt;

&lt;p&gt;I knew the ballpark. GPT-4o is "expensive". Haiku is "cheap". But I didn't know the numbers for &lt;em&gt;my specific prompts&lt;/em&gt; — and the gap between "expensive" and "cheap" turned out to be much bigger than I expected.&lt;/p&gt;

&lt;p&gt;So I did the thing any developer would do when they can't find the tool they need: I built it.&lt;/p&gt;




&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;I took five real prompts I use in my projects — a customer support classifier, a code review prompt, a JSON extraction task, a summarisation prompt, and a conversational reply — and priced each one across 22 models from 8 providers:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude&lt;/strong&gt; (Haiku 3.5, Sonnet 3.5, Opus 4)&lt;br&gt;
&lt;strong&gt;OpenAI&lt;/strong&gt; (GPT-4o mini, GPT-4o, o1, o3-mini)&lt;br&gt;
&lt;strong&gt;Google&lt;/strong&gt; (Gemini 1.5 Flash, Gemini 1.5 Pro, Gemini 2.0 Flash)&lt;br&gt;
&lt;strong&gt;Mistral, DeepSeek V3, DeepSeek R1, Grok, Perplexity, Groq Llama variants&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  What I found
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Finding #1: The gap is 40x, not 2x
&lt;/h3&gt;

&lt;p&gt;For a typical customer support classification prompt:&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;Cost per 1,000 calls&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPT-4o&lt;/td&gt;
&lt;td&gt;~$2.30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Sonnet 3.5&lt;/td&gt;
&lt;td&gt;~$0.90&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Haiku 3.5&lt;/td&gt;
&lt;td&gt;~$0.21&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepSeek V3&lt;/td&gt;
&lt;td&gt;~$0.08&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Groq Llama 3.1 8B&lt;/td&gt;
&lt;td&gt;~$0.06&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's a &lt;strong&gt;38x difference&lt;/strong&gt; between top and bottom.&lt;/p&gt;

&lt;h3&gt;
  
  
  Finding #2: GPT-4o mini is not the budget option anymore
&lt;/h3&gt;

&lt;p&gt;When you add Groq, DeepSeek V3, and Gemini Flash, GPT-4o mini sits in the middle of the pack — outpriced 3–5x by the genuinely cheap options.&lt;/p&gt;

&lt;h3&gt;
  
  
  Finding #3: Reasoning models are shockingly expensive for simple tasks
&lt;/h3&gt;

&lt;p&gt;For a simple JSON extraction task:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;o1: &lt;strong&gt;$0.089 per call&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;DeepSeek V3: &lt;strong&gt;$0.0001 per call&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's 890x more expensive. For the exact same output.&lt;/p&gt;

&lt;h3&gt;
  
  
  Finding #4: Gemini Flash is criminally underrated
&lt;/h3&gt;

&lt;p&gt;Gemini 1.5 Flash kept appearing near the bottom of the cost table — in a good way. Fast, capable, and cheaper than most realise.&lt;/p&gt;




&lt;h2&gt;
  
  
  The tool I built
&lt;/h2&gt;

&lt;p&gt;After doing this manually with spreadsheets, I built &lt;strong&gt;&lt;a href="https://ai-model-cost-calculator.vercel.app" rel="noopener noreferrer"&gt;CheyX&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Paste any prompt → see what it costs across 22 models → sorted cheapest to most expensive. No signup. No API key. Free.&lt;/p&gt;

&lt;p&gt;Switching my customer support classifier to DeepSeek V3 would save me ~$180/month. That's a coffee every day for changing one line of config.&lt;/p&gt;




&lt;h2&gt;
  
  
  The practical takeaway
&lt;/h2&gt;

&lt;p&gt;Most developers pick a model once, never revisit it, and just pay whatever shows up on the invoice.&lt;/p&gt;

&lt;p&gt;A few hours benchmarking your actual prompts against cheaper models is almost always worth it. Make the cost visible, then decide.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built CheyX to solve this for myself. Feedback welcome in the comments.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;→ &lt;a href="https://ai-model-cost-calculator.vercel.app" rel="noopener noreferrer"&gt;ai-model-cost-calculator.vercel.app&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>llm</category>
    </item>
  </channel>
</rss>
