Foundation Models
Prompt Apple's on-device and Private Cloud Compute models from Swift, in a few lines of code.
Overview
The Foundation Models framework gives your app direct access to the model behind Apple Intelligence. Guided generation turns responses into your own Swift types, tool calling lets the model reach into your app, and sessions keep the conversation's context.
Since WWDC26 it also takes images, offers a larger reasoning model on Private Cloud Compute, works with other providers through the LanguageModel protocol, and the core framework is open source.
Guided generation
Get typed Swift values back with @Generable, not strings to parse.
Tool calling
Let the model call into your app for data it doesn't have.
Private Cloud Compute
A larger reasoning model, with no API keys or accounts.
Evaluations
Measure quality as you change prompts and models.
History
How it grew up.
Introduced
On-device model access from Swift, announced at WWDC25.
Vision and reasoning
Image prompts, a Private Cloud Compute model and an open source core.