AIProxyTeam/AIProxySwift
Swift clients for AI providers. You can make requests straight to the provider or proxied through our abuse protection backend
What it solves
This library provides a secure way to integrate various AI APIs into Swift applications. It helps developers avoid exposing sensitive API keys directly in their app code and provides tools to manage AI costs and usage limits.
How it works
It acts as a client library for many popular AI providers (such as OpenAI, Anthropic, and Gemini). You can choose to connect directly to these providers for prototyping or use the AIProxy backend for production. When using the AIProxy backend, the library applies five security layers: certificate pinning, DeviceCheck verification, split key encryption, and both per-user and per-IP rate limiting.
Who it’s for
It is designed for Swift developers building iOS or macOS applications who want to integrate AI features while maintaining control over their API credentials and usage costs.
Highlights
- Supports a wide range of providers including OpenAI, Anthropic, Gemini, Groq, Mistral, and more.
- Offers a "bring your own key" (BYOK) mode for simple prototyping.
- Provides production-grade security features to protect API keys and prevent abuse.
- Includes built-in support for streaming responses and multi-modal inputs like images.
- Easy integration via Swift Package Manager or CocoaPods.
Related
- Project
- Project
- Project
- Project
- Project