LLM Hub Studio · Blog

AI Features Without an API Bill: The Economics of On-Device Inference

Cloud AI charges you every time a user taps a button. On-device inference flips that model: the cost is paid up front in engineering, then stays flat no matter how much people use the feature.

AI Features Without an API Bill: The Economics of On-Device Inference

Every product team that adds an AI feature eventually meets the same spreadsheet. At first, the cloud API bill looks trivial. A few cents here, a few requests there, and the feature ships fast. Then people actually start using it, and the bill starts climbing in lockstep with success. The more popular the feature, the more it costs to keep it running.

This is the central economic problem of cloud AI, and it is why on-device inference deserves a serious look from any team building AI features for mobile apps. Running a model on the user's own device changes where the cost sits, and that change reshapes the whole business model.

How the cloud API model charges you

A cloud AI service typically charges per use. Sometimes that is per request, sometimes per unit of input and output, and sometimes both, plus extras for higher speeds or larger models. The details vary, but the shape is always the same: cost scales with usage.

That shape creates three problems that are easy to miss in a prototype and painful in production.

First, your marginal cost never reaches zero. Every new user, and every extra action by an existing user, adds to the bill. A feature that goes viral can turn into a cost crisis overnight, which is a strange reward for building something people love.

Second, costs are unpredictable. Usage depends on user behaviour, which is hard to forecast. A power user who chats for an hour, generates dozens of images, or transcribes long recordings can cost many times more than an average user, and you usually cannot tell in advance who that will be.

Third, the bill creates pressure to limit the product. Teams start throttling features, capping free usage, hiding AI behind paywalls, or quietly making responses shorter — not because users want less, but because each response costs money. The pricing model starts designing the product.

None of this means cloud APIs are bad. They are excellent for getting started, for testing an idea, and for models that are simply too large to run on a phone. But for a feature that people will use every day, a cost that grows forever with usage is worth questioning.

How on-device inference changes the equation

On-device inference flips the cost curve. Instead of paying per request, you pay up front: the engineering time to choose a suitable model, compress it so it fits on a phone, and test it across real devices. Once the app ships, the model runs on hardware the user already owns — the phone's CPU, GPU, or neural engine — and each additional use costs the developer almost nothing.

That is a fundamentally different business. A feature can be used ten times or ten thousand times without changing your server bill, because there is no server bill for that feature. Heavy users stop being a liability and start being exactly what you want: people who love the product enough to use it constantly.

The trade is real, and it is worth stating plainly. On-device models are smaller than the largest cloud models, because a phone has limited memory and battery. Shipping a model also adds to the app's download size, and you need to test performance across a wide range of devices, from older phones to the latest flagships. Those are engineering costs, and they are not trivial.

But they are fixed costs, not variable ones. You pay them once per release, not once per user action. For a team planning a product that people will use daily, fixed costs are usually far easier to plan around than a bill that grows with every tap.

The hidden costs of the cloud that never appear on the invoice

The API bill is only part of the cloud's true cost. There are other costs that rarely show up in a pricing page but matter just as much.

Latency is one. A cloud request has to travel to a server, wait in a queue, run, and travel back. On a good connection that delay is small; on a poor connection it is noticeable, and with no connection the feature simply does not work. On-device inference removes the round trip entirely, which is why it feels instant and why it works in airplane mode, in rural areas, on job sites, and while travelling.

Privacy is another. When a prompt, a photo, a voice recording, or a document is sent to a server, it leaves the user's control. That creates obligations around storage, retention, breaches, and compliance — and it creates a trust problem with users who do not want their personal content on someone else's infrastructure. Data that never leaves the device cannot be leaked from a server, because it was never there. LLM Hub takes this approach: there is no sign-in, no accounts, and no tracking, and prompts, images, and outputs never leave the device.

Reliability is a third. A cloud feature depends on the provider's uptime, rate limits, pricing changes, and terms of service. Any of those can change without warning. An on-device feature depends only on the app the user already has installed. It cannot be rate-limited, and it cannot be switched off by a provider's outage.

When you add these together, the economics look different again. The cloud is not just a per-request charge; it is an ongoing dependency with operational, legal, and reputational costs attached.

What makes a good on-device feature

Not every AI feature belongs on the device, and being honest about that is part of good engineering. The best candidates share a few traits.

Frequency matters most. The more often a feature is used, the more the on-device model pays for itself. A daily habit — chatting with an assistant, transcribing a voice note, translating a message, generating an image — is an ideal fit. A feature used once a month may not justify the engineering effort.

Privacy matters too. Features that handle personal content — journals, photos, health data, private conversations — gain the most from staying local. OpenSleep, for example, tracks sleep using only the phone's motion and sound, with on-device AI sleep coaching, and no wearable and no server. Sleep data is about as personal as data gets, and keeping it on the device is a feature in itself, not just an implementation detail.

Latency matters for anything interactive. Voice chat, live transcription, and real-time translation all feel broken when every response waits on a network round trip. Running locally keeps the interaction fluid.

And offline availability matters for anything people need away from good coverage. Field workers, travellers, students, and anyone on a patchy connection all benefit from features that simply work, regardless of signal.

By contrast, a feature that needs the very largest models, or that is used rarely by a small number of people, may still be better served by a cloud API. The honest answer is usually a mix: on-device for the everyday features, cloud for the exceptional ones. The mistake is defaulting to the cloud for everything and never asking what the bill will look like at scale.

How to think about the numbers without guessing

You do not need exact vendor prices to make this decision well. A simple framework is enough.

Start with the cloud side: estimate how many model calls a typical user makes per month, and how that number grows if the feature succeeds. Multiply by the provider's per-call price, and project it across your expected user base. Then ask what happens if usage doubles, or if a small group of heavy users drives most of the volume. If the answer makes you nervous, that is useful information.

Then estimate the on-device side: the engineering time to integrate and test a compressed model, the increase in app size, and the ongoing cost of shipping model updates. These are real costs, but they do not scale with usage. Compare the two curves over a year, not a week. The cloud often wins in week one and loses by month twelve.

Also factor in the costs that are harder to price but easy to feel: support tickets when a feature fails offline, churn when users hit a usage cap, and the product compromises made to keep the bill down. A feature that users can use freely, without caps or throttling, is a better product — and a better product retains users longer.

A practical path for product teams

If you are weighing the switch, you do not have to rebuild everything at once. A practical path looks like this.

First, pick one high-frequency feature and measure it. How often is it used? What does it cost per month in API charges? How do users react when it is slow or unavailable? That single feature usually tells you whether the economics favour on-device.

Second, prototype with a compressed model on real devices. Test on older phones as well as new ones, and watch thermals and battery closely. A model that runs beautifully on a flagship but overheats a three-year-old phone is not ready to ship.

Third, ship the on-device version alongside the cloud version, and compare them honestly: response time, user satisfaction, support volume, and cost per user. The comparison usually settles the debate faster than any spreadsheet.

Fourth, design the update path. Models improve, and users should get those improvements without re-downloading a huge app or losing their data. Shipping model updates cleanly is part of the product, not an afterthought.

LLM Hub Studio follows this approach in its own work. LLM Hub runs 15+ AI models entirely on the phone — chat, image generation with Stable Diffusion, music, code, translation, and transcription — with quantized models running on CPU, GPU, and NPU. OpenSleep applies the same philosophy to sleep tracking. And the studio's RunAnywhere case study shows the approach scaling: an Android-to-iOS port completed in about six and a half weeks from first commit to the App Store, with models up to 31 billion parameters running on iPhone. The point is not that every app needs the largest model; it is that on-device AI is a proven, shipping reality, not a research demo.

The bottom line

Cloud APIs made AI features easy to start. On-device inference makes them cheap to sustain. For a feature people use every day, the difference between paying per use forever and paying once up front is the difference between a cost centre that grows with success and a product that gets more profitable as it gets more popular.

That is the real economics of on-device inference. It is not about avoiding the cloud on principle. It is about choosing, feature by feature, the cost curve that matches how people will actually use the product. For everyday AI features, that curve increasingly points to the device in the user's pocket.

If you are building an AI app and want to talk through which features belong on-device, LLM Hub Studio can help. The studio is an Australian software studio specialising in on-device AI app development, and you can reach it at timmy@llmhub.com.au.

on-device AIAI economicsmobile AIapp developmentinference

Questions

What is on-device inference?

On-device inference means an AI model runs directly on the user's phone, laptop, or other hardware, instead of sending a request to a remote server. The model has been compressed so it fits on the device, and it runs on the device's CPU, GPU, or neural engine. The result is produced locally, with no round trip to the cloud.

Why do cloud AI APIs get expensive at scale?

Cloud AI is usually priced per request or per unit of input and output. Every user action that triggers a model call adds to the bill, so costs grow in step with usage. A popular feature therefore becomes more expensive exactly when it succeeds, and a small number of heavy users can drive a large share of the total cost.

Is on-device AI really free to run?

Not free, but the costs sit in different places. The main costs are engineering time to select and compress models, testing on real devices, and the download size of the app. Once the app is shipped, each additional use of a feature costs the developer almost nothing, because the work happens on hardware the user already owns.

When does on-device inference make more sense than a cloud API?

It makes the most sense when a feature is used often, needs to work without a connection, involves private content, or must respond instantly. Chat, transcription, translation, image generation, and personal coaching are good candidates. A cloud API can still be the right choice for a rarely used feature, or for a model far too large to run on a phone.

Does on-device AI work without an internet connection?

Yes, that is one of its defining advantages. Because the model lives on the device, the feature works in airplane mode, in a tunnel, on a remote work site, or anywhere with no signal. LLM Hub, for example, runs its AI models entirely on the phone, so chat, image generation, music, translation, and transcription all work offline.

How does LLM Hub Studio approach on-device AI?

LLM Hub Studio is an Australian software studio specialising in on-device AI app development: private, offline-first AI that runs on phones, laptops, browsers, and edge hardware. Its apps include LLM Hub, with 15+ AI models running entirely on the phone, and OpenSleep, a phone-only sleep tracker with on-device AI sleep coaching. You can reach the studio at timmy@llmhub.com.au.