Ship a Full-Stack App with One Prompt

Copy this prompt into your AI coding agent, or open it in one below.

Give this to your AI Create a to-do list app using Puter.js

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.

Add AI to Your App See Tutorials

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!

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 servers to manage. 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 AI usage costs through their Puter account, so you can build and ship AI features without worrying about API bills or infrastructure.

Ship a Full-Stack App with One Prompt

Give this to your AI Build an AI chat app using Puter.js