what are the foundation models
Asked on 06/15/2025
1 search
The Foundation Models framework, introduced by Apple, provides access to an on-device large language model through a Swift API. This framework is available on macOS, iOS, iPadOS, and VisionOS, and it allows developers to enhance their apps with intelligent features while keeping data private and 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: Ensures privacy and offline functionality.
- Swift API: Allows easy integration with just a few lines of code.
- Stateful sessions: Enable developers to provide custom instructions to the model.
- Guardrails: Built-in safety measures to prevent harmful content generation.
- Guided generation: Produces structured output using Swift types.
- Tool calling: Allows the model to autonomously execute code defined in the app.
For more detailed information, you can refer to the session Meet the Foundation Models framework.

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.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

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.