View as Markdown

Documentation

Why use AIProxy?

We give you peace of mind for your AI app integrations. You'll know that your AI app is operating within predictable usage parameters, and that an attacker is not running up your AI bill.

What kind of problems does it solve?

  1. Most customers find us after trying to figure out what to do with their OpenAI API keys. You simply can't safely use an API key in your app, even if you load it at runtime. So the usual options are to create your own backend or cloud function, and bounce requests from your app through the backend. But here's the thing: you still need to figure out how to protect your backend endpoint! AIProxy does this for you out of the box.
  2. Once your app is in the App store, you need controls that do not require app updates. For example, changing the amount of AI usage users are permitted, or changing the upstream provider that handles your app's requests.
  3. Once your app is live, you need to be alerted if AI requests start failing, otherwise your app remains silently broken. AIProxy gives you flexible non-200 thresholds that fire alert emails for quick remediation.

What you can do with AIProxy

  • Protect provider credentials: Your complete API key is never included in the app binary or sent by the client.
  • Prevent endpoint abuse: We use Apple's DeviceCheck or App Attest, endpoint restrictions, and per-user or per-IP rate limits to control who can make requests and how often.
  • Monitor production usage: Inspect request history, errors, token usage, client activity, and traffic trends in the dashboard, or read the same data from the admin API for your own tooling and agents.
  • Integrate quickly: Use our open-source Swift package for typed access to popular AI services, or proxy requests from your existing networking code.

Where to go from here

The next step is to follow the integration guide or browse sample snippets. If you are integrating with an agent, you can suffix any documentation URL with .md to get agent-friendly instructions.

View integration guide Browse sample snippets