Add AI to Your App in Seconds

Access 500+ AI models with a single library.
No API keys, no backend, no billing.
Start building in seconds.

Add AI to Your App Find Tutorials

AI Integration

Access GPT, Claude, Gemini, Grok, DeepSeek, Nano Banana, GPT Image, FLUX, and 500+ more models through a single AI 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 Backend Required

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, 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 for using OpenAI:

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!

Browse Tutorials Read the Docs Try the Playground

Access 500+ Models From Leading AI Providers

One API, endless possibilities. Choose from the best AI providers—all in one place.

See all AI models →

Frequently Asked Questions

What is Puter.js?

Puter.js is a JavaScript library that allows you to add AI and other cloud services directly to your frontend code.

How do I add AI to my app with Puter.js?

Simply add the library using either a script tag or the NPM package, then call the AI using puter.ai.chat(). No backend required—all services are available directly from the client side without any configuration or setup.

How much does it cost?

With the User-Pays model, users cover their own storage and bandwidth costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.

Ready to Add AI to Your App?

Get started with Puter.js — add AI AI features without worrying about infrastructure or API costs.

Read the Docs

Browse Tutorials Try the Playground