Can I use foundation model in my keyboard extension?
Asked on 06/17/2025
1 search
Yes, you can use the Foundation Models framework in your keyboard extension. The Foundation Models framework provides access to an on-device large language model that can be used to enhance features in your apps, including keyboard extensions. This framework is available on macOS, iOS, iPadOS, and VisionOS, and it allows you to perform tasks such as text extraction, summarization, and more, all while keeping data private and running offline. You can integrate this framework into your app with just a few lines of code, making it a powerful tool for adding intelligent features to your keyboard extension.
For more details, you might want to check out the session Meet the Foundation Models framework which provides an introduction to the framework and its capabilities.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

Meet the Foundation Models framework
Learn how to tap into the on-device large language model behind Apple Intelligence! This high-level overview covers everything from guided generation for generating Swift data structures and streaming for responsive experiences, to tool calling for integrating data sources and sessions for context management. This session has no prerequisites.

Discover machine learning & AI frameworks on Apple platforms
Tour the latest updates to machine learning and AI frameworks available on Apple platforms. Whether you are an app developer ready to tap into Apple Intelligence, an ML engineer optimizing models for on-device deployment, or an AI enthusiast exploring the frontier of what is possible, we’ll offer guidance to help select the right tools for your needs.