On-Device AI in Mobile Apps: 2026 Data, Costs and When to Use It

On-device AI in 2026: Apple's free 3B-parameter model, Gemini Nano devices, a cost model vs cloud, and why Gemini Flash prices double on January 1, 2027.

Our content is written and reviewed by the Four Cents team. We may recommend our own services. Read our editorial standards.

On this page

On-device AI is the fastest-growing way to add AI features to a mobile app in 2026, because both Apple and Google now ship a language model inside the phone's operating system that apps can call for free. This guide gathers the published numbers on both platforms, the phones that can run them, a worked cost comparison against cloud models, and a decision table for when to use each. It also covers a dated change that strengthens the case: Google's Gemini 3.8 Flash API prices double on January 1, 2027. Updated November 19, 2026.

What on-device AI is, in one paragraph

On-device AI means the AI model runs on the user's phone instead of on a server. The prompt, the data and the answer never leave the device, there is no network round trip, and nobody pays a per-request bill. Since 2025 both Apple and Google ship a language model inside the operating system that apps can call: Apple's on-device foundation model through the Foundation Models framework, and Google's Gemini Nano through Android's AICore service and the ML Kit GenAI APIs.

The trade-off is size. Apple describes its on-device model as "a compact, approximately 3-billion-parameter model." That is small next to cloud models, so on-device AI suits focused tasks such as summarizing, extracting, classifying and rewriting, and not open-ended reasoning or code. Most real apps therefore end up hybrid: on-device first, with a cloud model as the fallback.

Definitions used on this page:

  • Inference: running a trained model to get an answer. Cloud inference is billed per token; on-device inference has no per-use charge.
  • Token: a chunk of text, roughly three-quarters of an English word on average. Cloud prices are quoted per million tokens.
  • Hybrid inference: sending each request to the device model when it can handle it and to a cloud model when it cannot.
  • NPU: the neural processing unit, the part of the phone's chip that runs these models efficiently.

Search demand for on-device AI is rising

US Google searches for "on device ai" reached 880 in October 2026, up from 320 in November 2025, according to Google Ads data we pulled through DataForSEO on November 19, 2026. That is a 175% rise in twelve months, with a spike to 1,000 in May 2026.

Month (US)Searches for "on device ai"
November 2025320
January 2026480
March 2026590
May 20261,000
July 2026590
September 2026720
October 2026880

The related platform terms are bigger. "Gemini Nano" averaged 2,400 US searches a month over the same period, and "on-device llm" about 90 with a cost per click of $8.91. DataForSEO rates "on-device ai" at a keyword difficulty of 15 out of 100, which tells us the topic is still young: few pages have tried to answer it well.

Apple: the Foundation Models framework

The Foundation Models framework gives iOS, iPadOS, macOS and visionOS apps direct access to the on-device model behind Apple Intelligence, starting with version 26 of each OS, and on watchOS from version 27. Apple's research team says app developers can use this AI inference "free of cost."

The model, in numbers

PropertyWhat Apple published
SizeApproximately 3 billion parameters
CompressionDecoder weights at 2 bits per weight using quantization-aware training; embeddings at 4 bits; KV cache at 8 bits
Training contextFinal pre-training stage used sequences of up to 65K tokens
Languages (2025 report)Designed to support 15 languages
Cost to developersFree of cost
Larger optionPrivate Cloud Compute or any server model provider, through the same framework

Source: Apple Machine Learning Research (June 9, 2025, updated July 17, 2025) and the Foundation Models documentation.

What Apple says it is good at

Apple's documentation lists summarizing, extracting entities, understanding text, refining or editing text, classifying or judging text, creative writing, generating tags and generating game dialogue. It also lists what to avoid: basic maths, creating code and logical reasoning. Apple's own example of a bad prompt is counting the letter b in "bagel."

Three features that make it practical

  • Guided generation. With the @Generable macro, the framework guarantees the model returns an instance of your Swift type, so you get structured data instead of free text you have to parse.
  • Tool calling. The model can call tools you define, for example to search your app's database, so answers use your real data.
  • Availability checks. SystemLanguageModel.default.availability tells you if the device is not eligible or the model is still downloading. Apple says to "always verify model availability first, and plan for a fallback experience."

One limit catches teams out: a session handles one request at a time and throws a runtime error if you call it again before the previous request finishes.

Thinking about AI features for your app?We will tell you which features can run on the phone for free, which need the cloud, and what each costs to build. Fixed quote within 24 hours.
Get an AI feature quote

Google: Gemini Nano, AICore and ML Kit GenAI

Gemini Nano is Google's on-device model. It runs in AICore, an Android system service that uses the phone's hardware for low-latency inference and keeps the model updated, so your app does not ship or download the model itself. Developers reach it through the ML Kit GenAI APIs.

ML Kit GenAI capabilityWhat it does
Prompt API (GenerativeModel)Custom text or multimodal prompts with typed structured output and multi-turn chat
Agentic workflows (AgentRunner)Multi-turn sessions and multi-step tool calling on the device
SummarizationSummarizes articles or conversations as bullet points
Proofreading and rewritingFixes and restyles short chat messages
Image descriptionGenerates a short description of an image
Speech recognition, speech translation, text to speechTranscribes, translates and synthesizes speech on the device
Semantic searchCreates embeddings for text and images to find content by meaning

Google's rules for using it are stricter than Apple's in two ways. First, "GenAI API inference is permitted only when the app is the top foreground application"; calls from the background, including from a foreground service, return BACKGROUND_USE_BLOCKED. Second, AICore enforces an inference quota per app and a longer battery-use quota, and returns errors when you exceed them. Google does not publish the numbers, so build retry with backoff from day one.

Which phones can run on-device AI?

Only recent, higher-end phones can, which is the biggest limit on this whole approach. Apple Intelligence, which the Foundation Models framework needs, runs on iPhone Duo, iPhone 16 models or later, iPhone 15 Pro, iPhone 15 Pro Max and iPhone Air, on iPads with M1 or later and iPad mini with A17 Pro or A20 Pro, and on Macs with M1 or later. It needs up to 8 GB of storage on most supported devices and up to 14 GB on iPhone Duo and iPhone 17 Pro models and later.

On Android, Google groups devices by Gemini Nano generation:

GenerationExample devices Google lists
Gemini Nano 4Google Pixel 10 and 11 series, Samsung Galaxy S25 and S26, Galaxy Z Fold and Flip, plus OPPO Find, OnePlus, Motorola, Honor, Sony Xperia and Sharp AQUOS models
Gemini Nano 3Google Pixel 9 series, OPPO Reno series, realme GT 7T, and Googlebooks from Acer, ASUS, Dell, HP and Lenovo
Gemini Nano 2POCO, realme, Redmi, vivo and Xiaomi models such as the Xiaomi 15 and 17 series

Google also warns that different Gemini Nano versions "may produce different output for the same prompt," and that availability depends on RAM, OS version and AICore updates. Test on at least one device per generation you care about.

For a Canadian app, the split matters. StatCounter put iOS at 64.74% and Android at 35.26% of mobile use in Canada in October 2026. An iPhone-first Canadian app can reach a large share of its users with Apple's framework, but anyone on an older iPhone or a budget Android phone needs a fallback. Never build a feature that only works on the device model unless the feature is optional.

On-device AI on iPhone vs Android, side by side

The two platforms reach the same goal by different routes. Apple gives you one general model with strong Swift tooling; Google gives you one general model plus ready-made task APIs, with stricter runtime limits.

QuestionApple Foundation ModelsGoogle Gemini Nano (ML Kit GenAI)
Where the model livesIn the OS, part of Apple IntelligenceIn AICore, an Android system service
Model size publishedAbout 3 billion parametersNot stated on the pages we read; versions 2, 3 and 4 vary by device
Ready-made task APIsGeneral prompting with guided generation and toolsSummarization, proofreading, rewriting, image description, speech, embeddings, plus a Prompt API
Structured output@Generable Swift typesTyped structured output in the Prompt API
Tool callingYesYes, through AgentRunner
Background useNot restricted in the documentation we readBlocked; foreground app only
Usage limitsOne request at a time per sessionPer-app inference quota and battery quota, numbers not published
Cloud step-upPrivate Cloud Compute or any server model through the same frameworkGemini Flash or Pro in the cloud through Firebase AI Logic
Cost per requestFreeNo inference cost on the device

For a cross-platform app, the practical upshot is to design each AI feature around the stricter platform. If a feature must run in the background, it cannot rely on Gemini Nano. If it needs a specific task API such as speech recognition, Android may give you more out of the box.

What on-device models do well, and what they do badly

Small models are good at transforming text you give them and bad at knowing things or reasoning through many steps. This table combines Apple's published guidance with Google's feature list.

TaskOn-device fitWhy
Summarize a note, chat or articleGoodListed by both Apple and Google
Pull names, dates, addresses out of textGoodEntity extraction is a named Apple capability; Kakao Mobility uses it in production
Classify or tag contentGoodNamed Apple capability
Rewrite or proofread short messagesGoodDedicated ML Kit APIs
Describe an imageGood on supported Android devicesML Kit image description
Transcribe speechGood on supported Android devicesML Kit speech recognition
Answer general knowledge questionsPoorSmall models know less; Apple points to server models for "extensive world-knowledge"
Maths and countingPoorApple lists basic maths as a capability to avoid
Write codePoorApple lists code generation as a capability to avoid
Multi-step logical reasoningPoorApple lists logical reasoning as a capability to avoid

A good rule: if the answer is already in the text or image the user provides, the device model can probably do it. If the answer needs facts from outside, use the cloud, or give the device model a tool that fetches the facts.

Five on-device AI features worth building in 2027

These are features that fit what small models do well, use data the user already has, and earn their keep in business apps. None needs a chatbot.

  1. Fill a form from free text. A customer pastes a message, an email or a note, and the app fills in the name, address, date and order details. This is exactly what Kakao Mobility shipped, with a 24% faster order flow.
  2. Summarize a thread or a record. Field service apps, CRMs and support tools can show a three-line summary of a long job history or conversation at the top of the screen. Both platforms list summarization as a core capability.
  3. Tag and sort what users add. Expense apps can categorise receipts, inventory apps can tag items, and content apps can suggest labels. Classification and tagging are on Apple's list of strengths.
  4. Tidy up short messages. Proofreading and rewriting a reply before it is sent, in a friendlier or more formal tone, is a ready-made ML Kit API on Android and a simple prompt on iOS.
  5. Search by meaning. Instead of matching keywords, the app finds "the invoice from the plumber in March" using embeddings. Google's semantic search API pairs embeddings with AndroidX AppSearch for this.

Each of these can fall back to a cloud model on older phones, and each is useful even if the AI part fails, because the user can still fill the form, read the thread or search the old way.

The cost math: on-device AI vs cloud AI, worked through

On-device inference has no per-use cost; cloud inference is billed per token, so the gap grows with every active user. Here is a worked example we built from Google's published Gemini API prices. The usage figures are our assumptions for a mid-sized consumer app, chosen to be round and easy to adjust.

  • 10,000 daily active users
  • 5 AI requests per user per day (for example, summarizing a message thread)
  • 1,500 input tokens and 200 output tokens per request
  • 30 days a month: 1,500,000 requests, 2,250 million input tokens and 300 million output tokens
Where the model runsPrice per 1M tokens (input / output, USD)Monthly inference cost (USD)Yearly (USD)
On the device (Apple Foundation Models or Gemini Nano)No per-use charge$0$0
Cloud: Gemini 2.5 Flash-Lite$0.10 / $0.40$345.00$4,140.00
Cloud: Gemini 3.8 Flash, prices to December 31, 2026$0.75 / $3.75$2,812.50$33,750.00
Cloud: Gemini 3.8 Flash, prices from January 1, 2027$1.50 / $7.50$5,625.00$67,500.00

Prices from Google's Gemini API pricing page, paid tier, text, read November 19, 2026. Our calculation.

Three things stand out. First, a cheap cloud model is cheap: $345.00 a month is small change for most businesses, so cost alone is rarely the reason to go on-device for a small app. Second, the jump to a more capable model is large: the same traffic costs $2,812.50 a month on Gemini 3.8 Flash at 2026 prices, about 8.2 times the Flash-Lite bill. Third, cloud prices change under you, which is the next section.

If half of those requests could be handled on the device, a hybrid setup would cut the Gemini 3.8 Flash bill from 2027 by half, to $2,812.50 a month. The real share depends on how many of your users have supported phones, which is why the device data above matters. Remember the hidden cost too: you build, test and maintain two paths instead of one.

The January 1, 2027 cloud price change

Google's pricing page lists Gemini 3.8 Flash, which it calls "our most intelligent Flash model," at $0.75 per million input tokens and $3.75 per million output tokens through December 31, 2026, rising to $1.50 and $7.50 from January 1, 2027. Both prices double. The same page lists Gemini 3.6 Flash at the same prices.

In our worked example, that change moves the monthly bill from $2,812.50 to $5,625.00, an extra $2,812.50 a month or $33,750.00 a year, with no change in usage. Apps that send every AI request to the cloud absorb that increase in full. Apps that run the routine part of the workload on the device absorb only the share they still send to the cloud.

This is the practical case for on-device AI in 2027: not that cloud AI is expensive today, but that your cost is set by someone else's price list. Moving routine tasks onto the device is a hedge. If your app uses a different provider, check its pricing page for similar changes before you set next year's budget. We will update this section if Google changes the January 2027 prices.

Case study: Kakao Mobility and Gemini Nano

The best published example of on-device AI in a business app is Kakao Mobility, which Google wrote up on October 30, 2025. Kakao T, its transport and delivery app, serves over 30 million total users in South Korea.

The team used Gemini Nano through ML Kit's Prompt API for two features. One checks a photo of a parked bike or scooter for rule breaches, such as parking on yellow tactile paving, without sending location photos to a server. The other reads a delivery order typed as a chat message and extracts the recipient's name, address and phone number into the order form. They evaluated each feature against around 200 labelled examples and used few-shot prompting to cut hallucinations. A cloud path on Gemini Flash handles devices without Gemini Nano.

Results Google reported for the address feature, which is live:

MeasureResult
Delivery order completion timeReduced by 24%
Conversion rate, new usersUp 45%
Conversion rate, existing usersUp 6%
AI-powered orders in peak seasonsUp by over 200%

Two lessons transfer to almost any app. The win came from a narrow, boring task (filling a form from free text), not from a chatbot. And the team still built a cloud fallback, because not every user's phone could run the model.

Have a form your users hate filling in?Extraction from free text is one of the best uses of on-device AI. We can prototype it on your real data and quote the full build.
Talk to us about it

Privacy: what stays on the phone

On-device processing keeps prompts and results on the device, which is the main reason regulated apps look at it. Google states that AICore "is built to isolate each request and doesn't store any record of the input data or the resulting outputs after processing them." AICore also has no direct internet access; model downloads go through the open-source Private Compute Services companion app.

That does not remove your obligations. Under PIPEDA, and Quebec's Law 25 where it applies, you still need to explain what your app collects and why, even if the processing is local. Two practical points:

  • Hybrid means some data leaves the device. If your fallback sends requests to a cloud model, your privacy policy must say so. Apple's App Review Guidelines require apps to disclose where personal data is shared with third parties, including third-party AI, and to get explicit permission first.
  • Protect the cloud path. Google's hybrid guidance warns that calling cloud APIs directly from an app "can risk exposing credentials and leading to unwanted charges," and recommends Firebase App Check and spending caps.

Our free app privacy policy generator includes wording for AI processing. For health and financial apps, our healthcare app guide covers the provincial health privacy rules.

Hybrid inference: the practical answer for most apps

Most production apps should run AI on the device when they can and in the cloud when they must. Google's Firebase AI Logic Hybrid API builds this routing in, with four modes:

ModeBehaviourWhen to use it
PREFER_ON_DEVICETry the device model; fall back to the cloud if it is unavailableDefault for routine tasks
PREFER_IN_CLOUDUse the cloud when online; fall back to the device when offlineQuality matters most, offline still useful
ONLY_ON_DEVICEDevice only; error if unavailableData that must never leave the phone
ONLY_IN_CLOUDCloud only; error otherwiseTasks small models cannot do

On iOS, the Foundation Models framework does the same job from the other side: the same API reaches the on-device model, Private Cloud Compute or a server model provider, and Apple's "dynamic profile API" lets you pick the configuration per task. Google also notes that custom routing can weigh network latency, battery level and query complexity, and names Gboard and Kakao Mobility as apps that built their own.

For cross-platform apps built with React Native or Flutter, both models are native APIs, so you need a thin native module on each platform. Our guide to building an AI app covers the wider architecture, and the App Intents and Siri AI guide covers the other new way AI reaches your app: the system assistant calling into it.

How to decide: on-device, cloud or hybrid

If your feature...ChooseReason
Transforms text or images the user already has, and is optionalOn-deviceNo per-use cost, works offline, data stays local
Is core to the app and must work on every phoneHybridDevice model where available, cloud for the rest
Needs world knowledge, long reasoning or codeCloudSmall models are weak at these by design
Handles health, financial or children's dataOn-device first, with careLess data leaves the phone; any cloud path needs disclosure and consent
Runs in the background (sync, scheduled jobs)Cloud, or on-device on iOS onlyAndroid's GenAI APIs only run when your app is in the foreground
Will run at high volume on a capable modelHybridCuts the bill and the exposure to price rises such as January 1, 2027
Is still an experimentCloudFastest to build and change; move to the device once it proves useful

How to test an on-device AI feature

Treat the prompt like code: write tests first and run them on every change. Kakao Mobility evaluated each feature against around 200 labelled examples, measured accuracy, precision, recall and F1 score, and refined the prompt over many rounds. That is a sensible size for a first evaluation set.

  1. Collect real inputs. Gather 100 to 200 anonymised examples of the text or images the feature will see, including messy ones.
  2. Write the expected output for each. For extraction, the correct fields. For summaries, the facts a good summary must include.
  3. Run the set on each target device generation. Google warns that different Gemini Nano versions can produce different output for the same prompt, so one test phone is not enough.
  4. Test unavailability. Simulate a device that is not eligible, a model still downloading, a quota error and airplane mode. Each should fall back cleanly.
  5. Re-run after every OS update. The model is updated by the system, not by you. A spring OS release can change results without any change to your app.

Our app quality assurance guide covers how this fits into a normal release process.

What on-device AI costs to build

Running the model costs nothing per use, but building the feature is real work: prompt design, an evaluation set, availability checks, a fallback path and testing across devices. Our published price sheet lists AI features as an add-on at $2,000 to $5,000 CAD on top of the app build. A single focused on-device feature, such as summarizing or extracting from text with a cloud fallback, usually sits in that range. Several features, or on-device and cloud paths on both iOS and Android, are quoted after we see the scope.

For the rest of the app, the bands are $5,000 to $12,000 for a single-platform app and $8,000 to $18,000 for iOS and Android together. You can combine them in our app cost calculator, and the AI app development cost page explains what drives AI pricing. Budget for upkeep as well: OS releases change these APIs every year, which is part of why maintenance runs roughly 15 to 20% of the build per year.

How we compiled this

  • Platform facts come from Apple's and Google's developer documentation and research pages, read on November 19, 2026. Where documentation did not state a number (for example Google's quota limits), we say so rather than estimate it.
  • Cloud prices are from Google's Gemini API pricing page, paid tier, text tokens, read November 19, 2026. They are in US dollars.
  • The cost example is our own calculation. The user count, request rate and token counts are assumptions we chose; change them and the totals scale in direct proportion.
  • Search demand and keyword difficulty come from DataForSEO (Google Ads search volume, DataForSEO Labs difficulty) for the United States, pulled November 19, 2026. Canadian volumes for these terms were too small for Google Ads to report.
  • Market share figures are StatCounter's for Canada, October 2026.
  • Apple's model figures (3 billion parameters, 2-bit weights, 15 languages) come from Apple's 2025 research update; Apple may have changed the model since.

We will update this page when Apple or Google publish new model sizes, device lists or usage limits, and if the January 1, 2027 Gemini price change is revised. The vibe coding statistics page tracks the other side of AI in app development: AI writing the code itself.

Want a straight answer on AI for your app?Tell us the feature. We will say whether it runs on the device, what the cloud would cost at your volume, and give a fixed build quote.
Get my answer

Frequently asked questions

On-device AI runs the model on the user's phone instead of a server, so the data never leaves the device, it works offline and there is no per-request charge. Apple offers it through the Foundation Models framework and Google through Gemini Nano, AICore and the ML Kit GenAI APIs.

Yes. Apple's machine learning research team says app developers can use the on-device model through the Foundation Models framework free of cost. It requires a device that supports Apple Intelligence.

Apple describes it as a compact model of approximately 3 billion parameters, with decoder weights compressed to 2 bits using quantization-aware training. It was designed to support 15 languages in Apple's 2025 report.

Google lists devices by generation: Gemini Nano 4 includes Pixel 10 and 11 and Galaxy S25 and S26, Gemini Nano 3 includes the Pixel 9 series, and Gemini Nano 2 includes Xiaomi, Redmi, POCO, realme and vivo models. Availability also depends on RAM, OS version and AICore updates.

Inference on the device has no per-use charge, while cloud models bill per token. In our worked example of 1.5 million requests a month, Gemini 3.8 Flash costs about $2,812 a month at 2026 prices and $5,625 from January 1, 2027, against $0 on the device. Building and maintaining the on-device path is the cost you pay instead.

No. Google's ML Kit GenAI documentation says inference is only permitted when the app is the top foreground application. Background calls, including from a foreground service, return a BACKGROUND_USE_BLOCKED error.

Apple's documentation lists basic maths, code generation and logical reasoning as capabilities to avoid, and points to larger server models for tasks needing extensive world knowledge. On-device models are strongest at summarizing, extracting, classifying and rewriting.

Usually. Google says AICore isolates each request and keeps no record of inputs or outputs, and has no direct internet access. If your app falls back to a cloud model, that data does leave the device and must be disclosed in your privacy policy.

Sources

Each figure and date above comes from one of these. The retrieved date is when we last confirmed the source still says what we say it says.

  1. Foundation Models framework Apple Developer Documentation. Retrieved 2026-11-19.
  2. Generating content and performing tasks with Foundation Models Apple Developer Documentation. Retrieved 2026-11-19.
  3. Updates to Apple's on-device and server foundation language models (June 9, 2025) Apple Machine Learning Research. Retrieved 2026-11-19.
  4. How to get Apple Intelligence (device and storage requirements) Apple Support. Retrieved 2026-11-19.
  5. Gemini Nano Android Developers. Retrieved 2026-11-19.
  6. ML Kit GenAI APIs Google for Developers. Retrieved 2026-11-19.
  7. Hybrid inference Android Developers. Retrieved 2026-11-19.
  8. Kakao Mobility uses Gemini Nano on-device to reduce costs and boost call conversion by 45% (October 30, 2025) Android Developers Blog. Retrieved 2026-11-19.
  9. Gemini API pricing Google AI Studio. Retrieved 2026-11-19.
  10. App Review Guidelines (last updated October 16, 2026) Apple Developer. Retrieved 2026-11-19.
  11. Mobile operating system market share in Canada, October 2026 StatCounter. Retrieved 2026-11-19.

About the author

Hamza Hai

Founder, Accountant & Project Manager, Four Cents

Hamza Hai is a founder of Four Cents and its accountant and project manager. She keeps projects on track and the numbers clear.

She manages timelines, scope and client communication, so there are no surprises for clients along the way.

She writes the mobile app costing and planning guides on mobileapplication.ca. They draw on the quoting and scoping work she does for Four Cents clients every week.

Areas of expertise

  • Software and app project management
  • Development costing and estimates
  • Project scoping
  • Budgeting for software projects

All articles by Hamza Hai (199 on mobileapplication.ca)

Reviewed by Zee, Founder & Lead Developer, Four Cents

Zee leads every Four Cents build as the senior full-stack engineer, from the first call to launch and beyond, and technically reviews the articles on this site.

Our editorial standards: who writes and reviews our articles, where our prices come from and how to report a correction.

Free quote

Tell us about your app

A senior engineer reads your brief and replies within 24 hours with questions and a fixed-scope estimate. No obligation and no sales sequence.

  • Written, fixed-scope quote before any work starts
  • You own the code, designs and accounts
  • Typical apps from $4,999 CAD
Prefer to talk? Call +1 (365) 440-1786Or email info@fourcents.ca

Request your free quote

Takes about a minute.

Fields marked with an asterisk are required.

Please enter your name.

Please enter a valid email address.

That phone number does not look right. Check it, or leave the field empty.

Please tell us a little more about your project (10+ characters).

Call Get a free quote