The safest way to add AI to your iOS app

Forget complicated cloud functions and building your own backend. Protect any API key in minutes with a fully managed proxy.

Get started with our free plan No credit card required
Trusted by hundreds of developers worldwide
Integrate our client library into your app in less than 10 minutes.
Protect your wallet with built-in API security best practices.
Monitor your API usage with realtime observability.

Millions of requests are protected with AIProxy

Protect the APIs your app depends on
OpenAI logo OpenAI
Replicate logo Replicate
Anthropic logo Anthropic
Stability AI logo Stability AI
Fal logo Fal
Perplexity logo Perplexity
Groq logo Groq
EachAI logo EachAI
ElevenLabs logo ElevenLabs
Gemini logo Gemini
Together AI logo Together AI
OpenRouter logo OpenRouter
DeepL logo DeepL
Mistral logo Mistral

Security, observability and control

Security

AIProxy uses a combination of split key encryption, DeviceCheck and certificate pinning to prevent your key and endpoint from being stolen or abused.

Rate limiting

Use rate limits to prevent endpoint abuse. Requests to your service's endpoints will be denied if they exceed thresholds that you set in the rate limit builder.

Monitoring

Our dashboard helps you keep an eye on your usage and get a deeper understanding of how users are interacting with AI in your app.

Model overrides

Want to change or experiment with different models. No problem! You can do it right from the dashboard without updating your app.

Live Console

Use the live console to test your API calls from your app. Find errors and get a better understanding of performance.

Notifications

Get alerts when there's suspicious activity so you can take quick action. We'll keep you informed so that you can stay protected.

Bring your own key

Configure AIProxy to send requests directly to the providers we support so you can give your users the option to use their own keys.

Swift client library

Our client library AIProxySwift makes it easy to integrate AIProxy into your app with support for over 15 different AI providers.

Built to Scale

Built on AWS, our service horizontally scales to meet demands. You can be confident that your proxy will continue to run no matter what.

What customers say

Juanjo Valiño
Wrapfast
"I see developers on Twitter every day struggling with how to secure their API keys. AIProxy makes it simple, so you no longer have to waste time overthinking a backend."
Hidde van der Ploeg
Helm
"AIProxy lets us enable pro users to use AI without using their own OpenAI key. This creates a smoother user experience that aligns with our product."
"With AIProxy you just need to know Swift and SwiftUI, no need to learn other languages or frameworks. Additionally, users will benefit as we can eliminate the need to authenticate them. Perfect for developers and users."
Emin Grbo
@r0black
"If there was one product I wish I could buy again, it’s http://aiproxy.com! Lou and his team are going above and beyond to make sure their product is top-notch! 👌 best purchase I ever made."
Dan Rosenstark
MIDI Designer
"I created a lovely prototype of my iPhone app, Fast Dictate, that relies on the Whisper API from Open AI. Then I started thinking about securing the API key on the server using DeviceCheck (and adding logging, flexible rate limits, and more). Luckily, with AIProxy I was able to implement a secure solution in minutes instead of days.. there's even an iOS API which uses async/await. Great!"
Shihab Mehboob
Bulletin
"I’ve been using AI Proxy for the past few months and have been loving the tool. It does exactly what it says on the tin, and without any complications. I appreciate the simplicity and great customer support that I’ve received. Any questions I had have been answered immediately, and any suggestions I’ve made have been added with lightning fast speed."
James Rochabrun
SwiftOpenAI
"AIProxy is an amazing contribution to the @OpenAI Swift library, thanks @louzell_ and @toddham for the great job! Open source ❤️."
Tirupati Balan
Amigo Finance
"AIProxy has significantly improved our backend operations at Amigo AI, ensuring our GPT key and all OpenAI requests are securely managed. This security gives us peace of mind and lets us focus on delivering excellent financial management AI. The founders have been incredibly supportive and responsive throughout. We're very pleased with their service."
Sam McGarry
Cue
"The set up was a breeze. What could have been a confusing multi-step process felt simple. I was able to get back to building immediately, while knowing my API key was safe."
Arjun
@dotarjun
"Just discovered http://aiproxy.com by @louzell_ all thanks to Tech Twitter. It's one of those rare innovative AI product which isn't just a ChatGPT wrapper."
Luca Lupo
iirc_ai
"I thought I was safe as IIRC is small but that didn't matter; somehow they targeted my app and were able to spoof the API key by looking at network traffic (I was sending it over a Firebase remote config). I then decided to migrate to AI Proxy, it took literally 10 minutes and the new API key has been safe ever since."
Juanjo Valiño
Wrapfast
"I see developers on Twitter every day struggling with how to secure their API keys. AIProxy makes it simple, so you no longer have to waste time overthinking a backend."
Hidde van der Ploeg
Helm
"AIProxy lets us enable pro users to use AI without using their own OpenAI key. This creates a smoother user experience that aligns with our product."
"With AIProxy you just need to know Swift and SwiftUI, no need to learn other languages or frameworks. Additionally, users will benefit as we can eliminate the need to authenticate them. Perfect for developers and users."
Emin Grbo
@r0black
"If there was one product I wish I could buy again, it’s http://aiproxy.com! Lou and his team are going above and beyond to make sure their product is top-notch! 👌 best purchase I ever made."
Dan Rosenstark
MIDI Designer
"I created a lovely prototype of my iPhone app, Fast Dictate, that relies on the Whisper API from Open AI. Then I started thinking about securing the API key on the server using DeviceCheck (and adding logging, flexible rate limits, and more). Luckily, with AIProxy I was able to implement a secure solution in minutes instead of days.. there's even an iOS API which uses async/await. Great!"
Shihab Mehboob
Bulletin
"I’ve been using AI Proxy for the past few months and have been loving the tool. It does exactly what it says on the tin, and without any complications. I appreciate the simplicity and great customer support that I’ve received. Any questions I had have been answered immediately, and any suggestions I’ve made have been added with lightning fast speed."
James Rochabrun
SwiftOpenAI
"AIProxy is an amazing contribution to the @OpenAI Swift library, thanks @louzell_ and @toddham for the great job! Open source ❤️."
Tirupati Balan
Amigo Finance
"AIProxy has significantly improved our backend operations at Amigo AI, ensuring our GPT key and all OpenAI requests are securely managed. This security gives us peace of mind and lets us focus on delivering excellent financial management AI. The founders have been incredibly supportive and responsive throughout. We're very pleased with their service."
Sam McGarry
Cue
"The set up was a breeze. What could have been a confusing multi-step process felt simple. I was able to get back to building immediately, while knowing my API key was safe."
Arjun
@dotarjun
"Just discovered http://aiproxy.com by @louzell_ all thanks to Tech Twitter. It's one of those rare innovative AI product which isn't just a ChatGPT wrapper."
Luca Lupo
iirc_ai
"I thought I was safe as IIRC is small but that didn't matter; somehow they targeted my app and were able to spoof the API key by looking at network traffic (I was sending it over a Firebase remote config). I then decided to migrate to AI Proxy, it took literally 10 minutes and the new API key has been safe ever since."

Resources to get you started

Protect the APIs your app depends on

Integrate with your app in minutes.
Get started with our free plan

FAQs

Have more questions?

No, we don't actually store any customer API keys. Instead, we encrypt your key and store one part of that encrypted result in our database. On its own, this message can't be reversed into your secret key. The other part of the encrypted message is sent up with requests from your app. When the two pieces are married, we derive your secret key and fulfill the request.

The key we provide you is useless on its own and can be hardcoded in your client. When you add an OpenAI key in our dashboard we don't store it on our backend. We encrypt your key and store only half, and give you the other half which you use in your client. We combine these two pieces and decrypt when a request gets made.

We have multiple mechanisms in place to restrict endpoint abuse:
1. Your AIProxy project comes with proxy rules that you configure. You can enable only endpoints that your app depends on in the proxy rules section. For example, if your app depends on /v1/chat/completions, then you would permit the proxying of requests to that endpoint and block all others. This makes your enpdoint less desireable to attackers.

2. We use Apple's DeviceCheck service to ensure that requests to AIProxy originated from your app running on legitimate Apple hardware.

3. We guarantee that DeviceCheck tokens are only used once, which prevents an attacker from replaying a token that they sniffed from the network.

The proxy is deployed on AWS Lambda, meaning we can effortlessly scale horizontally behind a load balancer.

Upon configuring your project in the developer dashboard, you'll receive initialization code to drop into the AIProxySwift client.