Foundation Models framework

Foundation Models framework

11/06/2025
With Apple Intelligence, we're integrating powerful generative AI right into the apps and experiences people use every day, all while…
machinelearning.apple.com

Overview

Apple has officially entered the on-device AI arena with its Foundation Models framework, announced at WWDC 2025 on June 9, 2025, offering developers direct access to the on-device language model at the core of Apple Intelligence. This framework provides access to a ~3 billion parameter language model that runs locally on Apple silicon, enabling AI-powered features without cloud dependencies or API costs.

Key Features

Based on verified technical specifications, the Foundation Models framework offers:

  • 3B Parameter On-Device LLM: A compact language model achieving 30 tokens/second generation speed on iPhone 15 Pro with competitive performance against larger models
  • Swift-Native Integration: Access the model with as few as three lines of code using native Swift APIs with @Generable macro support
  • Cost-Free Inference: Completely free AI inference for developers with no ongoing API costs or usage fees
  • Guided Generation: Built-in constrained decoding that ensures structured output conforming to Swift data types
  • Tool Calling Capabilities: Framework automatically handles tool calls, allowing models to access external functions and data sources
  • Apple Silicon Optimization: Specifically designed for efficient operation on Apple’s M-series and A17 Pro chips

How It Works

The Foundation Models framework operates through Swift APIs that provide direct access to Apple’s on-device language model. Developers can create sessions with custom instructions and leverage guided generation to produce structured outputs that automatically conform to Swift data structures. The framework includes availability checks to ensure the model is ready before use, handling scenarios where Apple Intelligence is disabled or the device is ineligible. All processing occurs locally with no data transmission to external servers, maintaining complete user privacy.

Use Cases

The framework enables diverse applications across Apple’s ecosystem:

  • Structured Content Generation: Create travel itineraries, personalized quizzes, and formatted documents using guided generation
  • Document Analysis: Summarize text, extract entities, and analyze user input entirely on-device
  • Intelligent App Features: Enhance existing functionality with AI-powered suggestions and content refinement
  • Educational Applications: Generate personalized learning materials and assessments, as demonstrated by Kahoot’s integration
  • Privacy-Preserving AI: Develop AI features for sensitive data without cloud dependencies

Pros \& Cons

Advantages

  • Zero-Cost Implementation: No API fees eliminate ongoing costs for developers, making AI accessible to all project scales
  • Privacy Guarantee: Complete on-device processing with no data collection or transmission ensures maximum user privacy
  • Swift Ecosystem Integration: Native Swift support with guided generation streamlines development and maintains type safety
  • High Performance: Achieves 30 tokens/second on iPhone 15 Pro with optimized Apple Silicon performance
  • Offline Capability: Functions without internet connectivity, ensuring consistent availability
  • Built-in OS Integration: No increase in app size as the model is integrated into the operating system

Disadvantages

  • Limited Device Compatibility: Restricted to Apple Intelligence-capable devices (iPhone 15 Pro+, M1+ Macs/iPads, A17 Pro+ iPads)
  • Model Size Constraints: 3B parameter limitation compared to larger cloud-based models may impact capability for complex tasks
  • Apple Ecosystem Lock-in: Framework only works within Apple’s development environment and devices
  • Setup Requirements: Requires Apple Intelligence activation and model download, creating potential user friction
  • Power Management: Subject to battery and thermal constraints that may limit availability

How Does It Compare?

The Foundation Models framework differentiates itself through its cost-free, privacy-first approach compared to cloud-based AI services. While competitors like OpenAI and Google charge per API call, Apple’s framework requires no ongoing fees after initial device purchase. The 3B parameter model performs competitively against similar-sized models, winning 46-50% of comparisons in image tasks and matching larger models in multilingual evaluations. However, the framework’s Apple-only compatibility contrasts with cross-platform alternatives, making it specifically valuable for developers focused on the Apple ecosystem.

Final Thoughts

Apple’s Foundation Models framework, launched at WWDC 2025, represents a strategic shift toward edge AI computing that prioritizes developer accessibility and user privacy. The framework’s integration of free inference, Swift-native development, and on-device processing addresses key barriers that have historically limited AI adoption in mobile applications. While device compatibility restrictions limit its addressable market, the framework’s elimination of API costs and privacy guarantees position it as a compelling option for Apple ecosystem developers. The combination of guided generation, tool calling, and seamless Swift integration suggests Apple’s commitment to making AI development as accessible as traditional app development within its ecosystem.

With Apple Intelligence, we're integrating powerful generative AI right into the apps and experiences people use every day, all while…
machinelearning.apple.com