Apple has unveiled the Foundation Models framework, a native Swift API that gives developers access to on‑device and private‑cloud large language models. The toolkit supports image understanding, tool calling and a new Dynamic Profiles feature.
The framework lets you tap the on‑device foundation model that powers Apple Intelligence, meaning apps can run without an internet connection. When a bigger model is needed, the same API reaches out to server‑based providers such as Claude and Gemini.
Any model provider can supply a Swift package that conforms to the Language Model protocol, so you can pick the right engine for each task.

Image: Apple
You can attach an image to a prompt, and the Vision framework supplies OCR and barcode reading directly on the device. This opens up categories of experiences that blend text and visual analysis.
Dynamic Profiles are declarative APIs that let you swap model, temperature and toolset mid‑session while keeping the transcript.
Developers in the App Store Small Business Program with under two million first‑time downloads can use Apple’s Foundation Models on Private Cloud Compute at no cloud API cost. Apple says the data never leaves the private environment, adding a layer of privacy.
The new Evaluations framework helps you test prompts under dynamic conditions, going beyond unit tests. A command‑line tool called fm (available in macOS 27) lets you script model workflows without writing app code, and a Python SDK extends the same capabilities to the Python ecosystem.
This post is based on Apple.
Want more AI news in plain English? Read the latest on the Zoetra Blog.