On-Device AI Models in 2026: Free Per Call, Not Free to Build For
Apple's Foundation Models framework, Google's Gemini Nano, and the real tradeoffs of running AI on the phone instead of the cloud.
AI-drafted, reviewed by Muhammad Qasim Hammad on August 27, 2026. See our AI disclosure.
Table of contents
- What does "on-device AI" actually mean in 2026?
- What can Apple's on-device Foundation Models framework actually do?
- What does Google's Gemini Nano do on Android?
- Why is zero inference cost the real headline, not raw model quality?
- What's the actual capability ceiling on a phone-sized model?
- Why can't you just build "for on-device" generically?
- Should this feature run on-device or call the cloud?
- What should a small team actually do this week?
Your app needs a language model for one narrow job: summarize a note, extract a date, rewrite a sentence in a friendlier tone. The default move in 2026 is still an API key, a few cents per call, and a feature that stops working the second the phone loses signal. On-device AI models are Apple's and Google's answer to that default: a language model already sitting on the phone, callable through a platform SDK, at zero marginal cost per call, that never sends a byte off the device, with a capability ceiling and a fragmented, platform-specific toolchain the marketing rarely mentions.
What does "on-device AI" actually mean in 2026?#
On-device AI in 2026 means a language model built directly into the phone's operating system, callable through a platform SDK, running on the phone's own chip instead of a data center. Apple ships this through its Foundation Models framework, Google through Gemini Nano and AICore on Android, both free to call and offline by default.
Both companies frame it the same way: the model ships with the OS, updates with the OS, and runs on-chip using the phone's own neural accelerator instead of a round trip to a server. Apple's version is a Swift framework; Google's is a set of Kotlin and Java APIs backed by a system service called AICore. Neither is a library you bundle into your app. Both are calls into something the OS already runs.
The chip underneath both stacks matters more than either company advertises. Apple's own silicon carries the Neural Engine; on Android, inference usually runs on a Qualcomm Hexagon or MediaTek NPU, the dedicated accelerator block that makes running a model on battery power feasible at all. A Snapdragon 8 Elite's Hexagon cores, for one example, have been benchmarked running an 8-billion-parameter model at around 5 tokens per second, entirely on-chip. That NPU layer is the real enabling hardware. The OS-level SDK is just the door you knock on to reach it.
What can Apple's on-device Foundation Models framework actually do?#
Apple's Foundation Models framework, launched with iOS 26 and rebuilt for its third generation at WWDC 2026, gives developers a free, private, offline Swift API for a 3-billion-parameter on-device model, plus a larger 20-billion-parameter sparse model, both tuned for narrow tasks, not general knowledge.
The framework's core object is LanguageModelSession, and the appeal from the first release was how little ceremony it needed: no API key, no network permission, structured output defined with a @Generable annotation instead of a hand-rolled JSON schema. That shipped in iOS 26 in 2025.
WWDC 2026 split the lineup in two: AFM 3 Core, the next version of the original 3-billion-parameter dense model, and AFM 3 Core Advanced, a 20-billion-parameter model with a sparse architecture that activates only 1 to 4 billion parameters per request. The full model lives in flash storage rather than requiring it all fit in RAM, the trick that makes a 20-billion-parameter model plausible on a phone at all. The same update added image input, so a session can reason over a photo alongside text, entirely on-device.
The bigger 2026 change is not a bigger model, it is a protocol. Apple opened the framework to any LLM provider: implement a LanguageModel and a LanguageModelExecutor, and the same LanguageModelSession code can target Apple's on-device model, its cloud tier (Private Cloud Compute), a locally-packaged Hugging Face model, or a third-party API, without a rewrite. It does not raise the ceiling on the free on-device model, but outgrowing that ceiling no longer means throwing away the integration.
What does Google's Gemini Nano do on Android?#
Gemini Nano is Google's on-device model for Android, reached through ML Kit GenAI APIs and the AICore system service. The 2026 tier, marketed as Gemini Intelligence, needs Nano v3, a flagship chip, and 12GB of RAM, a stricter floor than Apple's 8GB Apple Intelligence baseline.
AICore is the system service that holds Gemini Nano on the device, manages updates, and isolates its processing from the network the same way Android's Private Compute Core isolates other sensitive work: data goes in, an answer comes out, nothing reaches Google in between. ML Kit's GenAI APIs sit on top: summarization, proofreading, rewriting, image description, plus a general Prompt API for custom text or multimodal input.
AICore itself launched Pixel-only and now runs on non-Pixel Android 14 and newer devices too, widening its reach considerably. The catch is the newest tier. Google's Gemini Intelligence branding, introduced at I/O 2026, sits on top of Gemini Nano v3 and gates it hard: 12GB of RAM minimum, a flagship-class chip, and a commitment to 5 or more years of OS updates. Multiple outlets reported that requirement locking out phones as recent as the Pixel 9 and Galaxy S25, both released with less RAM than the new floor demands. That is a stricter bar than Apple ever set for Apple Intelligence, which shipped at 8GB of RAM on the iPhone 15 Pro in 2024.
| Platform | On-device model | Size | RAM floor | Developer framework |
|---|---|---|---|---|
| iOS / iPadOS / macOS | AFM 3 Core | 3B dense | ~8GB (Apple Intelligence baseline) | Foundation Models framework (Swift) |
| iOS / iPadOS / macOS | AFM 3 Core Advanced | 20B sparse, 1-4B active | Newer, higher-RAM devices | Foundation Models framework (Swift) |
| Android 14+ | Gemini Nano v3 | Not publicly sized | 12GB + flagship SoC (Gemini Intelligence tier) | ML Kit GenAI APIs / AICore (Kotlin, Java) |
Read the table as two separate product lines, not a spectrum. No version of either model runs on the other company's OS, and no shared API surface connects them.
Why is zero inference cost the real headline, not raw model quality?#
The real headline for on-device AI is not model quality, it's the bill. A call to the on-device model carries no metered API charge and no per-token line item, because there is no API call, just a function call into the OS. No other layer of the AI stack works this way.
Every other tier of AI economics, a frontier model, a mid-tier API, even a self-hosted open-weight model on your own server, still has a real per-request or per-hour cost somewhere. Our breakdown of the local LLM versus API break-even point walks through that math for hardware you buy and run yourself, a fixed monthly cost that only pays off once volume clears a threshold. On-device AI skips that calculation entirely: the hardware is not yours to amortize, it is already in your user's pocket, paid for by them, running on power they already budget for.
That changes the shape of the cost curve completely. An API bill scales with usage, linearly, forever. An on-device feature's marginal cost per call is $0 for every user, whether you have 100 users or 10 million, because each phone runs its own inference. The tradeoff is that you also give up what an API gives you: a model you chose, at a version you control, that improves when the vendor improves it, not only when the user updates their OS.
What's the actual capability ceiling on a phone-sized model?#
Both companies deliberately cap the on-device model's size, which caps what it can do. Apple says its on-device model is built for language understanding, structured output, and tool calling, not general knowledge. Ask it something a browser tab would need to answer and it will guess, confidently, and wrongly.
That is not a bug to route around, it is the design. A 3-billion or even 20-billion-parameter model, sparse or dense, will never hold the breadth of a frontier model trained on a far larger share of the internet, and neither company is trying to make it. Google's own API list is the tell: summarize, proofread, rewrite, describe an image, transcribe speech, each a narrow, well-specified transformation of input the app already has in hand, not an open-ended question about the world.
Neither Apple nor Google publishes exactly how AFM 3 Core or Gemini Nano get compressed down to a phone-sized footprint, but the industry's general playbook for shrinking a frontier model's behavior into a small one is model distillation: train a small student model on a larger teacher's outputs instead of shipping the giant model itself. Assume something in that family runs upstream of every on-device release, even without a published paper for either company's specific pipeline.
Long context is the other ceiling worth naming directly. Apple's own materials describe the on-device model as having no long-context mode worth relying on. If your task needs to reason over a long document or a long conversation history, that is a job for the cloud tier, not the free one.
Why can't you just build "for on-device" generically?#
There is no cross-platform on-device SDK. Apple's framework is Swift-only, built for iOS, iPadOS, and macOS. Google's is Kotlin and Java, built for Android through AICore. Different languages, different models, different RAM floors, different capabilities. Supporting both platforms on-device means writing and testing two separate integrations, not one.
This is the part the survey articles skip. "On-device AI" reads like one target you build toward, the way "the cloud" is one target for an API call. It is not. Apple's LanguageModelSession and Google's ML Kit GenAI Prompt API do not accept the same input shape, do not return the same structured-output format, and are not backed by the same model. WWDC 2026's provider protocol makes it easier to swap backends within Apple's own ecosystem, but it does nothing for the Apple-to-Android gap: still 2 SDKs, 2 languages, 2 RAM floors, and 2 sets of release notes to track.
If what you actually want is to choose your own model and run it on hardware you fully control, desktop or server-side, that is a different and more flexible trade, covered in our comparison of Ollama, LM Studio, and Jan. The platform SDKs in this piece trade that choice away in exchange for zero setup on the user's device and zero distribution cost to you.
Should this feature run on-device or call the cloud?#
There is a real decision here, not a default. Run the 3 gates in order: is the task narrow enough for a phone-sized model, is privacy or offline a hard requirement or is volume high enough to matter, and do your target devices actually clear the platform's RAM and chip floor.
Start with the task, not the platform. If it needs broad world knowledge, a long document, or reasoning outside what the app hands the model as context, that is a cloud job regardless of anything else here, skip straight there. If the task is narrow, classification, extraction, summarization, a rewrite, keep going.
Next, ask why you want on-device at all. A hard privacy or offline requirement justifies it on its own, no cost math needed. Short of that, on-device only pays off once call volume is high enough that a metered API bill would actually hurt, the same logic the cost break-even math runs for self-hosted hardware, just pushed further out to hardware you never had to buy.
Last, check the floor for real. Google's 12GB-plus-flagship-chip requirement for Gemini Intelligence and Apple's roughly 8GB Apple Intelligence baseline both exclude a meaningful share of phones still in active use. If your actual user base skews toward older or budget hardware, building on-device for only a fraction of them is a maintenance cost with a small payoff. Route everyone else to the cloud.
What should a small team actually do this week?#
Pick 1 narrow feature already on your roadmap, summarizing a note, tagging a category, rewriting a tone, and prototype it against the platform's free on-device model this week. That single afternoon tells you more about the real capability ceiling than any spec sheet, benchmark, or marketing page will.
Build the smallest possible version first: 1 platform, 1 task, 1 real device that clears the RAM floor, no fallback yet. You are testing whether the on-device model is good enough for this specific job, not building the production feature. That answer usually arrives faster than a week.
If it holds up, add the cloud fallback for devices below the floor and ship it as a genuinely free feature: no API key to provision, no per-call cost to model, no outage to plan around. If it does not hold up, you have lost an afternoon, not a quarter, and you already know to route that task straight to the cloud model you would have used anyway.
Frequently asked questions
What is on-device AI in 2026?
Is on-device AI actually free?
What is Apple's Foundation Models framework?
What is Google's Gemini Nano?
When should a small team use on-device AI instead of a cloud API?
Sources
Primary references and vendor documentation used while drafting and reviewing this article.
- Apple Machine Learning Research: Introducing the Third Generation of Apple's Foundation Models (WWDC 2026)
- Apple Developer: What's new in the Foundation Models framework (WWDC26)
- Android Developers: Gemini Nano
- 9to5Google: Gemini Intelligence has high Android spec requirements, likely won't support Pixel 9 or Galaxy Z Fold 7
- DEV Community (arshtechpro): WWDC 2026 - Apple Just Opened the Foundation Models Framework to Any LLM Provider
Written by
Muhammad Qasim Hammad is an AI agent and automation expert and the founder of Cart Gaze LLC (cartgaze.com). He builds product for the love of it: when an idea lands, a working prototype is usually running within hours, built with the same AI agents and automations he sells. He puts his own output at roughly 20× what it was before agents, and the Agentic OS behind this site is the working proof, documented in public with the tools he actually ran and what they really cost.
AI & Automation Services
Want a pipeline like this running in your business?
I'm Qasim — I design and ship AI agents and n8n automations for solo operators and small teams. Tell me what's eating your team's week, and I'll scope a fix.
Related reading
How to Choose an LLM for Your n8n AI Agent (2026)
Kimi K3, GLM-5.2, DeepSeek V4, Claude, and GPT all plug into an n8n AI Agent, and they are not interchangeable. Here are the 5 questions that decide the pick for your agent, and why the honest answer for most workflows is to route by task, not standardize on one.
n8n AI Agent Pricing: What It Really Costs to Run
An n8n AI agent has two bills that behave nothing alike: a flat n8n platform fee and a per-run LLM token cost. Here is what each one comes to, with modeled per-run math across Claude, GPT, and Gemini, and the levers that actually lower the total.
Model Distillation Isn't Using a Smaller Model. It's Training Your Own.
Model distillation trains a brand-new small model to imitate a larger teacher model's outputs on one narrow task, so production runs on the cheap model instead of paying frontier prices for every call. Here is the actual mechanism, what OpenAI's Model Distillation feature and
Cheapest AI API in 2026: DeepSeek vs Claude vs GPT vs Gemini
The cheapest AI API by published token rate in June 2026 is DeepSeek V4 Flash, but the lowest sticker rate is rarely the lowest bill. Here is a dated, source-linked price table for DeepSeek, Gemini, GPT, and Claude, the cost-per-task math that output tokens dominate, and the
Best Free AI IDEs in 2026: Truly Free vs Free-Trial
Most "free AI IDE" lists mix up four completely different things. This guide splits 11 tools into truly free, BYOK, freemium, and trial-only, so you know exactly what you're getting before you build.
Claude vs GPT vs Gemini in n8n: Tested Cost and Speed
There is a 25x cost spread between the cheapest and priciest LLM tier for the exact same n8n AI Agent workflow. This post prices all three providers across 11 model tiers so you can pick the right Chat Model sub-node and stop overpaying.





