Set up your AI Proxy Backend.
/auth
POST
endpoint for authentication and get secret key./ai/openai
POST
endpoint for OpenAI requests/ai/openai/stream
POST
endpoint for OpenAI streaming requests/ai/vision
POST
endpoint for OpenAI Vision API requests/ai/anthropic
POST
endpoint for Anthropic requests/ai/anthropic/stream
POST
endpoint for Anthropic streaming requests/ai/replicate/generate
POST
endpoint for Replicate requests/ai/fal/generate
POST
endpoint for Fal AI requestsuseHmac
hook and api-client.ts
in the Expo code for implementationpnpm run dev
http://localhost:3000/...
https://[your-ngrok-id].ngrok.app/...
your-project-name
folder.cd [your-project-name]-backend
.pnpm
but you can use npm
or yarn
.generate-keys
command to create the security keys..env.production
file too.API_KEY
and HMAC_SECRET_KEY
are created.Now type your app identifier: like: com.shipmobilefast.app
.And copy the API_KEY
and paste it on the Expo project’s .env
file.ALLOWED_ORIGINS
is the list of origins that are allowed to send requests to the backend.
So make it your app’s identifier..env.local
and .env.production
files.Service Accounts
tab.Generate New Private Key
button.Generate Key
button.firebase-service-account.json
..gitignore
file and never commit it to the repository.Never add this on Expo project..env
file.