Please intrtoduce Foundation Models to me
Asked on 06/18/2025
1 search
The Foundation Models framework, introduced at WWDC 2025, provides access to an on-device large language model through a convenient Swift API. This framework is available on macOS, iOS, iPadOS, and VisionOS, allowing developers to enhance existing app features or create new ones, all while keeping data private and running offline. The framework is optimized for tasks such as content generation, text summarization, and user input analysis.
Key features of the Foundation Models framework include:
- On-Device Processing: All data remains on the device, ensuring privacy and allowing offline functionality.
- Swift API: The framework is integrated into the operating system, so it doesn't increase app size and is easy to use with Swift.
- Guided Generation: This feature allows developers to get structured output in Swift, making it easier to parse and use the model's responses.
- Tool Calling: The model can autonomously execute code defined in your app, enhancing its capabilities.
- Stateful Sessions: These sessions allow for multi-turn interactions, where the model can maintain context over multiple exchanges.
For a detailed introduction, you can watch the session Meet the Foundation Models framework (00:00:00).

Meet the Foundation Models framework
Learn how to tap into the on-device large language model behind Apple Intelligence! This high-level overview covers everything from guided generation for generating Swift data structures and streaming for responsive experiences, to tool calling for integrating data sources and sessions for context management. This session has no prerequisites.

Discover machine learning & AI frameworks on Apple platforms
Tour the latest updates to machine learning and AI frameworks available on Apple platforms. Whether you are an app developer ready to tap into Apple Intelligence, an ML engineer optimizing models for on-device deployment, or an AI enthusiast exploring the frontier of what is possible, we’ll offer guidance to help select the right tools for your needs.

Code-along: Bring on-device AI to your app using the Foundation Models framework
Develop generative AI features for your SwiftUI apps using the Foundation Models framework. Get started by applying the basics of the framework to create an awesome feature. Watch step-by-step examples of how to complement the models with tools you build, stream results, and apply further optimizations for great performance.