@rn-ai/apple
v0.2.0
Published
Apple on-device AI SDK 7 provider for React Native
Maintainers
Readme
@rn-ai/apple
AI SDK 7 V4 models backed by Apple Foundation Models, Natural Language, SpeechAnalyzer, and AVFoundation.
import { createOnDeviceRuntime } from '@rn-ai/core'
import { createAppleProvider, defineAppleModel } from '@rn-ai/apple'
const runtime = createOnDeviceRuntime()
const apple = createAppleProvider({ runtime, models: { system: defineAppleModel() } })
const availability = await apple.getAvailability('system')
const model = apple.languageModel('system')
await model.control.prepare()Model downloads
There is no app-managed model download for @rn-ai/apple. Apple supplies and manages these system
assets, so do not configure a remote URL or ask the user for a model path. Check getAvailability()
and call prepare(); the OS reports whether the requested capability is available. If your app also
uses Llama, LiteRT-LM, MLC, or OpenMed, use those packages' runtime-download flow on both iOS and
Android.
The package builds with an iOS 17 minimum. Individual features remain runtime-gated; Foundation Models and SpeechAnalyzer need a compatible iOS 26 device. Stable builds report image understanding as unavailable rather than claiming universal Apple Intelligence support.
