Prototype in minutes
Scale to millions
Call AI APIs directly from the client side without exposing secret keys. Monitor usage, prevent abuse, and enforce quotas for different user tiers. ServerlessAI is the comprehensive solution to build, scale, and monetize AI apps without backend.
ServerlessAI provides an OpenAI-compatible API safe for client-side use. Authenticate users via any OpenID Connect provider, including Google or Apple. Set the OpenAI SDK's base URL to ServerlessAI, and include your Project ID and the user's JWT token. Guest users and machine-to-machine scenarios are also supported.
Step 1. Install OpenAI NPM package.
npm install openai
Step 2. Create a client with the project ID and the user's JWT token from your authentication provider.
const client = new OpenAI({
baseURL: 'https://openai.api.serverlessai.dev/v1',
apiKey: `${PROJECT_ID}:${session.getUserJWT()}`,
dangerouslyAllowBrowser: true, // this is no longer dangerous :)
}
Step 1: Install an OpenAI client, such as this one maintained by MacPaw
Step 2: Create a client with the project ID and the user's JWT, from your authentication provider.
import OpenAI
let client = OpenAI(
configuration: OpenAI.Configuration(
token: "PROJECT_ID:(getUserJWT())",
host: "openai.api.serverlessai.dev"
)
)
Step 1. Install OpenAI pypi package.
pip install openai
Step 2. Create a client with the project ID and the user's JWT token from your authentication provider.
client = OpenAI({
base_url: 'https://openai.api.serverlessai.dev/v1',
api_key: `${PROJECT_ID}:${session.getUserJWT()}`,
}
ServerlessAI provides everything needed in an AI application's backend, so you can focus on what matters the most.
Create AI enabled applications without worrying about infrastructure. Whether you have one customer or a million, we will scale with you.
Never worry about surprise bill. ServerlessAI gives you full visibility into your costs, and you can set quota for each user to prevent abuse.
Use the latest models from OpenAI, Anthropic, Mistral AI, and more. Switch between models without changing your code, and seamlessly fallback to another when one is not available.
From indie developers to enterprises, innovators trust ServerlessAI to accelerate their next AI project.
“This service has been easy to use and it has saved me the hassle of maintaining an entire backend stack and managing failover between different AI backends for this simple, frontend-heavy app my team is working on. Thank you for building such an efficient and reliable solution!”
“As a mobile app developer, integrating AI was always a headache. ServerlessAI changed that. We can now call OpenAI APIs directly from apps without compromising security. Highly recommend it for any mobile AI developer!”
“ServerlessAI has completely transformed how we approach AI integrations in our apps. Having the freedom to switch between AI providers, all from one place, allowed us to explore new AI models with minimal friction. Their support is top-notch too — always responsive and helpful! ”