Blog

Apple On-Device LLM Developer APIs: What App Makers Can Build

Apple opened more on-device model APIs for third-party apps. See size limits, App Store rules, and privacy marketing angles.

Apple on-device LLM developer APIs Foundation Models framework Swift App Store 2026
Apple's Foundation Models framework gives developers Swift APIs for on-device and Private Cloud Compute language models.

Apple expanded the Foundation Models framework at WWDC 2026 with multimodal prompts, Vision-backed tools, a rebuilt on-device model with stronger reasoning, and Private Cloud Compute access through a unified Swift API. Developers on the App Store Small Business Program with under two million lifetime downloads can route complex requests to Apple's server model at no cloud API cost, subject to daily per-user quotas. The framework also supports third-party and open-source models via the LanguageModel protocol and Core AI exports.

This guide explains Apple on device LLM API capabilities for app makers: new developer surfaces, model size and performance limits, App Store policy considerations, sample app categories, and FAQ for teams building on Apple Intelligence and AI image generator adjacent features.

New Foundation Models Developer APIs

The Foundation Models framework provides Swift APIs to prompt Apple's on-device Apple Foundation Model, optional Private Cloud Compute server models, and custom LanguageModel providers through shared LanguageModelSession objects with tools, guided generation, and streaming. WWDC 2025 introduced the framework; WWDC 2026 added image attachments, Vision tools, context management, and cross-platform expansion including watchOS server access.

Core APIs and capabilities:

  • LanguageModelSession: multi-turn stateful sessions with instructions separate from user prompts
  • SystemLanguageModel: on-device text generation for summarization, entity extraction, dialog, and refinement
  • PrivateCloudComputeLanguageModel: server model with 32K context, reasoning levels, no API keys for eligible apps
  • @Generable structured output: Swift data structures returned directly from model responses
  • Tool calling: BarcodeReaderTool, OCRTool, Spotlight-powered local RAG search, and custom app tools
  • LanguageModel protocol: plug in CoreAILanguageModel, MLXLanguageModel, or third-party cloud providers
  • Dynamic Profiles: swap models, tools, and instructions within a continuous session at runtime
  • Python SDK and fm CLI (macOS 27): same on-device and PCC access outside iOS app binaries

Developers must check SystemLanguageModel.default.availability before creating sessions because models run only on Apple Intelligence-supported devices in supported regions. The Evaluations framework helps validate AI feature behavior beyond traditional unit tests.

Model Size and Performance Limits

On-device models target low-latency offline tasks with roughly 4K context windows, while Private Cloud Compute offers 32K context and stronger reasoning at the cost of connectivity and daily per-user quotas. Apple does not publish parameter counts for Apple Foundation Models, but WWDC sessions emphasize on-device models for responsive UX and PCC for large-input agentic workflows.

Model path Context window Connectivity Best for
On-device SystemLanguageModel ~4K tokens (per WWDC 2026 sessions) Offline capable Summaries, tagging, short dialog, image+text on device
Private Cloud Compute 32K tokens Requires connection; daily user quota Long documents, multi-tool agents, watchOS complex tasks
Third-party LanguageModel Provider-defined Varies Claude, Gemini, or self-hosted via unified session API
Core AI / MLX local Model-dependent On-device Neural Engine or GPU Open-weight models exported for Foundation Models sessions

iOS 26.4 APIs let developers inspect context size and count tokens. Refined guardrails aim to reduce false positives that blocked legitimate prompts in earlier betas. Teams should implement graceful fallbacks when availability checks fail or PCC quota limits are reached, using persistent UI rather than alert-only patterns per Apple's guidance.

App Store Policy Considerations for On-Device AI

Apps using Apple Foundation Models must disclose AI-generated content where required, respect privacy nutrition labels, and follow App Review rules on health, financial, and kids categories even when inference stays on device. Small Business Program eligibility affects PCC cost, not Review standards.

Policy checkpoints for developers:

  1. Privacy nutrition labels: describe on-device vs cloud inference and data retention (PCC requests are not stored per Apple)
  2. User consent: obtain permission before uploading user content to third-party models even if Apple PCC is private
  3. Regulated domains: health, legal, and financial advice features face heightened Review scrutiny regardless of model location
  4. Generated media: label AI-created images or text in UI when material to user trust
  5. Quota UX: show actionable messaging when PCC daily limits approach or trigger iCloud+ upgrade paths
  6. App Intents and Siri: schema adoption affects discoverability; test with App Intents Testing framework

Apple Intelligence device and region requirements mean developers should ship feature flags and availability screens for unsupported hardware, avoiding dead-end AI buttons on older iPhones.

Sample App Categories and Build Patterns

On-device APIs suit privacy-sensitive verticals where latency and offline use matter, while PCC extends the same Swift code path for heavier reasoning without bundling large weights in the app binary. Apple highlights travel itineraries, game dialog, personalized search suggestions, and visual Q&A with image attachments.

Example categories and implementation notes:

  • Productivity: meeting notes summarization with on-device model; long report analysis via PCC fallback
  • Education: offline flashcard generation and tutoring dialog with guardrail-aware error handling
  • Retail: barcode and OCR tools for shelf reading without sending raw images to third-party servers
  • Games: dynamic NPC dialog using LanguageModelSession transcripts for continuity
  • Creative: multimodal prompts combining user photos with on-device refinement before optional cloud enhancement
  • Enterprise: custom tools querying local databases via tool calling while keeping sensitive rows on device

Switching from on-device to PCC requires changing a single model reference in Swift per WWDC 2026 sessions, enabling progressive enhancement patterns: start on-device, escalate only when context exceeds limits or reasoning depth is needed.

Frequently Asked Questions

Which devices support Foundation Models APIs?

Apple Intelligence-supported iPhone, iPad, Mac, and Vision Pro models in supported regions. Check SystemLanguageModel.default.availability at runtime. watchOS 27 can access PCC server models for complex tasks.

Do developers pay for Private Cloud Compute inference?

Apps in the App Store Small Business Program with under two million lifetime downloads access PCC at no cloud API cost, subject to per-user daily quotas (higher with iCloud+). Larger developers should confirm current Apple program terms at release time.

Can apps use Claude or Gemini instead of Apple models?

Yes. The LanguageModel protocol supports third-party providers alongside Apple Foundation Models within the same session patterns. Privacy labels and network disclosure rules still apply to external API calls.

Can developers ship open-weight models with Core AI?

WWDC 2026 introduced CoreAILanguageModel and MLXLanguageModel conforming to LanguageModel, letting teams run exported open-source models on Neural Engine or GPU while keeping the Foundation Models session API.

Does on-device inference bypass App Review AI rules?

No. App Review evaluates feature risk based on category and user impact, not where inference runs. Health, kids, and financial apps still need appropriate disclaimers, human oversight, and compliance documentation.

Related blogs

  • Algorithmic Mediocrity: Why AI Content Feels Samey and What Creators Do About It

    Algorithmic Mediocrity: Why AI Content Feels Samey and What Creators Do About It

    Homogenized LLM prose and stock aesthetics create a bland middle. Explore taste, curation, and human edge as counterweights.

  • What Are Embeddings? The Hidden Layer Behind Semantic Search in AI

    What Are Embeddings? The Hidden Layer Behind Semantic Search in AI

    Embeddings turn text into vectors so tools can find similar content. Learn how embeddings power search RAG and recommendations in AI products.

  • Algorithmic Impact Assessment for AI Tool Deployments

    Algorithmic Impact Assessment for AI Tool Deployments

    Run algorithmic impact assessments before deploying AI tools: stakeholder mapping, harm scenarios, mitigation controls, and sign-off documentation.

  • EFS Implementation Guide for AI Procurement Teams

    EFS Implementation Guide for AI Procurement Teams

    Procurement teams can use Enterprise Frontier Safeguards in RFPs. See sample clauses, evidence requests, and vendor scorecards.

  • Altman and Musk AI Investment Moves: What Changed in 2026

    Altman and Musk AI Investment Moves: What Changed in 2026

    Sam Altman and Elon Musk made overlapping and competing AI bets in 2026. Track funding, chip deals, and what it signals for model access and politics.

  • Wave-Based Neuromorphic Hardware: Obstacle Avoidance Without a GPU

    Wave-Based Neuromorphic Hardware: Obstacle Avoidance Without a GPU

    Scientists controlled a robot using physical wave interactions as computing hardware. A plain-language explainer on wave reservoir computing.

Didn't find tool you were looking for?

Be as detailed as possible for better results