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.