November 17th, 2026 at 11:30 am
By Ronak Shah, Nordstone
Last updated: November 2026
On-device AI runs a model on the phone itself, while cloud AI sends the request to a server. On-device suits fast, private or offline features that use small models. Cloud suits large models, frequent updates and heavy computation. Many apps mix both, so the real decision is which part of each feature runs where.
TL;DR
- Both platforms now ship on-device language models: Apple’s Foundation Models framework (iOS 26 onwards, on Apple Intelligence-compatible devices) and Google’s ML Kit GenAI APIs, which run Gemini Nano through AICore.
- On-device processing keeps more data on the phone, but UK GDPR still applies, as the ICO guidance on AI and data protection makes clear for any AI that handles personal data, although the ICO says that guidance is under review following the Data (Use and Access) Act.
- Large language models usually run in the cloud, so the server side needs securing, and the NCSC secure AI development guidelines cover that work.
- Retrieval-based assistants stay on the server: our RAG chatbot guide explains why permissions and documents should not sit on the phone.
- Cost moves rather than disappears: on-device removes per-request fees but adds engineering and testing, as our AI app cost guide explains for UK projects.
- Test on real devices, because speed, memory and battery vary widely: the device and OS compatibility section of our QA best practices guide is a starting point.
What is the difference between on-device AI and cloud AI?
With on-device AI, the model is packaged with or downloaded into your app and runs on the phone’s own processor. Nothing needs to leave the device for the model to work. With cloud AI, the app sends the input, such as a photo or a message, to a server, the model runs there, and the result comes back.
Both platforms also offer on-device language models. As of 16 November 2026: Apple’s Foundation Models framework gives Swift apps access to the system’s on-device model. It arrived with iOS 26 and runs on Apple Intelligence-compatible devices, offline and with no per-request charge from Apple. Apple’s 2025 technical report describes a roughly 3-billion-parameter model trained with 2-bit quantisation-aware training, and the current documentation lists a context window of about 4,000 to 8,000 tokens for that model. iOS 27 adds a larger on-device variant of about 20 billion parameters on the most capable chips. Each device holds a single model that your app cannot choose, and you must check its availability before calling it, because the device may be ineligible, Apple Intelligence may be off or the model may still be downloading. Google’s ML Kit GenAI APIs run Gemini Nano through AICore, an Android system service. They cover summarisation, proofreading, rewriting and image description, plus an API for custom text and multimodal prompts. Support depends on the feature, the device’s RAM, the OS version and AICore updates, and sending too many requests in a short period returns a busy error, so design for throttling. Device lists and model versions change often, so confirm eligibility on the vendor pages before you commit. Apple’s Core ML and Google’s ML Kit remain the tools for running your own, smaller models on the device.
Figure 1: the three places AI can run in a mobile app.
When should you run AI on the device?
Run it on the device when speed, privacy or offline use matter most, and when the model is small and does not change often. Typical examples are recognising text in a photo, detecting a face or object in the camera view, scanning a barcode, simple classification, speech commands and personalisation that learns from what the user does on their own phone.
The benefits are real. Results appear almost instantly because there is no network round trip. The feature keeps working on a train or a weak signal. You pay no per-request fee to a provider, and the raw input does not have to be sent to your servers.
The limits are just as real. Models must be small enough for the phone’s memory and battery. Older or cheaper devices run them more slowly. Updating a model means shipping a new app version or downloading new files. And you must test the feature across many handsets, not one.
When is cloud AI the better choice?
Choose the cloud when the model is large, the logic changes often, or the work needs more computing power than a phone should be asked to provide. Chatbots built on large language models, document summaries, complex image or video generation, search across a company’s documents and anything that depends on up-to-date data all fit this pattern.
Cloud AI is also easier to improve. You can change prompts, swap models and fix problems without waiting for an app store release, and you can monitor quality centrally. The trade-offs are the need for a connection, a delay for each request, and running costs that grow with usage. Because user input travels to your server and often to a third-party provider, you also take on more security and data protection work. For a search-style assistant built on your own content, see our guide to building a RAG chatbot into a mobile app.
How do privacy and UK data protection differ between the two?
On-device processing can reduce how much personal data leaves the phone, which supports data minimisation and can simplify some obligations. It does not remove them. If your app collects results, analytics, crash reports or feedback from the feature, that data may still be personal data, and you still need to be transparent about it.
Cloud processing usually means personal data reaches your systems and may reach a provider. That brings in processor contracts, security measures and, where data leaves the UK, the ICO’s rules on international transfers. The ICO’s guidance on AI and data protection covers lawful basis, fairness, transparency and risk assessment, and applies to both approaches.
For sensitive features, such as health, financial or biometric uses, take advice from your data protection lead before choosing. A privacy benefit on paper is only real if you can show what data leaves the device and why. This is general information, not legal advice. The ICO says its AI guidance is under review following the Data (Use and Access) Act, so check its page for updates.
Our UK GDPR for apps checklist covers the wider app, including analytics, consent and retention.
On-device, cloud or hybrid: how do they compare?
The table below summarises the main differences. Treat it as a guide to the questions to ask, not a ranking.
| Factor | On-device | Cloud | Hybrid |
| Speed | Very fast, no network round trip | Depends on connection and server load | Fast for local steps, slower for cloud steps |
| Offline use | Works offline | Needs a connection | Basic features can work offline |
| Model size | Small models only | Large models possible | Small model locally, large in the cloud |
| Data leaving the phone | Less, but check logs and analytics | Input is sent to your server and provider | Only what the cloud step needs |
| Updates | Follow your app release or model download | Change the same day | Mixed |
| Running cost | No per-request fee | Grows with usage | Cloud share grows with usage |
| Build effort | Device testing and model tuning | Server pipeline and security | Highest, two sets of work |
What does a hybrid approach look like?
Hybrid means splitting a feature so each part runs where it works best. A common pattern is to do a quick, private check on the phone and send only what is needed to the server. For example, an app might detect and crop a document on the device, then send the cropped image for detailed analysis in the cloud. Another pattern is a cloud assistant with a small on-device fallback, so basic answers still work offline.
Hybrid designs need more planning. You must decide what happens when the connection drops mid-request, how to keep on-device and cloud results consistent, and how to explain to users what is processed where. Hybrid is a common pattern, because few features suit one extreme, but the right split depends on the feature. Apple’s own documentation suggests a server-based model or a custom on-device model as a backup when a device is not eligible for its built-in model.
How do cost, battery and updates compare?
On-device AI moves cost from running to building. You avoid per-request charges, but you spend more on model preparation, device testing and keeping several app versions working. Heavy processing can also drain the battery and warm the phone, which users notice quickly.
Cloud AI is the reverse. It is quicker to build and change, but every request has a cost that scales with use, and long inputs cost more. Plan a budget per user or per conversation and measure it after launch. Our guide to AI app development costs gives UK planning context, and the article on hidden costs of app development is a useful check for items such as maintenance and testing that are easy to overlook.
For updates, cloud changes can go live the same day, while on-device models follow your release cycle unless you download models separately. Plan how you will test, roll out and, if needed, roll back each model version.
How should you decide for your own app?
Work through one feature at a time. Ask whether it must work offline or respond instantly, whether it needs a large or frequently updated model, and whether the data is sensitive. If the first answer is yes and the model can be small, lean on the device. If the second is yes, lean on the cloud. If the third is yes, minimise the data you collect whichever route you choose.
Figure 2: a simple way to decide where each part of a feature should run.
Then build a small prototype of the riskiest option and test it on a spread of real phones, including older and mid-range ones, before you commit. Measure speed, memory, battery and accuracy against your own examples. Write the outcome into your brief so that suppliers price the same thing; our app development brief template is a good place to start. On Android, LiteRT covers running your own models on the device. Platform strategy matters too: our guide to native vs hybrid apps helps you decide how much of the AI work to build natively. Build your test matrix from the device and OS compatibility section of our QA best practices guide, and use our bug-finding guide for the wider process.
Frequently asked questions
What is on-device AI in a mobile app?
Is on-device AI more private than cloud AI?
Can large language models run on a phone?
Which is cheaper, on-device or cloud AI?
Does on-device AI work without internet?
What is a hybrid AI approach?
Which tools help run AI on the device?
How do I choose between on-device and cloud AI?
Conclusion
There is no single right answer, because the best choice depends on the feature. Use the device for fast, private or offline tasks with small models, use the cloud for large or changing models, and combine them where each does its best work. Prototype early and test on real phones.
If you are deciding where AI should run in your app, our app development brief template helps you set out the requirements before you speak to suppliers. To talk it through with the Nordstone team, get in touch.