<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ahmed Jaffar]]></title><description><![CDATA[Ahmed Jaffar]]></description><link>https://ahmedjaffar.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 19:29:22 GMT</lastBuildDate><atom:link href="https://ahmedjaffar.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[The real cost of AI inference is not the token price]]></title><description><![CDATA[What I learned building a tool that measures AI cost per accepted answer, not per token.]]></description><link>https://ahmedjaffar.hashnode.dev/the-real-cost-of-ai-inference-is-not-the-token-price</link><guid isPermaLink="true">https://ahmedjaffar.hashnode.dev/the-real-cost-of-ai-inference-is-not-the-token-price</guid><category><![CDATA[AI]]></category><category><![CDATA[llm]]></category><category><![CDATA[Software Engineering]]></category><category><![CDATA[Cost Optimization]]></category><dc:creator><![CDATA[Ahmed Jaffar]]></dc:creator><pubDate>Sun, 08 Nov 2026 02:06:18 GMT</pubDate><content:encoded><![CDATA[<p>Most teams track their AI spend the wrong way. They look at the price per million tokens and call that the cost. It isn't. The real cost is what you pay for an answer you can actually use.</p>
<p>I learned this building a small toolkit I call the AI Inference Control Plane. It runs model configurations against a small set of real requests and reports the cost per accepted answer, not per token. The first time I ran it, the cheapest model on paper was not the cheapest in practice.</p>
<p>The gap between the two numbers is where the money goes. A cheaper model that needs three retries costs more than a pricier model that gets it right the first time. A model that produces verbose output costs more than its token price suggests. And a model that fails silently, producing an answer nobody can use, costs the most of all, because you pay for the tokens and then pay again in time to fix it.</p>
<p>Three things changed how I think about inference cost:</p>
<ol>
<li>Retries are a cost line. If your failure rate is 30 percent, your real price is not the sticker price. It is the sticker price divided by your success rate, plus the cost of every retry.</li>
<li>Evaluation has to come before optimization. Until you can say which outputs are acceptable, every cost comparison is a guess. A small, clear evaluation set makes the trade-offs visible.</li>
<li>Configuration is a portfolio. The right setup is rarely one model for everything. It is a mix: a strong model where errors are expensive, a cheap model where volume is high and mistakes are cheap, and clear rules for which traffic goes where.</li>
</ol>
<p>None of this needs new tooling to start. Pick your ten most common requests. Run two or three configurations against them. Count what you paid for the answers you kept. That ratio, cost per accepted answer, is the number to manage.</p>
<p>The AI bill is not the problem. The undefined cost is. Once you measure the right unit, the decisions get much easier.</p>
<p>The toolkit is open source if you want to look at how it measures this: github.com/AhmedJaffar/AI-Inference-Control-Plane</p>
]]></content:encoded></item></channel></rss>