Blog
AI Guide · iOS 27

iOS 27 On-Device AI & Apple Intelligence: Foundation Models and Beyond

iOS 27 is Apple's most significant AI release since Siri launched in 2011. The FoundationModels framework puts on-device LLM inference directly in your app — no API key, no server round-trips, no privacy exposure. But Foundation Models is just one piece. This guide covers every AI capability in iOS 27, from Image Playground integration to the new Writing Tools extensibility APIs.

All entries link to their full detail page with compilable Swift code, implementation gotchas, and Apple documentation. Impact scores reflect how broadly applicable each API is across typical iOS apps.

17
Total AI APIs
15
New
2
Updated

New AI APIs

Foundation Models FrameworkNew

Foundation Models is a new Apple framework introduced in iOS 27 that gives developers on-device access to the same Apple Intelligence language model powering system features, enabling text generation, structured output, and tool-calling entirely on-device without a network connection.

FoundationModelsSwiftUI
Custom LLM Provider for Foundation Models FrameworkNew

iOS 27 opens the Foundation Models framework to third-party LLM providers via a new public LanguageModel protocol, enabling anyone to integrate custom, server-based, or open-source models using the same Swift API as Apple's on-device system model.

FoundationModels
Visual Intelligence Camera AnalysisNew

Visual Intelligence brings iOS 17's Visual Look Up capabilities to a new developer-facing API surface in iOS 27, letting apps pipe live camera frames or static images through on-device scene understanding to extract subjects, text, barcodes, and rich semantic labels without any cloud round-trip.

VisualIntelligenceVisionSwiftUI
App Schemas for Siri Integration (Calendar Domain)New

App Schemas let developers describe their app's content and actions using pre-defined domain schemas (like the Calendar domain) so Siri can understand, search, and act on app data without custom NLP. Entities conforming to IndexedEntity are donated to Spotlight's semantic index, enabling natural-language queries over app content.

AppIntentsSwiftDataCoreSpotlight
Core AI On-Device Model IntegrationNew

Core AI is a new iOS 27 framework that lets developers bring their own on-device AI models (vision transformers, LLMs, etc.) directly into apps, using the familiar FoundationModels session API. Models run entirely on-device with no cloud dependency, no per-token cost, and no data leaving the device.

CoreAIFoundationModelsCoreAISegmentation
LLM Search with SpotlightSearchToolNew

SpotlightSearchTool is a new Foundation Models tool that lets a language model directly query your app's Core Spotlight index, enabling conversational, context-aware search over your app's own donated content. Developers can drop it into any LanguageModelSession to get AI-generated answers grounded in app data.

CoreSpotlightFoundationModels
Evaluations FrameworkNew

A new Apple framework for measuring the quality and reliability of intelligent features powered by generative AI. It integrates with Swift Testing to let developers define datasets, metrics, and optimization targets that automatically assess probabilistic outputs from language models.

EvaluationsFoundationModelsTesting
App Schemas for Intelligent Siri ExperiencesNew

App Schemas let developers map their app's entities and actions to predefined Siri-understandable structures, grouped into App Schema Domains (e.g. messages, photos, mail), so Siri can find content, answer questions, and execute actions in natural language without any custom NLU code.

AppIntentsFoundation
Agentic App Security: Lifecycle Event GuardrailsNew

iOS 27 introduces security patterns and APIs for protecting agentic features built with Foundation Models and App Intents, including lifecycle event modifiers to inject deterministic security checkpoints into LLM-driven agent execution loops.

FoundationModelsAppIntents
Agentic App Experiences with Dynamic ProfilesNew

Dynamic profiles let you switch language models, instructions, and tools within a single LanguageModelSession, enabling multi-agent orchestration patterns like baton-pass and phone-a-friend directly in your app. Combined with session properties and lifecycle modifiers, you can build context-aware, multi-stage AI workflows on-device and in the cloud.

FoundationModelsFoundationModelsUtilities
Visual Intelligence Image Search IntegrationNew

Visual Intelligence now lets apps register as image search providers via App Intents, returning matched entities when users highlight and search images. Introduced in iOS 26 and now expanded to iPadOS and macOS in iOS 27, apps can surface rich, ranked results directly in the Visual Intelligence UI.

AppIntentsVisualIntelligenceVision
Core AI FrameworkNew

Core AI is Apple's new on-device inference framework for iOS 27, giving developers direct access to the same high-performance ML execution engine that powers Apple Intelligence. It supports CPU, GPU, and Neural Engine across all Apple Silicon devices.

CoreAI
Custom LLM Provider for Foundation ModelsNew

iOS 27 opens the Foundation Models framework to third-party LLM providers via a new public LanguageModel protocol, allowing anyone to integrate server-based or local models (e.g. Claude, Gemini, CoreAI, MLX) using the same API as Apple's on-device system model.

FoundationModels
fm CLI and Python SDK for Apple Foundation ModelsNew

macOS 27 ships a pre-installed `fm` command-line tool and a pip-installable Python SDK that expose the on-device Apple Foundation Model outside of Swift apps, enabling shell scripts, automation pipelines, and Python-based ML evaluation workflows.

FoundationModels
Evaluations Framework: Synthetic Data & Agentic EvaluationNew

The Evaluations framework in Xcode 27 lets developers generate and validate synthetic test data at scale using the SampleGenerator API, then run robust evaluations against agentic workflows that involve tool calling — all from Swift code.

EvaluationsFoundationModels

Browse AI capabilities interactively

Filter by framework, sort by impact, and get the full Swift code for every AI API in one place.

AI capabilities in SwiftChronicle