Skip to main content
Pollinations (github.com/pollinations/pollinations) is an open-source AI platform and unified API for generating text, images, audio, and video, as well as running hosted Linux sandboxes (Machines). It runs on its own prepaid credits, called Pollen. In AI Code Zero, Pollinations is optional. Building apps, websites, and games in the three studios uses your own coding AI provider key (see Choose an AI provider). Pollinations powers three additional capabilities with a single account sign-in:

Custom AI images

Generate custom illustrations, hero art, and game sprites inside your builds.

In-app AI features

Add chatbots, writing helpers, and AI tools to the sites and apps you create.

The Agent & sandbox

Run code, install packages, and create files in a private Linux computer.

How Pollinations fits into AI Code Zero

AI Code Zero has no account or billing system of its own. Instead of asking you to manage separate accounts for image generation, in-app AI, and cloud sandboxes, it connects directly to your Pollinations account:

The three roles Pollinations plays

1. Custom AI images in your projects

When the Pollinations extension is enabled, the AI can generate custom images instead of relying only on stock photos—such as hero artwork, illustrations, or game sprites.
  • Each build request can generate up to 12 new images, and most images cost a small fraction of one Pollen.
  • When you export or publish a project, its Pollinations images are copied into your site so they stay online with it. (Pollinations deletes images nobody has viewed for 30 days.)
  • Image prompts and generated images are checked against AI Code Zero’s Terms of Use, and you can report any offensive or harmful picture directly from the live preview.
See Extensions → Pollinations for setup details.

2. AI features inside your sites and apps

Pollinations lets the websites and apps you build include live AI features, such as a chatbot, summarizer, or image tool. Because someone has to pay each time a visitor uses an AI feature, AI Code Zero gives you two options under Settings → Extensions → Pollinations:
  • Visitors use their own Pollen (safer) (default): visitors click Connect Pollinations on your site and pay from their own Pollinations account. No secret key is placed in your site’s code.
  • My key pays (the key goes in my sites’ code): you create a separate, budget-capped sk_ site key at enter.pollinations.ai/keys so visitors can use AI features without signing in.

3. The Agent and its Linux computer

The Agent is a chat assistant with its own private, temporary Debian Linux computer (powered by Pollinations Machines). It comes with Node.js, npm, Python, git, and internet access so it can run scripts, convert files, analyse data, fetch web data, and save downloadable files for you.
  • Both the Agent’s AI replies and the time its computer runs are paid from your Pollen.
  • You must check Run hosted sandboxes when signing in with Pollinations so the Agent is allowed to start a computer.
  • The computer and its files are deleted when you start a new chat, leave the Agent, close the tab, or after 10 minutes without use.

Sign-in, budgets, and cost

When you click Sign in with Pollinations (either in Settings → Extensions → Pollinations or in the Agent), a Pollinations approval page opens in your browser where you choose:
  1. Pollen budget: the maximum amount of Pollen AI Code Zero may spend on your behalf.
  2. Expiry: how many days the sign-in remains active.
  3. Permissions: check Run hosted sandboxes if you plan to use the Agent (images and in-app AI features work without it).
One sign-in is shared across both Extensions → Pollinations and the Agent. If you originally signed in only for extensions without Run hosted sandboxes, the Agent will ask you to sign in again with that permission checked.
Using Pollinations through AI Code Zero costs 20% more than using Pollinations directly. The extra supports AI Code Zero. Spending stops automatically once your approved Pollen budget or sign-in days run out.

Privacy and security

  • Your account stays yours: AI Code Zero never sees your Pollinations password, and your personal sign-in is never written into exported or published sites.
  • Where your sign-in is stored: in the desktop app, your sign-in is encrypted in your computer’s keychain. In the browser version, it stays in your browser and is passed per request through AI Code Zero’s server (because Pollinations does not accept direct browser CORS requests), which forwards it without storing it.
  • Content checks: prompts sent to the Agent and image requests are checked against AI Code Zero’s Terms of Use before they are sent.