Apple has released the Foundation Models framework, a native Swift API designed to simplify the integration of large language models into applications. According to Apple’s documentation, the framework provides direct access to Apple Foundation Models running both on-device and through Private Cloud Compute, alongside support for third-party models like Claude and Gemini.

The framework includes several built-in capabilities. Multimodal prompts allow developers to pass images alongside text, enabling apps to reason about visual content. The Vision framework is integrated directly, offering tools like OCR for text extraction and barcode readers for code scanning, all operating on-device. Guided generation and tool calling are also built-in features, along with a new feature called Dynamic Profiles.
Dynamic Profiles are declarative APIs that allow developers to continuously update a session’s model, tools, and instructions during runtime. Rather than creating a fixed configuration, developers can define multiple profiles with different models, temperature settings, reasoning levels, and toolsets, then switch between them within a single session. According to Apple, the session transcript is shared across profile switches, providing more contextual intelligence with less prompting.
For cost-conscious developers, Apple offers a pricing advantage. Developers enrolled in the App Store Small Business Program with fewer than two million first-time downloads can access Apple Foundation Models running on Private Cloud Compute with no cloud API cost, providing what Apple describes as “frontier-level intelligence with unparalleled privacy protections.”
The framework supports an extensible model provider system. Any model provider can create a Swift package conforming to the Language Model protocol, allowing developers to select the appropriate model for their specific needs. This unified API approach means developers can use the same Swift interface whether accessing on-device models or cloud-based alternatives.
Apple has also released complementary tools. The Evaluations framework allows developers to test prompts and validate that AI-powered features work correctly across different conditions. A new fm command line tool in macOS 27 enables developers to streamline scripting and automate model workflows. Additionally, the Foundation Models framework utilities package provides experimental abstractions including custom skills and a Chat Completions client, while a Python SDK extends the framework to the Python ecosystem.
Key facts
- The Foundation Models framework is a native Swift API for integrating LLMs, supporting both Apple Foundation Models and third-party models like Claude and Gemini
- Multimodal prompts allow apps to pass images with text, with Vision framework integration for OCR and barcode scanning on-device
- Dynamic Profiles enable developers to switch between different model configurations, temperature settings, and toolsets within a single continuous session
- Developers in the App Store Small Business Program with under 2 million first-time downloads can access Apple Foundation Models on Private Cloud Compute with no cloud API cost
- The Evaluations framework lets developers test prompts and validate AI features work correctly, while the fm command line tool streamlines scripting and development
