AI agents · OpenClaw · self-hosting · automation

Quick Answer

Apple Core AI vs Foundation Models vs MLX: Which iOS 27 AI Framework?

Published: • Updated:

Apple Core AI vs Foundation Models vs MLX: Which iOS 27 AI Framework (October 2026)

Apple’s WWDC 2026 reorganized the on-device AI stack into three distinct layers: Foundation Models for system-LLM features, Core AI for custom model execution, and MLX for research and training. This page explains what each does, when to use which, and the practical limits in iOS 27.

Last verified: October 20, 2026, against Apple’s Core AI and Foundation Models documentation, the apple/coreai-models repository and the iOS 27 release. First written June 15, 2026 from WWDC 2026 sessions and iOS 27 developer beta 1.

What changed as of October 2026

  • iOS 27 is out. It shipped to the public on September 14, 2026; the frameworks below are no longer beta APIs. Core AI is listed in Apple’s documentation for iOS, iPadOS, macOS, Mac Catalyst, tvOS, visionOS and watchOS 27.0+.
  • The Core AI model file is .aimodel, not .aiasset. The June version of this page used the wrong extension (corrected). AIModelAsset is the Swift type for an unspecialized model; the file on disk is .aimodel (compiled ahead of time: .aimodelc).
  • The official path into Core AI starts from PyTorch, not MLX. Apple ships Core AI PyTorch extensions (coreai-torch) to export models, Core AI Optimization for quantization and palettization, and apple/coreai-models with export recipes for open models (Qwen, SAM 3 and others), a Swift runtime package and coding-agent skills. The June page said MLX exports straight to Core AI; Apple documents no such path, so that line is corrected below.
  • Foundation Models opened up. iOS 27 adds PrivateCloudComputeLanguageModel (Apple’s server model, one line of code, behind a managed entitlement) and LanguageModelExecutor, which lets you plug another model provider into the same LanguageModelSession API.
  • New hardware. iPhone 18 Pro and Pro Max shipped in September with 12 GB of RAM (same as iPhone 17 Pro); the base iPhone 18 moves to spring 2027.
  • MLX is at v0.32.4 (October 14, 2026).

TL;DR

  • Foundation Models — Apple’s sealed system LLM. Free, ships with iOS 27, high-level API. Use for default on-device intelligence in apps.
  • Core AI — Low-level inference framework. Bring your own model. Use when you ship a specific third-party or custom model on iPhone/iPad/Mac.
  • MLX — Open-source array framework. Use for training, research, and quantizing models before deploying via Core AI.
  • Core ML — Still around for traditional ML conversion workflows.

The new stack at a glance

LayerSurfaceModelWho decides quantizationUse case
Foundation ModelsHigh-level Swift APIApple’s on-device LLM (sealed)AppleDefault LLM features in any app
Core AIMid-level Swift APIYou bring your own (.aimodel)You, via Core AI Optimization at export; SpecializationOptions on deviceShip custom or third-party LLM on-device
Core MLHigh-level Swift APIYou bring your own (converted .mlmodel)Core ML converterTraditional ML — vision, audio, classification
MLXPython + Swift frameworkAnything you buildYouTraining, research, model conversion

When to use Foundation Models

Foundation Models is the easiest path and the default Apple wants most apps to take. iOS 27 gives every app access to:

  • Text generation — single-shot completion, streaming responses, conversational turn-taking
  • Structured output — Swift type-safe outputs via the @Generable macro
  • Tool use — your app declares Swift functions; the model calls them
  • Image input — Foundation Models can now accept images alongside text (new in iOS 27)
  • Custom skills — fine-tune behavior with developer-supplied skill definitions
  • Server option — same API surface can run on Apple’s Private Cloud Compute servers when the on-device model is insufficient (PrivateCloudComputeLanguageModel; requires a managed entitlement)
  • Other providers — since iOS 27, a LanguageModelExecutor can bridge LanguageModelSession to another model, local or server-side

The big trade-off: you don’t pick the model. Apple ships one on-device LLM and one server LLM, and you call them. They are intentionally small-to-medium models tuned for Apple’s privacy + battery constraints. They are not GPT-5.5 / Fable 5 / Gemini 3.5 Pro replacements.

Use Foundation Models when:

  • You want “smart text” features without managing model files
  • Latency, privacy, and offline operation matter more than peak quality
  • Your app should “just work” on every iOS 27 device

When to use Core AI

Core AI is the right tool when you need a specific model on-device that Foundation Models doesn’t ship. Apple’s framing: Core AI is the same inference framework that runs Apple Intelligence, now opened up for your app.

The Swift API revolves around five concepts:

  • AIModelAsset — unspecialized model (loaded from an .aimodel file); inspect structure and metadata cheaply
  • AIModel — specialized model for a specific device; runs inference
  • AIModelCache — stores device-specific artifacts so you don’t re-specialize on every launch
  • InferenceFunction — owns the weights and buffers; Sendable so you can run concurrently
  • ComputeUnitKind / SpecializationOptions — target CPU, GPU, or Neural Engine

The workflow: export your PyTorch model to an .aimodel file with coreai-torch (or use a recipe from apple/coreai-models) → load it → specialize it for the user’s device (one-time, cached) → instantiate an InferenceFunction → run inference with NDArray inputs and outputs.

Use Core AI when:

  • You’re shipping a specific model — your own, or a third-party open model
  • You need control over which compute unit runs inference
  • Foundation Models is too generic or too small for your workload

Practical examples mid-2026:

  • A photography app shipping a domain-tuned image-captioning model
  • A medical app running a specialized clinical-language model with HIPAA-relevant restrictions
  • A coding assistant shipping a code-specific 7B model for offline use

When to use MLX

MLX is the layer underneath, used by developers and researchers who train models or convert open-weight models for Apple silicon deployment. MLX gives you:

  • NumPy-like array operations on Apple silicon
  • Automatic differentiation
  • Unified memory model that avoids host↔device copies
  • Quantization to 4-bit and 8-bit for deployment
  • Fine-tuning (including LoRA via mlx-lm) on a Mac before deployment

You don’t ship MLX in a consumer app. Correction (October 2026): the June version said MLX has a direct export path to Core AI; Apple documents none. The supported route into Core AI is PyTorch → coreai-torch → .aimodel, so a model trained or fine-tuned in MLX has to come back through PyTorch weights first. The community ecosystem around MLX in mid-2026 has working ports of most current open-weight models (Llama 5, Qwen 3.6, Gemma 4, Mistral, DeepSeek V4 Flash, Phi family).

Use MLX when:

  • You’re training or fine-tuning a custom model
  • You need to convert an open-weight model to Apple silicon
  • You’re doing research on Apple hardware

Where Core ML still fits

Core ML hasn’t gone anywhere. iOS 27 keeps full support for .mlmodel files from coremltools conversions. The split:

  • Core ML — traditional ML model deployment, especially models converted from PyTorch / TensorFlow via coremltools. Fixed model, converter picks hardware. Best for vision classifiers, audio models, time-series, classical ML pipelines.
  • Core AI — LLM-style model execution where you want explicit control. Best for new generative AI integrations.

Existing Core ML deployments stay valid. Apple has not announced a deprecation timeline.

Practical sizing on current devices

Hardware running iOS 27 (October 2026):

DeviceUnified RAMComfortable on-device model size
iPhone 18 Pro / Pro Max (Sept 2026)12 GB7B-13B at 4-bit quantization
iPhone 17 Pro12 GB7B-13B at 4-bit quantization
iPhone 17 (non-Pro)8 GB3B-7B at 4-bit
iPhone 16 series (most)8 GB3B-7B at 4-bit
iPad Pro M516 GB13B-30B at 4-bit
MacBook Pro M5 Max64-128 GB70B+ at 4-bit

Apple Intelligence eligible devices (iPhone 15 Pro and later, plus Apple silicon iPads and Macs) get Foundation Models. Core AI runs on the same eligibility set.

Decision flow

Question 1: Does Foundation Models do what you need?
  Yes → Foundation Models. Done.
  No  → Continue.

Question 2: Do you need to ship a specific model?
  Yes → Core AI (production), coreai-torch + Core AI Optimization (build pipeline).
  No  → Continue.

Question 3: Is your model a converted traditional-ML pipeline?
  Yes → Core ML.
  No  → Core AI is probably the right answer.

Question 4: Are you training or doing research?
  Yes → MLX.

What competitors offer

For context — what other platforms ship in June 2026:

  • Google Android 16 — ML Kit + Gemini Nano on-device. Comparable to Foundation Models, less developer flexibility for custom models.
  • Windows 11 25H2 / Copilot+ PCs — Windows Agent Runtime + DirectML for custom model deployment. Comparable to Core AI.
  • Cross-platform — ONNX Runtime, llama.cpp, MLC LLM all work on Apple silicon but bypass Apple’s Neural Engine; Core AI is the right choice when you want NPU acceleration.

The big picture

The iOS 27 split — Foundation Models for default, Core AI for custom, MLX for training — is Apple’s bet that most developers want simplicity (Foundation Models) but a meaningful minority will ship custom models (Core AI). Mid-2026, both adoption paths look viable. If you’re starting an iOS app today and want any AI feature, default to Foundation Models. Reach for Core AI when you’ve hit a wall.

Sources


iOS 27 has been publicly released since September 14, 2026. The device-sizing table is our estimate from RAM, not an Apple specification.