Apple Foundation Models: on-device vs Private Cloud Compute
Short answer: the Foundation Models framework lets your app prompt the language model behind Apple Intelligence, with guided generation of Swift types through @Generable and tool calling. The on-device model has a context window of 4,096 tokens per session, works offline and has no usage limit. From iOS 27, PrivateCloudComputeLanguageModel offers a 32K-token context and stronger reasoning, needs a network connection, gives each person a daily request limit and requires a managed entitlement. Both need a device and region that support Apple Intelligence.
On-device model vs Private Cloud Compute
From Apple’s «Adding server-side intelligence with Private Cloud Compute», read 1 October 2026.
| SystemLanguageModel (on-device) | PrivateCloudComputeLanguageModel | |
|---|---|---|
| Context size | 4K tokens | 32K tokens |
| Works offline | Yes | No |
| Usage limits | Unlimited | Limit per day, more with iCloud+ |
| Reasoning | Not supported | Multiple levels |
| Preserves privacy | Yes | Yes |
| Availability | iOS, iPadOS, macOS, visionOS 26 and later; watchOS 27 | iOS, macOS, watchOS, visionOS 27 and later |
| Access | Any app on a supported device | Managed entitlement with eligibility requirements |
Staying inside the 4K context window
LanguageModelSession uses the same window: prompts, instructions, tool definitions and their input and output, generable schemas and every response. In English a token is typically three to four characters; in Chinese, Japanese, Korean and Vietnamese it is typically one character. When the window fills, the session throws contextSizeExceeded; start a new session, carrying over only the state you need. Use tokenCount(for:) and contextSize to measure, and the Foundation Models instrument in Instruments to see tokens per request. Apple recommends short imperative prompts of no more than three paragraphs, asking for less output, and maximumCount on generable arrays rather than cutting responses with maximumResponseTokens.Using Private Cloud Compute
LanguageModel, so you pass PrivateCloudComputeLanguageModel to the session initializer and your prompts, tools and instructions carry over. There are no API keys to manage. Apple advises starting with the on-device model, evaluating your feature, and moving to PCC only if it needs more reasoning or context. Because PCC exists only on 27-series OS versions and needs a network, check availability, fall back to the on-device model on earlier versions, and retry on-device if the network request fails. To develop with PCC you must meet eligibility requirements and request the managed entitlement.Daily limits
status to show whether someone is below, approaching or over their limit; when they are over it, the session throws quotaLimitReached, and resetDate says when the quota refreshes, if known. Apple asks for clear status UI rather than a dismissible alert, and the framework provides a path to system UI for upgrading. Apple’s documentation doesn’t publish the size of the daily limit.Availability, languages and model versions
SystemLanguageModel.default.availability before prompting: it depends on whether the device and region support Apple Intelligence. The model is multilingual; call supportsLocale(_:) before using it and handle unsupportedLanguageOrLocale by explaining the limitation or turning the feature off. Apple updates the on-device model in routine OS updates; there are currently three versions, for 26.0 to 26.3, 26.4 and 27.0, so retest prompts on each. Related: Android AppFunctions, Google’s way to expose app features to AI agents, and how to market an AI app.Where Censuus fits
Frequently asked questions
What is the context window of Apple’s on-device foundation model?
4,096 tokens per session, covering prompts, instructions, tools, schemas and responses.
How big is the Private Cloud Compute context window?
32K tokens, with stronger reasoning than the on-device model.
Is Apple’s Foundation Models framework free to use?
The on-device model has no usage limit. Private Cloud Compute gives each person a daily request limit, which they can raise by upgrading iCloud+; developers don’t manage API keys.
Which OS versions support Foundation Models?
iOS, iPadOS, macOS and visionOS 26 and later, and watchOS 27. PrivateCloudComputeLanguageModel needs iOS, macOS, watchOS or visionOS 27 or later.
Can every app use Private Cloud Compute?
No. You must meet Apple’s eligibility requirements and request a managed entitlement.
Guides for app developers
- How to market an app: a stage-by-stage plan
- Submit your app for free
- How to get your app to show up in Google search
- How to get your app recommended by AI assistants
- Free app promotion sites, checked for dofollow
- App store optimization checklist: what Apple and Google actually say
- App launch checklist: iOS and Android, step by step
- How to find beta testers for your app
- How to get more app reviews without breaking the store rules
- How to get your app featured on the App Store and Google Play
- App Store and Google Play screenshot sizes: what you must upload
- How to promote an app on Google Play with Play Console’s own tools
- How to promote an iOS app with App Store Connect’s own tools
- App Store keywords: how to fill the 100-character field
- How to market a fitness app: what Apple and Google let you claim
- How to market a kids app: the store rules that shape it
- How to market a finance app: the store rules to know first
- How to market a dating app: the store rules that shape it
- How to market a subscription app: what the stores require of your offer
- How to market a mobile game: the store rules that shape it
- Apple Ads MCP: connect an AI assistant to your campaigns
- How to promote an app on TikTok with creators
- How to promote an app on YouTube with creators
- How to market a VPN app: the store rules to know first
- How to market an AI app: the store rules that shape it
- How to market an education app: schools, parents and learners
- How to localize your App Store and Google Play listing
- Android vitals and Google Play visibility: the thresholds that hide apps
- App Store and Google Play age ratings: what drives them
- App Store privacy labels and Google Play Data safety: what to declare
- Common App Store rejection reasons and how to avoid them
- How to get the first users for your app
- App preview video specs: App Store sizes, length and rules, and the Google Play video
- App Store custom product pages, and the Google Play version
- App icon size for the App Store and Google Play
- App Store phased release and Google Play staged rollouts
- App Store subtitle and promotional text: limits and how to use them
- Google Play feature graphic: size, placement and rules
- TestFlight public link: set it up, limit it, and fix it when it does not work
- App Store promo codes and offer codes: how they work and their limits
- App Store A/B testing: product page optimization and Google Play experiments
- App Store in-app events: limits, badges and media sizes
- App Store Connect analytics: what each metric means
- Google Play store listing reports: clicks, CTR and the 2026 changes
- Google Play target API level requirements for 2026
- Android developer verification: what changed on September 30, 2026
- App Store and Google Play fees in 2026
- Google Play’s 12 testers for 14 days rule, explained
- How to transfer an app to another developer account
- How to remove an app from the App Store and Google Play
- The app account deletion requirement on the App Store and Google Play
- Google Play 16 KB page size requirement: dates, checks and fixes
- Declared Age Range and Play Age Signals: age assurance APIs for app developers
- Xcode 26 and the iOS 26 SDK requirement for App Store Connect
- The iOS privacy manifest: what to declare and how
- Accessibility Nutrition Labels: what to declare on your App Store page
- Google Play’s photo and video permissions policy, explained
- Google Play Billing Library version requirement: what you need to ship now
- App Tracking Transparency: when to ask and how
- App Store Connect API key: create it, store it, use it
- How to submit an In-App Purchase for review
- The Play Integrity API: what it checks and how to use it
- How long app review takes on the App Store and Google Play
- Google Play policy updates in 2026, with the deadlines
- Rosetta 2 end of support: what Mac developers need to do
- Monthly subscriptions with a 12-month commitment on the App Store
- Subscription Bundles, Suites and multiseat purchases on the App Store
- Sign in with Apple private relay email and the new private.icloud.com domain
- App Store Server Notifications V2: switching from V1 and handling every event
- Migrating to StoreKit 2: what is deprecated and what replaces it
- App Store creative assets: headers and search result visuals in iOS 27
- On-Demand Resources is deprecated: moving to Background Assets
- Time Allowances in iOS 27: how your app gets its category
- Android Contact Picker and the new READ_CONTACTS rules
- The Android 17 location button and Google Play’s precise location rules
- Phone verification without READ_CALL_LOG: what replaces call-based checks
- Apple’s EU business terms from October 1, 2026
- Android 17 app memory limits: detect, test and stay under them
- The Android 17 local network permission
- Android 17 background audio hardening
- Cleartext HTTP and certificate transparency on Android 17
- Android 17: lock-free MessageQueue and static final fields
- Android 17 ignores orientation lock and resizability on large screens
- Android 17 behavior changes: a checklist for target SDK 37
- Preparing your app for iPhone Duo
- Google Play subscription grace period and account hold
- Getting your Android app ready for Googlebook
- The Android 17 Handoff API
- ADB Wi-Fi 2.0 wireless debugging
- Android AppFunctions: your app as on-device tools for AI agents
- Android Live Updates: how to qualify for a promoted notification
- App Store Connect webhooks
- Using Claude, Codex and other agents in Android Studio
- Gemini Nano for Android developers
- Firebase AI Logic: the App Check deadline and Gemini 2.5 shutdowns
- Swift 6.4: what’s new for app developers
- The Swift SDK for Android
- Publishing your game on Android Auto and Android Automotive OS
- Liquid Glass in a Compose Multiplatform app
- Expo SDK 58: when it ships and what changes
- Device Hub in Xcode 27
- Using the Xcode MCP server with Claude Code, Codex and other agents
- Xcode 27: release, requirements and point releases
- Gemma 4 and Android skills in Android Studio
- The UIScene life cycle is required in iOS 27
- Migrating to Android Gradle plugin 9
- Navigation 3 for Jetpack Compose
- Kotlin 2.4, 2.4.20 and the road to 2.5
- Upgrading your app build to Gradle 9
- The latest Compose BOM and Compose 1.12
- Compose Multiplatform 1.12 and the Hot Reload MCP server
- Opting out of Liquid Glass with UIDesignRequiresCompatibility
- Flutter 3.47 and the latest stable version
- React Native 0.87 and the latest version
- Android Studio Quail 4 and what comes next
- CocoaPods goes read-only: what changes and when
- Fixing YouTube Error 153 in embedded players
- Fixing “APNS token has not been set yet” in Firebase Messaging
- Older iOS Simulator runtimes and Rosetta destinations in Xcode
- Fixing the fmt consteval error in React Native on Xcode 26.4
Put your app in the ranking
Censuus ranks apps by the visits they draw and by sponsorship, no bots. Listing is free; sponsorship raises placement.