Discover and explore top open-source AI tools and projects—updated daily.
gouwsxanderLocal API for Apple Intelligence Foundation Models
Top 93.0% on SourcePulse
This Swift-based web API exposes Apple's on-device Foundation Models through an OpenAI-compatible HTTP interface. Built with Vapor, it targets developers seeking to integrate Apple Intelligence capabilities into applications, offering a familiar API structure for streamlined adoption and leveraging powerful on-device AI without external dependencies.
How It Works
The project utilizes the Vapor web framework to create an HTTP server that interfaces with Apple's on-device Foundation Models. It translates standard API requests into calls to these local models, supporting both single-prompt completions and multi-turn chat conversations. Responses can be streamed in real-time using Server-Sent Events, mirroring the behavior of popular LLM APIs.
Quick Start & Requirements
swift buildswift run AppleIntelligenceApi serve [--port, -p] (defaults to http://localhost:8080).Highlighted Details
base (default guardrails) and permissive (relaxed filtering).Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Features such as Authentication and Tool/Function calling are not yet implemented. The project is an unofficial API wrapper and is not affiliated with Apple Inc. No automated tests are currently available.
10 months ago
Inactive
abhishekkrthakur