苹果介绍适用于 Swift 应用的 Foundation Models 框架
苹果文档将 Foundation Models 框架描述为一款原生 Swift API,可将大语言模型接入应用,包括在端侧及 Private Cloud Compute 上运行的 Apple Foundation Models。苹果称,该框架支持引导生成、工具调用、图像理解和 Dynamic Profiles,Claude、Gemini 等服务器模型也可通过同一 Swift API 使用。文档还介绍了评估框架、macOS 27 的 fm 命令行工具、开放源码实用工具包和 Python SDK。据苹果说明,已加入 App Store Small Business Program 且首次 App Store 下载量不足两百万的开发者,可通过 Private Cloud Compute 使用 Apple Foundation Models,无需支付云端 API 费用。
该框架为 Swift 开发者提供了统一接入端侧和服务器模型的 API,并加入评估、命令行及 Python 工具支持。其能力、可用性、隐私保护和定价说明均来自苹果文档,所提供报告未作独立验证。

Get started with the Foundation Models framework
The Foundation Models framework is the best way to use any large language model in your app. Whether you’re generating a quick summary or creating dynamic agents, the framework has what you need.
Overview
The Foundation Models framework is a native Swift API for integrating any large language model into your app — including direct access to the Apple Foundation Models on-device and in Private Cloud Compute. Powerful capabilities like guided generation, tool calling, image understanding, and Dynamic Profiles are built in, so you have what you need to build unique experiences.
Image understanding
Multimodal prompts let you pass images alongside text so your app can reason about visual content. This opens up new categories of experiences you can build with image understanding — it's as simple as attaching an image to your prompt. The Vision framework is also integrated directly, giving your model purpose-built tools like OCR for precise text extraction and barcode readers for quick code scanning — all on-device.
#Apple#Foundation Models framework#Apple Foundation Models#Claude#Gemini#Private Cloud Compute#Dynamic Profiles#Evaluations framework#fm CLI#Foundation Models SDK for Python