Mobile apps
AI on the phone instead of the cloud: when it makes sense
When to run an AI model on the phone and when in the cloud: privacy, cost, offline use and the limits, with my SomaScope app as the worked example.
In short
An AI model on the phone makes sense when the app works with data the user does not want to send anywhere (photos, documents, recordings), has to work without internet or answer instantly, and the task is narrow: recognise something in a photo, pull data out of a text, summarise a note. The cloud wins when you need a large model with broad knowledge, a long context or the same behaviour on older phones too. More and more often the two are combined. That is how my app SomaScope works: a model on the phone analyses the physique photos, and only the numeric results and the training log go to the cloud, optionally, never the photo files.
What “AI on the device” actually means
An AI model is a file of learned parameters. In the cloud approach the app sends data to a server, the model computes the result there and sends the answer back. In the on-device approach the model sits on the phone (in the app or in the operating system) and computes the result on the processor, the graphics chip or a dedicated AI chip, which Apple calls the Neural Engine. Apple states the benefit plainly: a model that runs strictly on the device needs no network connection, which helps keep user data private and the app responsive.
In practice there are two routes. The first is your own specialised model, for example for image recognition, shipped inside the app. The second is a language model built into the phone’s operating system, which the app uses through a ready-made API. The main tools in October 2026:
| Tool | Platform | What it is for | What to watch |
|---|---|---|---|
| Core ML (Apple) | iOS 11 and later | Your own models: image, text, audio | Uses the CPU, GPU and Neural Engine |
| Core AI (Apple) | iOS 27 and later | The latest model architectures, language models included | A new framework from 2026 |
| Foundation Models (Apple) | iOS 26 and later, devices with Apple Intelligence | A built-in language model: summarising, extracting data, understanding text and images | Only iPhone 15 Pro and Pro Max, iPhone Air and the iPhone 16 models and later |
| LiteRT (Google, formerly TensorFlow Lite) | Android, iOS, the browser, desktops | Your own models from PyTorch, TensorFlow and JAX | Acceleration on the CPU, GPU and NPU depends on the phone |
| Gemini Nano (ML Kit GenAI, AICore) | Android, selected phones | Summarising, proofreading, rewriting, image description, speech | The list of phones is limited, e.g. Pixel 9–11 and Galaxy S25–S26 |
| ONNX Runtime | Android, iOS | Models from many libraries in the ONNX format | On iOS it can use Core ML, on Android NNAPI |
When the model on the phone wins
- Privacy: a photo, a document or a recording that never leaves the phone never reaches the company’s server. It does not have to be secured, stored or deleted there, and it cannot leak from there. The GDPR requires processing only the data needed for the purpose (art. 5(1)(c)) and building data protection in from the design stage (art. 25). Analysis on the phone builds data minimisation into the app’s architecture itself: the company never receives data it does not need.
- Offline and no network delay: the answer does not wait for a server, so the app works in a basement, on a plane and with a weak signal. Google notes fairly that the speed of such a model depends on the phone’s hardware.
- No fee per use: cloud models are billed by tokens, pieces of text and images. For example, Gemini 3.5 Flash-Lite on the paid plan costs $0.30 per million input tokens and $2.50 per million output tokens (Google’s price list of 9 October 2026). For Gemini Nano on the phone, Google says outright that there are no extra server costs per call.
- The data does not feed someone else’s models: on the free Gemini API plan, Google notes in its price list that the data is used to improve its products (on the paid plan it is not). A model on the phone sidesteps the question, because the data is not sent anywhere.
When the cloud is better
- What the model can do: a model on the phone is smaller than a cloud one. Google lists the limits of Gemini Nano: token limits, the device’s hardware and the bounds of the model itself. Apple writes that when you need more reasoning and a longer context, you have to reach for a model on a server.
- Device coverage: built-in language models work only on newer phones. Apple Intelligence needs at least an iPhone 15 Pro, and Gemini Nano is available on selected Android models. An app for all your customers needs a plan B, for example a version without the feature or a request to the cloud.
- Storage on the phone: Apple says Apple Intelligence needs up to 8 GB of free space (up to 14 GB on iPhone 17 Pro, 17 Pro Max and iPhone Air). Your own model can be shrunk by quantisation: storing the weights in 8 bits instead of 32 makes the model about four times smaller. Store limits are rarely the problem (4 GB uncompressed in the App Store, a 4 GB compressed download in Google Play), but every megabyte is a longer download.
- Battery and heat: heavy computation warms the phone up. Apple recommends that apps cut their resource use when the thermal state is high, and the AICore service on Android has per-app limits: a number of requests and a long-term (e.g. daily) battery budget. Gemini Nano through ML Kit also runs only while the app is in the foreground.
- Model updates: a model shipped in the app changes with an app update, after store review. A model in the cloud can be swapped at once, for everyone.
The hybrid approach: phone first, cloud when needed
Both platforms describe combining models as normal practice. Google calls it hybrid inference: a request goes to the model on the phone, and to the cloud when the device does not support it or the task is too much for it. In Foundation Models, Apple lets you use its Private Cloud Compute servers or any model provider in that situation. A well-designed app processes sensitive data locally, sends to the cloud only what is necessary, and tells the user so.
Example: SomaScope
SomaScope is my app for analysing physique proportions and logging training, available in the App Store and on Google Play. The principle I built it on is written down in its privacy policy: “your body data belongs to you”. In practice:
- The photos are analysed by an AI model running on the phone. The photo files are not sent to a server for the analysis.
- The result is numbers, such as estimated proportion scores. Only those, together with the training log, can go to the cloud, and only when the optional sync in the PRO version is switched on.
- An honest limitation: the terms speak of on-device processing “where supported by the app version and the user’s device”. That is the reality of AI on phones: you have to plan up front what happens on weaker hardware.
Publishing SomaScope took me through the whole process in both stores, including the descriptions Apple and Google require of what data an app collects. More about the app itself is on the SomaScope page.
What an app with on-device AI costs
A model on the phone raises the cost of building: it has to be prepared and shrunk for phones, then tested on weaker and stronger devices. In return, the server cost per use disappears, which pays back quickly with many users. A cloud model is cheaper to start with, but you pay for every call for the whole life of the app.
| Service | Net | Gross (23% VAT) |
|---|---|---|
| Mobile appiOS, Android or PWA, published to the stores. | from PLN 15,000 | from PLN 18,450 |
The starting price covers the smallest sensible scope. I give the exact, fixed price in writing within 48 hours of a free call. Details are on the mobile apps page, and I describe the general costs of an app in the guide how much a mobile app costs (in Polish).
Phone or cloud: five questions to start with
- Is the data sensitive (photos of people, documents, health, finance)? If so, start with a model on the phone.
- Does the app have to work without internet? Then a cloud model cannot be the only solution.
- How broad is the knowledge the task needs? Recognising an object in a photo fits on a phone; a conversation about everything probably does not.
- Which phones do your customers have? If older ones too, plan a version without AI or a fallback request to the cloud.
- How many calls a day do you expect? At thousands a day, cloud token fees become a fixed cost worth working out in advance.
Questions and answers
Does AI on the phone work without internet?
Yes, if the model is on the device. Analysing a photo or summarising a text then happens on the phone and needs no network. Internet is needed only to download the app and the model, and to sync results if you choose to.
Can every phone run an AI model?
No. Built-in language models need new phones: Apple Intelligence at least an iPhone 15 Pro, Gemini Nano selected Android models. Smaller models of your own, run through Core ML (available since iOS 11) or LiteRT, work on much older devices, but their speed depends on the hardware.
Does processing on the phone exempt an app from the GDPR?
No. It reduces the data that reaches the company, but accounts, sync and analytics are still processing of personal data. The app needs a privacy policy and a legal basis for whatever it does send.
What does an app with AI running on the phone cost?
With me, a mobile app costs from PLN 15,000 net (PLN 18,450 gross) for the smallest sensible scope. I give the fixed price for your project in writing within 48 hours of a free call.
Prepared with the help of AI tools, checked and completed by the author. Numbers and regulations come with sources.
Sources
- Core ML, Apple Developer Documentation
- Core AI, Apple Developer Documentation
- Foundation Models, Apple Developer Documentation
- How to get Apple Intelligence, Apple Support, 14 September 2026
- ProcessInfo.thermalState, Apple Developer Documentation
- Maximum build file sizes, App Store Connect Help
- LiteRT, Google AI Edge, 25 September 2026
- TensorFlow Lite is now LiteRT, Google for Developers Blog, 4 September 2024
- Gemini Nano, Android Developers, 8 October 2026
- ML Kit GenAI APIs, Google for Developers, 7 October 2026
- Deploy ML models on mobile, ONNX Runtime
- About Android App Bundles, Android Developers, 24 June 2026
- Gemini Developer API pricing, Google AI for Developers, 9 October 2026
- Regulation (EU) 2016/679 (GDPR), art. 5 and 25, EUR-Lex
What should I build for you?
Tell me what you want to build or what slows you down. I usually reply the same day, within 24 h at the latest. After a free 30-minute call you get a written fixed-price quote within 48 h.
Prefer skipping the form?
+48 575 885 101m.manka@mankasoft.comWorking hours: Mon–Sat 9:00–17:00, Polish time.