From Apple Developer · Apple Inc. · · 1m 10s
Apple Foundation Models Framework
Apple's new Swift API lets developers integrate large language models directly into apps with privacy and on-device capabilities.
In brief
Apple's new Swift API lets developers integrate large language models directly into apps with privacy and on-device capabilities. Apple released a Swift framework for building apps with large language models using on-device privacy features and third-party model support. Originally reported by Apple Developer.
What is Foundation Models framework
The Foundation Models framework is a native Swift API for integrating any large language model into your app.
Key features
Guided generation, tool calling, image understanding, and Dynamic Profiles are built into the framework.
Image understanding

Multimodal prompts let you pass images alongside text for visual content reasoning.
On-device models
The framework provides direct access to on-device foundation models for privacy and offline use.
Third-party model support
The framework extends to server models like Claude and Gemini through the same Swift API.
Private Cloud Compute
Developers with fewer than two million App Store downloads get free access to Apple Foundation Models on Private Cloud Compute.
Dynamic Profiles
Dynamic Profiles allow continuous updates to session models, tools, and instructions on the fly.
The one thing
Apple released a Swift framework for building apps with large language models using on-device privacy features and third-party model support.





