What does Apple's Foundation Models framework actually let developers do with on-device and cloud AI?

Apple has published the Foundation Models framework, a native Swift API that gives apps direct access to the company's own foundation models running on-device and in Private Cloud Compute. The same API also supports third‑party models such as Claude and Gemini, so developers can swap backends without rewriting their integration code.

A single Swift API for every model

The framework sits between an app and any large language model. Developers call one set of Swift types — LanguageModel, Session, Tool, GuidedGeneration — and the framework routes the request to whichever backend the app has configured. That backend can be the on‑device Apple Foundation Model that powers Apple Intelligence, a server‑side model hosted in Private Cloud Compute, or a third‑party model packaged as a Swift module that conforms to the LanguageModel protocol. The protocol is public; any provider can publish a package that plugs in.

Image understanding ships inside the same API. A prompt can carry an image alongside text, and the model reasons over the visual content. The Vision framework is wired in automatically, so the model can call OCR for precise text extraction or a barcode reader for quick code scanning. All of that runs on‑device when the on‑device model is selected.

On‑device intelligence and Private Cloud Compute

The on‑device model is the same one that drives system features like Writing Tools and Genmoji. It works without internet connectivity, keeps user data on the phone, and costs the developer nothing per request. For workloads that need a larger model, the framework extends to Private Cloud Compute. Developers enrolled in the App Store Small Business Program who have fewer than two million first‑time App Store downloads can call the Apple Foundation Models running on PCC with no cloud API charge. Two million is the cap. The documentation says daily usage limits apply to server‑side features, including Siri AI, Intelligent Photo Editing Tools, Image Playground, AFM 3 Cloud models in Shortcuts, and developer apps using Apple Foundation Models in Private Cloud Compute. Limits may vary by feature, request complexity, system demand, system policies, and other factors. Expanded access will be available for a fee in the future.

Third‑party server models — Claude, Gemini, and others — are also reachable through the identical Swift API. The framework does not force a single vendor; it treats every backend as a swappable implementation of the same protocol.

Dynamic Profiles let a session change its mind

A traditional LLM session is created with a fixed model, temperature, reasoning level, and toolset. Dynamic Profiles replace that static configuration with declarative profiles that can be swapped inside a single continuous session. Each profile carries its own model, temperature, reasoning level, and toolset. When the app switches profiles, the full transcript is preserved, so the new profile inherits the conversation history. The feature is designed as a building block for agents, skills, or any high‑level abstraction the app needs. Instruments now includes tooling to debug and profile those agentic experiences.

Evaluations, a command‑line tool, and open‑source helpers

The Evaluations framework lets developers test prompts and validate that intelligence‑powered features behave correctly across dynamic conditions. It goes beyond unit tests by checking output quality when instructions change, models are swapped, or a Dynamic Profile is tuned. A hill‑climbing helper can automatically improve prompts by iterating against an evaluation suite.

The fm command‑line tool ships in macOS 27. It streams model output, automates workflows, and lets developers prototype without writing an app. A Python SDK mirrors the Swift API, so the same patterns work in Python notebooks and pipelines. The Foundation Models framework utilities package adds experimental abstractions — custom skills, context‑management helpers, and a Chat Completions client that connects to a hosted model of the developer's choice.

Acceptable use and the AFM 3 Cloud documentation form

The Acceptable Use Requirements for the Foundation Models framework list prohibited uses of Apple Foundation Models. Separately, Apple publishes an AFM 3 Cloud Model Documentation Form to satisfy Article 53(1)(b) of the AI Act, giving providers of AI systems the information they need to integrate AFM 3 Cloud into their own systems. The framework supports iOS, iPadOS, macOS, tvOS, visionOS, and watchOS.

The sources this article was written from

  • Apple Developer Documentation
    https://developer.apple.com/foundation-models-framework/

Read next