Secured AI Backend Proxy
We prevent you from losing thousands of dollars by including a backend that securely handles your API key requests to the AI API.
Last updated
We prevent you from losing thousands of dollars by including a backend that securely handles your API key requests to the AI API.
Last updated
Login on render.com with your Github account
Create a new Web Service
Download the code on https://github.com/AppKickstarter/backend-ai
In this repository you'll find a KMP ai client and a NodeJS backend server. Create a Github repository and push the node js part on it.
Connect your new NodeJS repository to render and the web service you created before.
On every push the render web service will be updated
Add your environement variables: HMAC_SECRET_KEY, OPENAI_API_KEY and REPLICATE_API_TOKEN
Download AI module on https://github.com/AppKickstarter/AI
Copy paste AI module in your project
Add module in settings.gradle:
Add dependency in your build.gradle:
Add environement variables in local.properties : mobile_ai_api_hmac_secret_key and mobile_ai_url.
mobile_ai_api_hmac_secret_key should be the same the Render HMAC_SECRET_KEY and mobile_ai_url is the url given by render when you publish your web service.
Add BuildKonfig in your project:
Now you can call ChatGpt, Dall-e, Whisper, OpenAI Vision and more :
Create the service :
Inject it in Koin:
Call ChatGpt:
Call Dall-e 3
Call OpenAI Vision
You can add the module in a iOS Swift only project the same way you add a KMP library to a iOS Swift only app. If you want more informations please ask at hey@appkickstarter.com
You can add the module in a Flutter project the same way you add a KMP library to a Flutter app. If you want more informations please ask at hey@appkickstarter.com