AIProxy Logo

AIProxy

The safest way to add AI to your iOS app

Freemium
Screenshot of AIProxy

Description

AIProxy provides a secure and managed solution for iOS developers looking to integrate various AI APIs into their applications without the complexity of building and maintaining their own backend infrastructure or exposing sensitive API keys directly within the app. It acts as a proxy layer, safeguarding credentials using techniques like split key encryption and DeviceCheck, while offering robust features for control and monitoring.

The service simplifies the integration process with a dedicated Swift client library (AIProxySwift), allowing developers to connect to over 15 AI providers, including OpenAI, Anthropic, Replicate, and Gemini, often in under 10 minutes. Beyond security, AIProxy offers realtime observability dashboards to monitor API usage, configurable rate limits to prevent abuse, and the flexibility to switch AI models via the dashboard without needing an app update. It's built on scalable cloud infrastructure (AWS) to handle varying loads.

Key Features

  • API Key Security: Protects keys using split key encryption, DeviceCheck, and certificate pinning.
  • Swift Client Library (AIProxySwift): Enables quick integration into iOS apps (typically <10 minutes).
  • Multi-Provider Support: Compatible with over 15 AI APIs including OpenAI, Anthropic, Replicate, Gemini, etc.
  • Realtime Monitoring: Dashboard provides observability into API usage and user interactions.
  • Rate Limiting: Set custom thresholds to prevent endpoint abuse.
  • Model Overrides: Change or experiment with AI models via the dashboard without app updates.
  • Bring Your Own Key (BYOK): Allows end-users to utilize their own API keys.
  • Scalable Infrastructure: Built on AWS Lambda for horizontal scaling.

Use Cases

  • Securely integrating third-party AI APIs into iOS applications.
  • Protecting OpenAI, Anthropic, and other AI API keys in mobile apps.
  • Simplifying backend development for AI features in iOS apps.
  • Monitoring and controlling AI API consumption within an application.
  • Implementing rate limits for AI API usage.
  • Allowing app users to provide their own AI API keys (BYOK).
  • Experimenting with different AI models without releasing app updates.

Frequently Asked Questions

Does AIProxy store API keys?

No, AIProxy does not store customer API keys directly. It encrypts the key and stores only one part of the encrypted result. The other part is sent with requests from the app. The key is derived only when these two pieces are combined during a request.

What if someone steals my AIProxy key?

The AIProxy key provided to you is useless on its own. It's only one half of an encrypted key. The other half is stored securely by AIProxy. Without both pieces, the original API key cannot be reconstructed.

What if someone uses my AIProxy endpoint?

AIProxy uses multiple mechanisms: 1. Configurable proxy rules to only allow specific endpoints. 2. Apple's DeviceCheck service to verify requests originate from your app on legitimate hardware. 3. Ensuring DeviceCheck tokens are single-use to prevent replay attacks.

How does AIProxy handle scaling?

The proxy is deployed on AWS Lambda, allowing it to scale horizontally automatically behind a load balancer to meet demand.

How do I integrate using Swift?

After configuring your project in the AIProxy developer dashboard, you receive initialization code to use with the AIProxySwift client library for integration.

You Might Also Like