AI Gateway for AI-Generated Apps
One API for 500+ AI models, with a syntax that AI coding agents use correctly.
No API keys, no servers, no cost to you.
Start building in seconds.
AI Integration
Access 500+ models, including GPT, Claude, Gemini, Grok, DeepSeek, Nano Banana, GPT Image, and FLUX, through a single API.
- Switch models by changing one parameter
- Always access the latest models
- No vendor lock-in
No API Keys Required
Skip the sign-ups, key management, and credential juggling. Just add Puter.js and start building immediately.
User-Pays Model
Your users cover their own AI costs, so you can ship AI features without worrying about billing, rate limits, or runaway API expenses.
No Servers to Manage
Works entirely client-side. No servers to provision, no infrastructure to maintain. True serverless AI from your frontend code.
Multiple AI Capabilities
Chat, image generation, vision analysis, text-to-speech, speech-to-text, voice changing, OCR, and text-to-video, all from the same library.
How It Works
1 Include Puter.js
Add the Puter.js script tag to your HTML:
<script src="https://js.puter.com/v2/"></script>
or with npm:
npm install @heyputer/puter.js
2 Use AI in your code!
You can now use AI APIs directly from your frontend code. Here's an example:
puter.ai.chat("Explain AI like I'm five!");
View the AI documentation for a full list of available features.
✓That's it!
No need to set up servers or infrastructure. No API keys, configuration, or rate-limiting. Everything is handled by Puter.js!
Access 500+ Models From Leading AI Providers
One API, endless possibilities. Choose from the best AI providers, all in one place.
Frequently Asked Questions
Puter.js is a JavaScript library that allows you to add AI and other cloud services directly to your frontend code.
Simply add the library using either a script tag or the npm package, then call the AI using puter.ai.chat(). No servers to manage. All services are available directly from the client side without any configuration or setup.
With the User-Pays model, users cover their own AI usage costs through their Puter account, so you can build and ship AI features without worrying about API bills or infrastructure.