<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cost Optimization on Ted Factory</title><link>https://tedfactory.com/en/tags/cost-optimization/</link><description>Recent content in Cost Optimization on Ted Factory</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 20 Aug 2026 01:41:07 +0900</lastBuildDate><atom:link href="https://tedfactory.com/en/tags/cost-optimization/index.xml" rel="self" type="application/rss+xml"/><item><title>Why an AI Subscription Isn't a Cheap API</title><link>https://tedfactory.com/en/notes/essays/why-ai-subscriptions-are-not-cheap-apis/</link><pubDate>Thu, 20 Aug 2026 00:00:00 +0900</pubDate><guid>https://tedfactory.com/en/notes/essays/why-ai-subscriptions-are-not-cheap-apis/</guid><description>&lt;h1 id="why-an-ai-subscription-isnt-a-cheap-api"&gt;Why an AI Subscription Isn&amp;rsquo;t a Cheap API&lt;a class="anchor" href="#why-an-ai-subscription-isnt-a-cheap-api"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;2026-08-20&lt;/p&gt;
&lt;p&gt;&lt;img src="https://tedfactory.com/images/notes/why-ai-subscriptions-are-not-cheap-apis-cover.png" alt="A personal subscription path and a metered API path lead toward the same AI through separate gates and billing systems" /&gt;&lt;/p&gt;
&lt;h2 id="the-better-you-get-at-using-ai-the-more-cost-matters"&gt;The Better You Get at Using AI, the More Cost Matters&lt;a class="anchor" href="#the-better-you-get-at-using-ai-the-more-cost-matters"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;When I first started using AI, model quality was what mattered most. I compared which model wrote better code, read long documents more accurately, and reasoned more deeply. But once AI became part of my actual work and my usage grew, my attention shifted. &lt;strong&gt;Using AI well now matters as much as being able to keep using it sustainably.&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>I Dug Into Prompt Caching and Found That Hit Rate Isn't the Goal</title><link>https://tedfactory.com/en/notes/essays/prompt-caching-deep-dive/</link><pubDate>Wed, 05 Aug 2026 00:00:00 +0900</pubDate><guid>https://tedfactory.com/en/notes/essays/prompt-caching-deep-dive/</guid><description>&lt;h1 id="i-dug-into-prompt-caching-and-found-that-hit-rate-isnt-the-goal"&gt;I Dug Into Prompt Caching and Found That Hit Rate Isn&amp;rsquo;t the Goal&lt;a class="anchor" href="#i-dug-into-prompt-caching-and-found-that-hit-rate-isnt-the-goal"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;2026-08-05&lt;/p&gt;
&lt;p&gt;&lt;img src="https://tedfactory.com/images/notes/prompt-caching-deep-dive-cover.png" alt="Prompt content stacked like geological strata by change frequency, with the lower layers reused from cache" /&gt;&lt;/p&gt;
&lt;h2 id="it-started-with-where-does-this-actually-happen"&gt;It Started With &amp;ldquo;Where Does This Actually Happen?&amp;rdquo;&lt;a class="anchor" href="#it-started-with-where-does-this-actually-happen"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I knew prompt caching reduced costs. My understanding went about as far as: when you send the same system prompt repeatedly, it gets cheaper from the second request onward.&lt;/p&gt;
&lt;p&gt;But the more I thought about it, the stranger it seemed. If caching happens in &lt;strong&gt;some relay layer outside the model&lt;/strong&gt;, then from the model&amp;rsquo;s point of view nothing is saved. And yet the savings are said to reach 90%. Would that mean most of the cost of using an LLM (Large Language Model) comes not from the model itself but from the layer around it?&lt;/p&gt;</description></item></channel></rss>