---
id: 8696
lang: en
title: "How to Add On-Device AI to Your App with Apple's Foundation Models"
published_at: "2026-05-02 18:04:10"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1019388/?utm_campaign=1019388&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/8696"
categories: ["ethics"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# How to Add On-Device AI to Your App with Apple's Foundation Models

> **Краткая суть (BLUF):** Apple has introduced Foundation Models, a new framework that gives developers access to local AI models directly inside SwiftUI apps. The main promise is that no cloud is needed: responses are generated on the device, with no inference costs and a focus on privacy.  The walkthrough shows how to accept user prompts, stream responses into the UI, and build native AI features without a separate backend.

Apple has introduced a tool for embedding local AI in apps: the Foundation Models framework, which generates text directly on the device without cloud services.

### Why embed local AI in apps?
Local AI lets an app generate text and process requests directly on the device, without the cloud. That saves on inference costs and guarantees privacy.

### What does Foundation Models offer?
With Foundation Models, developers can embed local AI so their apps generate text, answer questions, and create suggestions, all without the cloud or external services.

### How do you add AI to an app?
Apple recommends the Foundation Models framework for embedding local AI models in apps. Text is generated directly on the user's device, with no cloud and no additional inference costs.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1019388/?utm_campaign=1019388&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/8696
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
