Core AI | Apple Developer Documentation
Explore Get Started
* [Overview](https://developer.apple.com/get-started/)
* [Learn](https://developer.apple.com/learn/)
* [Apple Developer Programs](https://developer.apple.com/programs/)
Stay Updated
* [Latest News](https://developer.apple.com/news/)
* [Hello Developer](https://developer.apple.com/hello/)
* [Platforms](https://developer.apple.com/platforms/)
Explore Platforms
* [Apple Platforms](https://developer.apple.com/platforms/)
* [iOS](https://developer.apple.com/ios/)
* [iPadOS](https://developer.apple.com/ipados/)
* [macOS](https://developer.apple.com/macos/)
* [tvOS](https://developer.apple.com/tvos/)
* [visionOS](https://developer.apple.com/visionos/)
* [watchOS](https://developer.apple.com/watchos/)
* [App Store](https://developer.apple.com/app-store/)
Featured
* [Design](https://developer.apple.com/design/)
* [Distribution](https://developer.apple.com/distribute/)
* [Games](https://developer.apple.com/games/)
* [Accessories](https://developer.apple.com/accessories/)
* [Web](https://developer.apple.com/safari/)
* [Home](https://developer.apple.com/apple-home/)
* [CarPlay](https://developer.apple.com/carplay/)
* [Technologies](https://developer.apple.com/technologies/)
Explore Technologies
* [Overview](https://developer.apple.com/technologies/)
* [Xcode](https://developer.apple.com/xcode/)
* [Swift](https://developer.apple.com/swift/)
* [SwiftUI](https://developer.apple.com/swiftui/)
Featured
* [Accessibility](https://developer.apple.com/documentation/accessibility)
* [App Intents](https://developer.apple.com/documentation/appintents)
* [Apple Intelligence](https://developer.apple.com/apple-intelligence/)
* [Games](https://developer.apple.com/games/)
* [Machine Learning & AI](https://developer.apple.com/machine-learning/)
* [Security](https://developer.apple.com/security/)
* [Xcode Cloud](https://developer.apple.com/xcode-cloud/)
* [Community](https://developer.apple.com/community/)
Explore Community
* [Overview](https://developer.apple.com/community/)
* [Meet with Apple Events](https://developer.apple.com/events/)
* [Community-driven events](https://developer.apple.com/community/events/)
* [Developer Forums](https://developer.apple.com/forums/)
* [Open Source](https://opensource.apple.com/)
Featured
* [WWDC](https://developer.apple.com/wwdc/)
* [Swift Student Challenge](https://developer.apple.com/swift-student-challenge/)
* [Developer Stories](https://developer.apple.com/developer-stories/)
* [App Store Awards](https://developer.apple.com/app-store/app-store-awards/)
* [Apple Design Awards](https://developer.apple.com/design/awards/)
* [Apple Developer Centers](https://developer.apple.com/events/developer-centers/)
* [Documentation](https://developer.apple.com/documentation/)
Explore Documentation
* [Documentation Library](https://developer.apple.com/documentation/)
* [Technology Overviews](https://developer.apple.com/documentation/TechnologyOverviews/)
* [Sample Code](https://developer.apple.com/documentation/SampleCode)
* [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/)
* [Videos](https://developer.apple.com/videos/)
Release Notes
* [Featured Updates](https://developer.apple.com/documentation/Updates)
* [iOS](https://developer.apple.com/documentation/ios-ipados-release-notes)
* [iPadOS](https://developer.apple.com/documentation/ios-ipados-release-notes)
* [macOS](https://developer.apple.com/documentation/macos-release-notes)
* [watchOS](https://developer.apple.com/documentation/watchos-release-notes)
* [visionOS](https://developer.apple.com/documentation/visionos-release-notes/visionos-release-notes)
* [tvOS](https://developer.apple.com/documentation/tvos-release-notes)
* [Xcode](https://developer.apple.com/documentation/Updates/xcode)
* [Downloads](https://developer.apple.com/download/)
Explore Downloads
* [All Downloads](https://developer.apple.com/download/)
* [Operating Systems](https://developer.apple.com/download/os/)
* [Applications](https://developer.apple.com/download/applications/)
* [Design Resources](https://developer.apple.com/design/resources/)
Featured
* [Xcode](https://developer.apple.com/xcode/)
* [TestFlight](https://developer.apple.com/testflight/)
* [Fonts](https://developer.apple.com/fonts/)
* [SF Symbols](https://developer.apple.com/sf-symbols/)
* [Icon Composer](https://developer.apple.com/icon-composer/)
* [Support](https://developer.apple.com/support/)
Explore Support
* [Overview](https://developer.apple.com/support/)
* [Help Guides](https://developer.apple.com/help/)
* [Developer Forums](https://developer.apple.com/forums/)
* [Feedback Assistant](https://developer.apple.com/feedback-assistant/)
* [Contact Us](https://developer.apple.com/contact/)
Featured
* [Account Help](https://developer.apple.com/help/account/)
* [App Review Guidelines](https://developer.apple.com/app-store/review/guidelines/)
* [App Store Connect Help](https://developer.apple.com/help/app-store-connect/)
* [Upcoming Requirements](https://developer.apple.com/news/upcoming-requirements/)
* [Agreements and Guidelines](https://developer.apple.com/support/terms/)
* [System Status](https://developer.apple.com/system-status/)
Quick Links
* [Events](https://developer.apple.com/events/)
* [News](https://developer.apple.com/news/)
* [Forums](https://developer.apple.com/forums/)
* [Videos](https://developer.apple.com/videos/)
- Language: Swift
Navigator is loading
Framework
Core AI
Run AI models in your app on Apple silicon.
iOS 27.0+Beta iPadOS 27.0+Beta Mac Catalyst 27.0+Beta macOS 27.0+Beta tvOS 27.0+Beta visionOS 27.0+Beta watchOS 27.0+Beta
Overview
Core AI helps you build, run, and deploy AI models in your app. Designed with Apple silicon in mind, Core AI allows your app to use the latest model architectures and inference techniques across the CPU, GPU, and Neural Engine. The Swift API makes common tasks simple, while giving you more control over model specialization, caching, and inference performance when needed.

Alongside the framework, Core AI includes additional tools for model preparation, integration, and debugging. Prepare your models for Apple silicon with Core AI Optimization, then convert them into the .aimodel format with Core AI PyTorch Extensions. The Core AI Debugger app supports visualization and numeric debugging, letting you inspect model structure and trace tensor values directly back to your Python source code.
Core AI also integrates with Xcode and the developer toolchain. The Core AI debug gauge and Core AI instrument help you monitor and profile inference performance in your app. You can also compile models ahead of time with the coreai-build command-line tool.
If your app uses model types other than neural networks, such as decision trees or tabular feature engineering, see Core ML.
Topics
Essentials
Integrating on-device AI models in your app with Core AI
Power your app’s intelligent features with an on-device AI model.
A specialized model for running inference on a device.
An unspecialized source model asset.
Inference
A function that performs inference on input values and produces output values.
struct InferenceFunctionDescriptor
A description of an inference function’s signature.
A value that an inference function accepts as input or produces as output.
A description of an image’s dimensions and pixel format.
A stream of work to be run asynchronously.
Multidimensional arrays
A multidimensional array of scalar values used for model inference.
A description of an array’s shape, scalar type, and memory layout expectations.
Configuration
Managing model specialization and caching
Configure model specialization, manage cached assets, and reduce your app’s storage footprint.
Compiling Core AI models ahead of time
Reduce on-device specialization time by compiling Core AI models at build time.
A cache that stores the specialized model artifacts for inference.
A type of hardware compute unit available for model inference.
Debugging and performance
Inspecting, debugging, and profiling Core AI models
Investigate model behavior, monitor activity, and profile performance using the Core AI tools across Xcode and the Core AI Debugger app.
Errors
An error that occurs during model asset operations.
Beta Software
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
Learn more about using Apple's beta software
Current page is Core AI
Apple 1. Developer 2. Documentation
Platforms
Toggle Menu * iOS * iPadOS * macOS * tvOS * visionOS * watchOS
Tools
Toggle Menu * Swift * SwiftUI * Swift Playground * TestFlight * Xcode * Xcode Cloud * SF Symbols
Topics & Technologies
Toggle Menu * Accessibility * Accessories * App Extension * App Store * Audio & Video * Augmented Reality * Design * Distribution * Education * Fonts * Games * Health & Fitness * In-App Purchase * Localization * Maps & Location * Machine Learning & AI * Open Source * Security * Safari & Web
Resources
Toggle Menu
Support
Toggle Menu * Support Articles * Contact Us * Bug Reporting * System Status
Account
Toggle Menu * Apple Developer * App Store Connect * Certificates, IDs, & Profiles * Feedback Assistant
Programs
Toggle Menu * Apple Developer Program * Apple Developer Enterprise Program * App Store Small Business Program * MFi Program * News Partner Program * Video Partner Program * Security Bounty Program * Security Research Device Program
Events
Toggle Menu * Meet with Apple * Apple Developer Centers * App Store Awards * Apple Design Awards * Apple Developer Academies * WWDC
To submit feedback on documentation, visit Feedback Assistant.
Select a color scheme preference
Light
Dark
Auto
Copyright © 2026 Apple Inc. All rights reserved.