Written by Gowtham Raj, Director at TartLabs, whose team builds mobile apps and AI features for clients.
The Short Answer
On-device AI executes a model on the phone's processor. Cloud AI forwards a request to a server-hosted model and waits for its response. In a 2027 mobile app, the useful decision is where each task belongs, since very few apps should choose only one route.
Our recommendation: keep a task local when its input is short, its data is personal, it must work offline, or it runs frequently enough for per-request charges to accumulate. Use the cloud for long context, demanding reasoning, current knowledge, or consistent quality across users' phones. Design the feature with a fallback between the two paths.
By the end of 2026, three developments turned this into a genuine choice. Apple and Google now include a free language model in their operating systems, and each expanded its capabilities during the year. Phone-sized open models also became quick: Google's Gemma 4 E2B decodes at 52 tokens per second on a Galaxy S26 Ultra GPU. And the cheapest cloud models dropped to $0.10 per million input tokens, so the cloud is no longer the expensive option by default.
Key Takeaways
- About half of new phones will qualify. Counterpoint Research forecasts GenAI-capable phones at 45% of global shipments in 2026 and 52% in 2027. The other half of new phones, and most older ones, still need a cloud path.
- On-device models are fast enough for short tasks. Google's own benchmarks show Gemma 4 E2B reaching its first token in 0.3 seconds and decoding at 52 to 56 tokens per second on flagship phone GPUs.
- Local models have small windows. Depending on the device, Apple's on-device model supports 4K to 8K context tokens. Android's Prompt API takes under 4,000 input tokens, while Gemini Nano runs only when your app is foregrounded.
- Cloud is cheap, and prices move. Both Claude Haiku 5.5 and gpt-6-luna list input at $0.10 and output at $0.50 per million tokens. On 1 January 2027, Gemini 3.8 Flash doubles to $1.50 and $7.50.
- Hybrid is the sensible default. With Firebase AI Logic and Apple's Private Cloud Compute, a feature can direct every request to either the device or the cloud.
What Changed in 2026
By 2026 the model ships with the phone, and the year's releases made it more capable: Apple added a larger on-device tier and a cloud handoff, Google released Gemini Nano 4, and Gemma 4 arrived for teams that bring their own model. On a supported device, an app no longer needs to download gigabytes of weights before its first AI feature can work.
Apple. Through the Foundation Models framework, apps access a language model already stored on the device. Apple's developer documentation describes two on-device tiers: phones such as iPhone 15 Pro, iPhone 16 and iPhone 17 receive a 3-billion-parameter model, while newer Pro-class hardware such as iPhone 17 Pro, iPhone Air, iPhone 18 Pro and iPhone Duo under iOS 27 receives a 20-billion-parameter model. A device has exactly one tier, which the app cannot select. Local use is unlimited and available offline. A third tier uses Apple's Private Cloud Compute, with a 32K context window and a daily per-user limit.
Google. Android's AICore system service runs Gemini Nano, which apps access through the ML Kit GenAI APIs. In July 2026, Google said Gemini Nano was "now running on over 140 million devices". Google supplied that count itself and did not publish a method. Gemini Nano 4, the latest version, uses the Gemma 4 architecture and appears on phones including Pixel 10 and 11 and the Galaxy S25 and S26 lines.
Open models and runtimes. Teams that prefer to ship a model of their own can use Google's LiteRT-LM to run Gemma 4 on Android, iOS and the web. Meta's ExecuTorch, the other main runtime, reached version 1.6.0 in November 2026. Apple also documents a Core AI framework for running a custom on-device model within a Foundation Models session.
Chips. Language-model metrics now appear in phone-chip launch material. MediaTek says the Dimensity 9600 Pro's NPU delivers 55% higher token generation per watt than its predecessor, based on demo devices in its own labs. Qualcomm lists a 35% faster NPU for the Snapdragon 8 Elite Extreme Gen 6. Since neither gives an absolute tokens-per-second figure, read these as directional claims rather than benchmarks.
Reach needs one qualification: the share is increasing as the overall market contracts. Counterpoint projects a 13.9% fall in global shipments, to 1.08 billion units in 2026, due to the memory supply crisis. IDC also reported a 21.2% year-on-year decline to 258.1 million units in the third quarter of 2026. Since people are retaining phones longer, the capable installed base will expand more slowly than shipment share implies. Counterpoint additionally links GenAI capability to phones above $400 wholesale, an important constraint in price-sensitive markets.
On-Device AI vs Cloud AI: Side-by-Side Comparison
This table sets out the three locations where a mobile app can run a language model in 2027: the model built into the operating system, an open model you bundle yourself, and a cloud API.
| Factor | OS-provided model (Apple Foundation Models, Gemini Nano) | Bundled open model (Gemma 4 via LiteRT-LM or ExecuTorch) | Cloud API |
|---|---|---|---|
| Cost per request | None | None | Per token, from $0.10 per million input tokens |
| Works offline | Yes | Yes | No |
| Where user data goes | Stays on the phone | Stays on the phone | Leaves the phone |
| Context size | 4K to 8K tokens on Apple, under 4,000 input tokens on Android | Set by the model and the phone's memory | Tens of thousands of tokens and up |
| Device reach | Recent flagships and upper mid-range only | Any phone with enough memory and storage | Any phone with a connection |
| App size impact | None | About 2.6 GB to 3.7 GB download for Gemma 4 | None |
| Same output on every phone | No, the model differs by device and OS version | Yes, you pin the model | Yes, you pin the model |
| Who updates the model | Apple or Google, on their schedule | You | The provider, with version pinning |
| Best for | Summaries, rewriting, classification, extraction from short text | Regulated or offline-first apps that need one consistent model | Long documents, multi-step reasoning, search-backed answers |
The easiest row to miss is "same output on every phone". An OS-provided model leaves you without control over the model assigned to a user. A prompt tuned on an iPhone 18 Pro runs against a far smaller model on an iPhone 16. That can be handled, but only if you plan and test for it.
What Can On-Device Models Handle in 2027?
In 2027, on-device models are effective at short, bounded language work such as summarising a screen of text, rewriting a message, classifying a support request, extracting receipt fields, or describing an image. Long documents, open-ended research and multi-step agent work remain poor matches.
Speed
Google publishes phone benchmarks for Gemma 4 on its LiteRT-LM model page. On a Galaxy S26 Ultra GPU, the smaller E2B model emits its first token after 0.3 seconds and decodes at 52 tokens per second. On an iPhone 17 Pro GPU the figures are 0.3 seconds and 56 tokens per second. These are Google's own tests, and the page does not state the prompt lengths used.
The chart makes two factors clear: model size and backend. On iPhone, shifting E2B from GPU to CPU cuts speed in half. On Galaxy, the backends are near each other, while the larger model causes the slowdown. With E4B on CPU, decoding falls to 10 to 18 tokens per second and the first token takes 5.3 to 6.5 seconds.
In product terms, a 300-token answer takes around six seconds at 52 tokens per second and around thirty seconds at 10, with another five to six seconds before the first token in the slower case. We calculated those figures; they are not published results. Streaming the text as it is generated hides most of the wait in the fast case and none of it in the slow one.
Limits to Plan Around
- Context is small. Apple's documentation gives the on-device model a context of 4K to 8K tokens, depending on the device. Its technote on the context window recommends checking the limit at runtime. On Android, the ML Kit Prompt API takes under 4,000 input tokens, which Google equates to about 3,000 English words.
- Foreground only on Android. Google's Gemini Nano documentation says AICore runs inference only while your app is the top foreground app, and it enforces a per-app quota. That rules out background summarisation jobs.
- The Android API is still beta. When we checked on 3 December 2026, the Prompt API dependency was
1.0.0-beta4. - Storage adds up. According to Apple, Apple Intelligence may consume up to 14 GB on its newest devices and up to 8 GB on other supported devices. If you bundle your own model, Gemma 4 E2B is a 2.58 GB file and E4B is 3.65 GB.
- Memory varies by backend. Depending on the phone and whether it uses GPU or CPU, Google reports Gemma 4 E2B peak memory of about 600 MB to 1.7 GB.
- Energy is not yet well measured. We found no vendor-published battery figure for 2026 that we would rely on. Before promising all-day use, test on the devices you target.
What Does Cloud AI Cost in 2027?
For a mobile app, cloud AI costs $0.10 to $1.50 per million input tokens on the budget tiers most apps use, while output tokens cost five to six times as much. A short request therefore costs a fraction of a cent.
The figures below are each provider's list price as shown on 3 December 2026.
| Model | Input, per 1M tokens | Output, per 1M tokens |
|---|---|---|
| Claude Haiku 5.5 (prompts up to 100,000 tokens) | $0.10 | $0.50 |
| gpt-6-luna | $0.10 | $0.50 |
| Gemini 3.1 Flash-Lite | $0.25 | $1.50 |
| Gemini 3.8 Flash, until 31 December 2026 | $0.75 | $3.75 |
| Gemini 3.8 Flash, from 1 January 2027 | $1.50 | $7.50 |
For a concrete app example, assume a feature sends 1,000 input tokens and receives 300 output tokens. If 100,000 monthly users invoke it 20 times each, that produces 2 million requests per month. The chart uses list prices to show the monthly bill. We calculated these amounts from the table above, excluding caching, batch discounts and free tiers.
There are two takeaways. First, a short task at the budget tier creates a small cloud bill, so cost by itself seldom warrants a move to the device. Local execution avoids the request fee but requires engineering work for device checks, fallbacks and another prompt-testing cycle. Second, provider selection and price changes affect the bill much more than the local-versus-cloud decision. The bill for the same Gemini 3.8 Flash workload doubles on 1 January 2027 with no change to your code.
Local execution makes a stronger financial case when a feature runs continuously, such as autocomplete, live classification for every message, or processing on each keystroke or camera frame. For budgeting details, see our guides to the cost of integrating AI into existing software and mobile app development cost in 2027.
Privacy and Regulation
On-device inference leaves the user's text, photos and voice on the phone, reducing the information you must disclose, protect and defend. The app remains subject to privacy and AI law.
For 2027 planning, these dates matter:
- EU AI Act. The European Commission says that the Act became generally applicable on 2 August 2026 and that the AI Omnibus, in force since 27 July 2026, extended the Annex III high-risk rules to 2 December 2027. The Act governs an AI system's function wherever it runs, so a high-risk use case remains high-risk on a phone.
- India's DPDP Rules. According to law firm Shardul Amarchand Mangaldas, core duties such as notice and consent, security safeguards and breach reporting begin 18 months after the Rules were notified in November 2025, which is May 2027. Ask counsel to confirm the exact day because published summaries differ by a day. Our mobile app privacy compliance guide for 2027 provides more timeline detail.
- GDPR. If your app determines the purpose, handling personal data on the user's device is still processing. What changes is that nothing is transferred to your servers or to a model provider, which removes a processor agreement and a cross-border transfer question from that feature.
In practice, on-device processing works best as data minimisation. Health notes, private messages, financial documents and children's data are the most obvious candidates. When the cloud remains necessary, one common approach is to redact or summarise locally, then transmit only the reduced text.
Why Hybrid Is the Default
A hybrid design chooses the device or cloud for each request according to the task, handset and connection. Both platform owners now provide tooling for this approach, a useful indication of where they expect apps to end up.
Firebase AI Logic. Google's SDK provides hybrid inference on Android in four modes: prefer on-device, only on-device, prefer cloud and only cloud. Gemini Nano through the Prompt API powers the local route. A corresponding SDK for Apple platforms uses Apple's Foundation Models framework on-device. Both carry an Experimental label. Google's documentation notes several limits: only English and Korean are validated on Android, multi-turn chat and tool calls do not automatically fall back to cloud, and the iOS local route handles text only.
Apple Private Cloud Compute. Starting with iOS 27, the same framework lets an app shift a request from the local model to a larger Apple cloud model. Apple says developers in the App Store Small Business Program with fewer than 2 million first-time downloads can use it without a cloud API charge. An entitlement is required, daily per-user limits apply, and developers who exceed the threshold get six months to migrate. Apple has said expanded access will be available for a fee later, but has not published a price.
A routing rule we recommend as a starting point:
- At runtime, verify that an on-device model exists and is ready.
- Run locally when the input fits the local context window and the task belongs on your "simple" list.
- Route to cloud when no device model exists, the input is too long, or local output fails validation.
- When the user is offline but the task requires cloud, explain that plainly and queue or disable the feature.
- Record the route for every request so the actual split is visible.
How to Choose: A Seven-Question Checklist
Apply these questions to each AI feature rather than to the app overall. Different features in the same app will land on different sides.
- How long is the input? Inputs below about 3,000 words can run locally. Send longer ones to cloud or split them into chunks.
- Does the data need to stay on the phone? Begin on-device when the feature handles health, finance, private messages or children's data.
- Must it work offline? A local route is necessary for field and travel apps, plus anything used where coverage is poor.
- How often does it fire? The cloud suits a few calls per session; the device suits every keystroke or frame.
- How hard is the reasoning? Summarising, rewriting, classifying and extracting fit local models. Planning, multi-step tool use and questions requiring current facts fit cloud models.
- What phones do your users have? Use analytics to find the device mix. If most users lack an OS-provided model, on-device becomes an enhancement for some users, and the cloud path carries the feature.
- Can you live with different answers on different phones? When consistency matters, such as in a regulated workflow, pin a cloud model or bundle one yourself.
When the first three answers are "short", "yes" and "yes", begin with on-device. If questions five and six indicate difficult reasoning and older phones, begin with cloud. Cases between those ends call for hybrid.
A Rollout Plan for 2027
- Weeks 1 to 2: measure. Gather your device and OS mix, then catalogue every AI feature by typical input length, frequency and data sensitivity.
- Weeks 3 to 6: build one feature both ways. Choose a short, bounded job such as note summarisation. Put an OS-provided model and a budget cloud model behind the same interface.
- Weeks 7 to 8: test. Apply one evaluation set to every model the feature may reach, including the smallest on-device tier. Our guide to testing LLM applications explains how to create that set.
- Weeks 9 to 12: ship behind a flag. Start with a small percentage, record the device-versus-cloud split, time to first token and failure rate, then expand.
- Each quarter: check provider prices and platform limits again. Both changed multiple times in 2026.
If Siri or Gemini must also reach the feature, our App Intents guide for 2027 covers that area. For the role of on-device AI in a broader product plan, see our AI strategy guide for software companies.
Common Mistakes
- Assuming every user has the model. In 2027, roughly half of new phones will lack GenAI capability, and most older phones lack it too.
- Tuning prompts on one flagship. An older supported phone may run that same prompt against a different model.
- Bundling a multi-gigabyte model by default. Asking users to download 2.6 GB is difficult over mobile data and on devices with little free storage. Start with the OS-provided model and bundle only when consistency is needed.
- No fallback. A local model may be unavailable, downloading, over quota or busy. Define behaviour for every case.
- Treating on-device as a compliance exemption. Local execution lowers data exposure, but consent, notices and AI Act duties remain.
- Fixing the cost model once. A provider price change can double the bill overnight. Put the model behind a configuration switch.
The Bottom Line
In 2027, on-device AI can handle short, private and frequent tasks on about half of new phones, while cloud AI is inexpensive enough that cost alone seldom justifies leaving it. Most mobile apps will want both: a local path for the tasks that suit it, and a cloud path for everything else and for every phone without a model. The main design work lies in routing, fallbacks and testing across multiple models.
If on-device or hybrid AI appears on your 2027 roadmap, contact TartLabs. Our mobile app development and AI development teams can assess your features against the checklist and estimate the work for both platforms. For wider planning, read our AI strategy guide for software companies and our guide to developing AI-powered mobile apps.




