Apple’s new Foundation Models framework lets creators run AI locally and in the cloud

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.

On‑device and cloud model support

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.

Foundation Models framework - Apple Developer

Image: Apple

Multimodal prompts and image understanding

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 for flexible agents

Dynamic Profiles are declarative APIs that let you swap model, temperature and toolset mid‑session while keeping the transcript.

  • Define multiple profiles with different settings
  • Switch on the fly within a single session
  • Shared transcript keeps context across profiles

Private Cloud Compute for small developers

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.

Tools for testing and scripting

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.

Sources

This post is based on Apple.

Want more AI news in plain English? Read the latest on the Zoetra Blog.

Apple Foundation Models framework news for creators and small businesses: Brought to you by Zoetra