Mobile SDKs provide client libraries that wrap AI model APIs or on-device inference runtimes for iOS and Android apps.
Popular SDKs (2025)
Feature Matrix
Design Trade-offs
- On-device inference offers privacy & offline use but increases app size.
- Hybrid SDKs auto-select cloud or local model based on token budget.
- Continuous streaming drains battery faster.
Implementation Tips
- Cache auth tokens securely in Keychain / Keystore.
- Use exponential backoff for network retries.
- Downsample microphone audio to 16 kHz before ASR calls.
- Apple's Foundation Models and Speech frameworks provide on-device LLM and voice capabilities.12