A collection of on-device examples using Apple’s FoundationModels framework
A conversational chatbot that responds in a friendly tone.
✅ Powered by
SystemLanguageModel
✅ Maintains short context history
✅ Runs 100% locally on-device
An English tutor that checks your sentence, explains grammar mistakes, and provides corrections.
✅ Powered by
SystemLanguageModel
✅ Offers detailed explanations
✅ Runs 100% locally on-device
Creates cooking recipes with clear step-by-step instructions.
✅ Powered by
SystemLanguageModel
✅ Supports streaming output for recipe generation
✅ Produces structured results (title, ingredients, steps)
✅ Runs 100% locally on-device
Generates personalized workout routines tailored to your goals, equipment, and experience level.
✅ Powered by FoundationModels (on-device)
✅ Fully customizable inputs (goal, duration, equipment, level)
✅ Produces clear step-by-step exercise lists
✅ Runs 100% locally—no network required
An on-device storytelling app that generates calming, child-friendly stories in real time—designed to help children relax in stressful situations such as flights, bedtime, or unfamiliar environments.
✅ Powered by
SystemLanguageModel
✅ Generates safe, soothing stories entirely on-device
✅ Adjustable story length (1–12 minutes)
✅ Real-time text-to-speech playback usingAVSpeechSynthesizer
FoundationModels is Apple’s official framework for running foundation language models on-device.
These examples help developers explore capabilities like text generation, summarization, and natural dialogue — all without relying on cloud inference.




