AI features are fast becoming table stakes, but they don't scale cleanly. Even as cloud AI costs fall, the way most AI apps are built creates real constraints: "unlimited" plans that aren't unlimited, byzantine pricing tiers that confuse users, and apps that can't keep their promises as usage grows.
Like many others building with AI, we started by using large language models (LLMs) for everything. It was convenient: one solution for every problem. It felt like bringing a gun to a knife fight. Then we added agentic behaviors with frameworks like LangChain, LlamaIndex, and CrewAI, and the cracks started to show. The frameworks were too abstract because they're so general, and you don't learn how they work under the hood until they break in production. Using the LLM hammer everywhere also got expensive.
Anthropic's recent post "Building Effective Agents" matched our experience. At my previous startup, we iterated through most of the frameworks it mentions and learned the same lessons through trial and error. Its emphasis on practical implementation over theoretical complexity, and its warnings about the hidden costs of complexity, were things we had learned the hard way. We found the same principles apply beyond agent design to building AI apps that stay sustainable as they grow.
I won't go into what an agent is here. Honestly, most people are building agents without a clear idea of what they are. The term is overloaded at this point, so this post focuses on the underlying models instead.
Finding the right balance
Local transcription: cloud quality at zero marginal cost
I've since left that company, which built generic agentic solutions for enterprises, and moved to a startup focused on multi-modal use cases for individuals. We needed a transcription model, and Whisper seemed like the obvious choice. But the more we looked into it, the less it made sense cost-wise. A premium service like Deepgram would destroy our margins (~$20 per user per month with normal usage), and even the cheapest cloud Whisper ate up close to half of what we wanted to charge per seat. Transcription is table stakes for us, so that was too risky.
The breakthrough came when we tried running Whisper on device. Early results were promising, but real-time transcription was hard. With careful optimization and tuning, we got a Word Error Rate (WER) of about 11% for real-time streaming transcription on M-series chips, and we can deliver that consistently even on an M2 MacBook Air. Compared to cloud providers' benchmarks, that showed local processing could rival the cloud at zero marginal cost.
This choice mattered beyond cost. A common pattern in AI is platforms advertising "unlimited" features with hidden constraints. Some cap usage time; others start with attractive pricing and then raise it once the unit economics stop working. Processing locally lets us offer genuinely unlimited features without the asterisks or future price hikes.
Mixing small and large models cut our LLM costs ~50%
Our approach to language models evolved the same way. For cloud work, we started with the usual suspects: OpenAI, Anthropic, and others. Then we paired them with small language models (SLMs) for simpler tasks that don't need complex reasoning. We also wanted users to run SLMs directly on device, for privacy, and because it lets us provide more value at no cost.
What's exciting is how quickly these models are improving. Qwen 2.5-3B scores above 65 on MMLU, something even the massive LLaMA-65B couldn't do in early 2023. In our experience, though, local SLMs still struggle with long contexts and repetition. We typically use them for background processing and features not directly exposed to the user.
Users' Macs have a lot of untapped potential. Modern Macs pack serious computing power that often sits idle, and Apple is clearly investing heavily here, so it will only get better. All in all, the mix cut our language model costs by ~50%.
This kind of optimization isn't just for apps that run locally; it's crucial for any AI app at scale. The key is knowing which tasks need a powerful LLM and which a smaller model can handle. Exa.ai learned this firsthand when their Twitter Wrapped feature went viral. Facing surging costs, they routed simpler requests to smaller, cheaper models and saved their most powerful LLMs for tasks that needed them. That wasn't just clever engineering; it was essential to keeping unit economics sustainable. Read more here.
Right-size every task
The future of AI apps lies in smart resource allocation, not brute force. Combining on-device processing for compute-heavy tasks like transcription with a mix of local and cloud language models has eliminated our transcription costs and cut our language model costs by roughly 50%. More importantly, performance and user experience stay consistent as we scale, without the usual trade-off between cost and capability. That's how we deliver "unlimited" features without hidden constraints.
The possibilities are expanding quickly. Tools like MLX make it possible to fine-tune and train models efficiently on users' devices, and on-device models keep getting more capable without demanding more resources.
The key isn't reaching for the largest model or defaulting to the cloud. It's understanding what each component needs and picking the right tool for each task. Combine local processing with cloud capabilities thoughtfully, and you can build AI apps that are both powerful and sustainable, so you can focus on delivering value to users instead of worrying about usage limits.
If you've read this far, you might be interested in the full post I wrote for our startup.