AI, robotics and crypto, in context Deutsch

AI

On the Phone or in the Cloud: Where an App's AI Should Run

Smart features in apps can run on the user's device, on a server or both. The choice affects privacy, speed, cost and battery life, and it is often made too late in a project.

On the Phone or in the Cloud: Where an App's AI Should Run

Many apps now include features that count as artificial intelligence. A photo app removes a stranger from the background. A keyboard suggests the next word. A notes app turns a voice memo into text, and a banking app flags an unusual payment. To the user, these features look alike. Behind the screen, they can work in very different ways.

The key design question is where the model runs. It can sit on the phone itself, on a server in the cloud, or be split between the two. That choice is often made by default, because a cloud service is quick to try. Yet it determines what the app costs to run, how fast it feels, what happens without a connection and what the developer can promise about privacy.

This article compares the options from the point of view of a product team and shows how to decide, feature by feature.

What on-device AI can do

Modern smartphones contain chips designed for the math that neural networks need, often called neural processing units. Both major mobile platforms offer frameworks that let developers run trained models on this hardware. Speech recognition, image classification, text prediction and face detection in the camera are common examples that run locally on many current devices.

The advantages are clear. Data stays on the phone, which simplifies privacy promises and some legal obligations. The feature works in a tunnel or on a plane. Results arrive without a network round trip, which matters for camera effects or typing. And once the app is installed, each use costs the developer nothing.

The limits are just as clear. On-device models have to be small, so they are usually less capable than server models. They add to the download size and use battery. The developer must also support a wide range of phones, some with fast AI chips and some several years old without them. A feature that feels instant on a new flagship can be sluggish on a budget device.

What the cloud adds and what it costs

A model in the cloud can be as large as the provider can afford. That makes it the default for demanding tasks such as writing long texts, answering open questions, translating whole documents or analyzing complex images. It can also be updated at any time, without waiting for users to install a new app version.

The costs come in several forms. Every request uses server capacity, so the bill grows with the number of users and how often they use the feature. A popular feature can become expensive quickly, especially in a free app. Each request also needs a connection and adds delay. And user data leaves the device, so it must be protected in transit and on the server, and explained in the privacy policy.

There is a dependency question too. If the app relies on an outside AI provider, that provider's prices, terms and model changes affect the product. An update on the provider's side can change answers overnight and break features that expect a certain output format.

The hybrid approach

Many apps end up splitting the work. The device handles what it can do well and quickly, and the server handles the rest. Typical patterns include the following.

  • Local first: a small model on the phone answers simple requests, and only harder ones go to the server.
  • Local filtering: the device removes or masks personal details before anything is sent to the cloud.
  • Local preview, cloud result: the phone shows a quick draft at once, and a better version arrives from the server moments later.
  • Offline fallback: the cloud model is used when there is a connection, and a simpler local model when there is not.

Hybrid designs add complexity. The team has to maintain two models, keep their behavior consistent and decide clearly which data may leave the device. Users notice when the same feature gives different answers depending on their connection.

Where a model runs is not a detail for engineers. It is a promise to users about their data, their battery and their wait.

Deciding feature by feature

A useful approach is to ask a few questions for each AI feature rather than for the app as a whole. How sensitive is the data? Health notes, private messages and photos of children argue strongly for local processing. How large a model does the task need? Short predictions and classifications often fit on the phone, while open-ended text generation usually does not. How often will people use it? A feature used dozens of times a day per user can turn into a large cloud bill.

Speed matters as well. Anything that reacts to the camera or to typing needs answers within a fraction of a second, which favors local models. Tasks where users expect a short wait, such as summarizing a document, tolerate a server round trip. Finally, consider how the feature should behave without a connection. If the honest answer is that it should still work, the cloud alone will not do.

Testing and trust

AI features need a different kind of testing than buttons and forms. A model can give a plausible answer that is wrong, and it can behave differently on different devices. Teams should collect realistic test cases, including awkward ones, and check results on old and new phones. For cloud models, they should monitor answers over time, since the provider may change the model.

Users also need to understand what is happening. A clear note on whether a feature works on the device or sends data to a server builds trust. So does an easy way to switch an AI feature off. App stores and privacy laws ask developers to disclose what data they collect and why, and AI features are part of that picture.

Where app AI is heading

The balance is shifting toward the device, slowly. Phone makers keep adding AI hardware, and researchers keep finding ways to shrink models without losing too much quality. At the same time, the most capable models keep growing and stay in the data center.

For most app teams, the realistic future is a mix: more work done locally, with the cloud reserved for tasks that truly need it. Making that split deliberately, early in the design, is better than discovering it later on a cost report or in a privacy complaint.

Questions and answers

What is on-device AI?

It means the AI model runs directly on the phone, tablet or computer instead of on a remote server. The data does not have to leave the device, and the feature can work offline. The trade-off is that the model has to be small enough for the hardware.

Is on-device AI always more private?

It avoids sending data to a server for that feature, which is a real privacy advantage. But an app can still collect data for other purposes, such as analytics. Users should check what the app as a whole shares, not just where its AI runs.

Why do some AI features need an internet connection?

The model behind them is too large or too demanding to run on a phone. Long text generation and complex image analysis are typical examples. The app sends the request to a server and waits for the answer.

Does on-device AI drain the battery?

Running a model uses power, especially for long or frequent tasks. Dedicated AI chips are designed to do this work more efficiently than the main processor. Short tasks such as text prediction usually have little effect, while continuous video processing can be noticeable.

What does a cloud AI feature cost a developer?

Most providers charge per request or by the amount of text or images processed, so costs grow with usage. A feature that is cheap in testing can become expensive once many users rely on it. Teams should estimate usage early and consider limits or local processing for frequent tasks.