Skip to content

About

Your Friendly Open-Source Gen-AI Platform

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

ย 
ย 

Latest commit

ย 

History

12,582 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

pollinations.ai

Open-source AI for people who make things.

Stars License Discord

Website ยท Dashboard ยท Playground ยท Guides ยท API Docs ยท Discord

Pixel art cozy hackerspace: robot at terminal, nomnom creature eating code, bee with glasses

๐Ÿ†• Recent Apps

Name Description Author
๐Ÿ–ผ๏ธ Tomadix Tomadix is an AI-powered creative platform designed to help users create professional prompts and generate high-quality images using artificial intelligence. Made with Pollinations.ai. @gereiz
๐Ÿ’ฌ Parallel Voices Ask one question to several Pollinations text models at once and compare every answer side by side, with latency and token counts per model. Bring your own Pollen. @EzzElddin-AbdAllah
๐Ÿ’ฌ DynaSpark AI DynaSpark AI is a versatile multimodal assistant for text, code, image and video generation, data analysis, and web and document processing, powered by Pollinations AI and BYOP models. @Th3-C0der
๐Ÿ–ผ๏ธ Pixelsprite ai Create good images for game assets in pixels every images use game and created transformation for treding images and auto background transparent @ratherlive3-png
๐Ÿ–ผ๏ธ ZEEK AI Girl Lab - BYOK Public Edition ZEEK AI Girl Lab is a 100% client-side BYOK prompt forge for generating AI girl photos. Users bring their own Pollinations sk_... key (stored only in localStorage, zero server), expand prompts with QW @hwoarangkang
๐Ÿ’ผ Jev AI - Chat with Jev Jev AI - Chat with Jev is a lightweight browser-based interface for TypeSafe AI's Jev decision model through Pollinations. It allows users to define structured questions and application context, t @alexsasha2750
๐Ÿ–ผ๏ธ PIXOO64 Media Art Pixoo64 Media Album Art is a native Home Assistant custom integration that transforms the Divoom Pixoo64 64ร—64 LED matrix into an intelligent media and visual display hub. Beyond traditional cover art @idodov
๐ŸŽฎ Prompt Brawl Describe a fighter in one line: the AI designs it (portrait, stats, moves, a weakness) and commentates the brawl. Ladder, daily boss, voice and share links. Players pay with their own Pollen. @lotxo1
๐ŸŽฎ Wanderpost Explorable postcard worlds. You type a scene, and the first postcard is painted from it. Then you click the doors, paths and windows in the picture to step into the next view โ€” one painted pos @kreggscode
๐Ÿ–ผ๏ธ Pollinations Image Studio Pollinations Image Studio is a web app that allows users to generate AI images using the Pollinations API. Users can connect their Pollinations account through OAuth and create images directly in thei @lahoucinebathoum

Browse all apps โ†’

๐Ÿš€ Unified API

https://gen.pollinations.ai provides one API for text, images, audio, video, 3D, and embeddings.

What's Included

  • Unified endpoint: single API at gen.pollinations.ai for all generation
  • Pollen credits: simple pay-as-you-go system ($1 โ‰ˆ 1 Pollen)
  • All models, one place: Flux, GPT, Claude, Gemini, Seedream, and more
  • API keys: secret keys for model usage, app keys for tracking BYOP apps.
  • CLI: npx @pollinations/cli for humans and AI agents (source)

Get started at enter.pollinations.ai and check out the API docs

๐Ÿ†• Latest News

  • API Choose your model fallbacks Nov 6
    Set model to up to four comma-separated model IDs or aliases. If an upstream attempt fails in a retryable way, the API tries the next eligible model in order. Entries must share a category and support the requested endpoint.
  • Feature Compare sandbox templates Nov 6
    The searchable Sandboxes tab shows five E2B and Azure templates, with sizes, hourly prices, 720-hour monthly estimates, the 75% launch discount, and a polli sandbox create command for each.
  • API More sandbox pricing details Nov 6
    GET /alpha/e2b/pricing now includes each template's name, provider, size, and diskSizeMB alongside its existing fields.
  • Model GPT Image 2.6 Flare Nov 5
    Generate and edit images with openai/gpt-image-2.6-flare, using up to 16 reference images, transparency, and 4K output. It requires purchased Pollen.
  • Model GPT Image 2.6 Sunburst Nov 5
    Generate and edit images with openai/gpt-image-2.6-sunburst, using up to 16 reference images, transparency, and 4K output. It requires purchased Pollen.
  • Feature Invite friends for Pollen Nov 5
    The new Invite friends quest awards 2 Quest Pollen for each qualifying referral whose purchases total more than 2 Pollen. Connect GitHub to copy your invite link from the Quests page.
  • Feature Contribution quests get reward labels Nov 5
    From November 5, eligible PRs merged into main earn the PR's reward label, the highest label on a quest issue they close, or 5 Pollen by default. Eligible issue authors earn 2 Pollen.
  • Feature Pollinations agents in ACP editors Nov 5
    Use polli acp [agent] in CLI 0.1.80 to run Pollinations agents in ACP editors such as Zed and JetBrains IDEs. Prompts can include images and files, and local tool calls require permission.
  • API Code agents call your tools Nov 5
    Pass function tools to a code agent through /v1/responses. The agent can return a call for your client to execute, then continue when you send the matching function_call_output.
  • Feature Barbara sends early warnings Nov 5
    Mama Barbara sends a Telegram warning when an owner's sign-in is within two days of expiry or the remaining Pollen budget falls below one day of rent for running boxes. The warning includes /signin.

More news on enter.pollinations.ai โ†’


๐ŸŒฑ Introduction

pollinations.ai is an open-source generative AI platform based in Berlin, used by 500+ community projects. It provides APIs for text, image, video, audio, 3D, and embeddings generation. Our code and development discussions are public. Supporters help fund the project.

Star History Chart

๐Ÿš€ Key Features

  • ๐Ÿ”“ 100% Open Source: code, decisions, roadmap all public
  • ๐Ÿค Community-Built: 500+ projects already using our APIs
  • ๐ŸŒฑ Pollen Quests: earn Pollen by completing Quests
  • ๐Ÿ–ผ๏ธ Image Generation: Text-to-image and image editing
  • ๐Ÿ“ Text Generation: Chat, reasoning, vision, function calling, structured outputs
  • ๐ŸŽฌ Video Generation: Text-to-video and image-to-video
  • ๐ŸŽต Audio: Text-to-speech and speech-to-text
  • ๐ŸงŠ 3D Generation: Text-to-3D and image-to-3D
  • ๐ŸŽ™๏ธ Real-time API: OpenAI-compatible WebSocket for streaming conversations
  • ๐Ÿ”ข Embeddings Creation: Semantic search, retrieval, similarity matching
  • ๐Ÿค– Managed Agents: Turn a prompt, base model, and optional Pollinations tools into a reusable model
  • ๐Ÿ“ฆ Sandboxes: Cloud Linux computers for you or your agents, opened with SSH or VS Code
  • ๐ŸŒ Sites: Free static hosting at <name>.pollinations.app
  • ๐ŸŽฃ Easy-to-use Packages (Packages)

Guides

Guide Purpose
Pollinations Pay (BYOP) Let users pay with their own Pollen
Publish an Agent Publish a hosted agent
Publish a Model Connect your model endpoint
Sandboxes Run code in a virtual machine
Sites Host a static site at .pollinations.app
Coding Harnesses Connect a coding assistant
MCP Servers Give agents access to tools
CLI Use Pollinations from a terminal

๐Ÿค– Managed Agents

Build a reusable text agent without hosting an agent server. Choose a system prompt and base model, optionally give it Pollinations tools, then call it through the same OpenAI-compatible API as any other model.

  • Private or public: keep an agent owner-only or publish it after receiving community publisher access.
  • Normal model API: call a registered agent by its owner/agent-name model ID.
  • Dashboard, CLI, or API: manage agents in My Models, with polli agents, or through /account/agents.

See Publish an Agent for setup and billing behavior.

๐Ÿ› ๏ธ Coding Harnesses

Run tools such as Bloom CLI, DeepSeek Harness, Hermes Agent, Mistral Vibe, OpenCode, Pi, Prime Agent, and tgpt on Pollinations models. polli harness edits the tool's own config so it calls Pollinations with a dedicated key, and restores it on off.

npx @pollinations/cli harness dsh on

See Coding Harnesses for supported harnesses and how to add one.

๐Ÿงฉ Community Models

Community members connect their own OpenAI-compatible text, image, image-editing, and speech-to-text endpoints to Pollinations.

  • Host your own model: follow Publish a Model to test and register an upstream endpoint, then keep it private or publish it to the catalog.
  • Automatic fallback routing: nominate up to three compatible backup models so generations keep moving when an upstream model goes down.
  • Discover and monitor: browse community models via gen.pollinations.ai/v1/models and watch live health and community leaderboards at model-monitor.pollinations.ai.

For billing details when building apps on top, see Pollinations Pay.

๐Ÿš€ Getting Started

Ask DeepWiki

Quick Start (3 Steps)

1๏ธโƒฃ Get your API key
Sign up at enter.pollinations.ai to generate your key.

2๏ธโƒฃ Choose what you want to generate
Pollinations supports:

  • ๐Ÿ–ผ Images
  • ๐Ÿ“ Text
  • ๐Ÿ”Š Audio
  • ๐ŸŽฌ Video
  • ๐ŸงŠ 3D
  • ๐Ÿ”ข Embeddings

3๏ธโƒฃ Make your first request
Use one of the examples below to generate your first AI output in seconds.

Image Generation

curl -H "Authorization: Bearer YOUR_API_KEY" 'https://gen.pollinations.ai/image/a%20beautiful%20sunset' -o image.jpg

Or visit pollinations.ai/play for an interactive experience.

Text Generation

curl 'https://gen.pollinations.ai/text/Hello%20world?key=YOUR_API_KEY'

Audio Generation

Simple GET endpoint:

curl 'https://gen.pollinations.ai/audio/Hello%20from%20Pollinations?voice=nova&key=YOUR_API_KEY' -o speech.mp3

OpenAI TTS compatible:

curl 'https://gen.pollinations.ai/v1/audio/speech' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{"model": "openai/tts-1", "input": "Hello from Pollinations!", "voice": "nova"}' \
  -o speech.mp3

Available voices: alloy, echo, fable, onyx, nova, shimmer, plus 30+ ElevenLabs voices.

Speech-to-text:

curl 'https://gen.pollinations.ai/v1/audio/transcriptions' \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F file=@audio.mp3 \
  -F model=openai/whisper-large-v3

Video Generation

curl 'https://gen.pollinations.ai/video/a%20sunset%20timelapse%20over%20the%20ocean?key=YOUR_API_KEY' -o video.mp4

Use duration to set video length, aspectRatio for orientation, and image[0]/image[1] to pass start/end reference frames. See available video models and capabilities at gen.pollinations.ai/video/models.

3D Generation

curl 'https://gen.pollinations.ai/3d/a%20low-poly%20treasure%20chest?model=microsoft/trellis-2&resolution=low&key=YOUR_API_KEY&image=IMAGE_URL' -o model.glb

Pass reference image URL(s) via the image parameter for image-to-3D models (put image= last in the URL, or URL-encode it). See available 3D models at gen.pollinations.ai/3d/models.

Embeddings

curl 'https://gen.pollinations.ai/v1/embeddings' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{"model": "openai/text-embedding-3-small", "input": "Hello world!"}'

Pass a string or an array of up to 32 strings (text or multimodal content parts). See available embedding models at gen.pollinations.ai/embeddings/models.

Pollinations CLI

Generate text, images, audio, video, and more right from your terminal:

npx @pollinations/cli gen image "cyberpunk city at night" --model black-forest-labs/flux.1-schnell --output city.png
npx @pollinations/cli gen text "Explain quantum tunneling in one sentence"
npx @pollinations/cli gen audio "Hello world" --voice nova --output speech.mp3
npx @pollinations/cli gen video "a waterfall in slow motion" --duration 5 --output clip.mp4
npx @pollinations/cli gen transcribe speech.mp3

Install globally and use the shorter polli command: npm install -g @pollinations/cli. Run polli models to list models, polli auth login to authenticate, and polli docs for the full API reference in your terminal.

Real-time API

Stream AI responses over an OpenAI-compatible WebSocket:

wss://gen.pollinations.ai/v1/realtime?model=openai/gpt-realtime-2.1&key=sk_YOUR_API_KEY

Browser clients pass a user-authorized key from Pollinations Pay as a query parameter (?key=); server clients can use the Authorization: Bearer header instead.

MCP Servers

Connect Streamable HTTP clients to the hosted Pollinations MCP server:

https://gen.pollinations.ai/mcp/pollinations

Send your Pollinations API key as an Authorization: Bearer header. See the MCP Servers documentation for the full hosted catalog.

๐Ÿ” Authentication

Get your API key at enter.pollinations.ai

Key Types

Key Prefix Use Case Rate Limits Status
App Key pk_ Identifies your app in Pollinations Connect Can't authenticate requests Stable
Secret sk_ Server-side only No rate limits Stable

โš ๏ธ Never expose sk_ keys in client-side code, git repos, or public URLs

๐Ÿ’ก Building an app? Use Pollinations Pay: users pay for their own usage, you pay $0

Model Restrictions

Each API key can be scoped to model categories or specific models. When creating a key at enter.pollinations.ai, you can:

  • Allow all models: key works with any available model
  • Restrict to categories: e.g. only image, or image and text. A key allows every model in its categories, including models added later
  • Restrict to specific models: through the API or polli keys update <id> --models black-forest-labs/flux.1-schnell tongyi-mai/z-image-turbo; a model ID allows only that model

Usage

curl 'https://gen.pollinations.ai/image/a%20cat?key=YOUR_KEY'

Environment variable (best practice):

export POLLINATIONS_API_KEY=sk_...

See full API docs for detailed authentication information.

๐Ÿ–ฅ๏ธ How to Use

Web Interface

Visit the playground to generate content in your browser.

Here are some examples of what you can generate:

Pixel art robot and bee in a cozy digital garden: Stardew Valley style

Robot holding generated image saying I CAN SEE, nomnom creature eating prompt text

๐Ÿ› ๏ธ Integration

SDK

Check out our Pollinations SDK for Node.js, browser, and React integration.

OpenAI SDK Compatibility

The API is OpenAI-compatible. Set the base URL in an official OpenAI SDK to https://gen.pollinations.ai/v1.

Node.js:

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://gen.pollinations.ai/v1",
  apiKey: "YOUR_API_KEY",
});

const response = await client.chat.completions.create({
  model: "openai/gpt-5.4-nano",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Python:

from openai import OpenAI

client = OpenAI(base_url="https://gen.pollinations.ai/v1", api_key="YOUR_API_KEY")

response = client.chat.completions.create(
    model="openai/gpt-5.4-nano",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Other OpenAI SDKs work too: Go, Java, .NET, Rust (async-openai, community), plus compatible frameworks like Vercel AI SDK.

Vercel AI SDK:

import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
import { generateText } from "ai";

const pollinations = createOpenAICompatible({
  name: "pollinations",
  baseURL: "https://gen.pollinations.ai/v1",
  apiKey: "YOUR_API_KEY",
});

const { text } = await generateText({
  model: pollinations.chatModel("openai/gpt-5.4-nano"),
  prompt: "Hello!",
});
console.log(text);

Streaming, image, and embedding examples: API docs โ†’ Vercel AI SDK.

Architecture

%%{init: {'theme': 'dark', 'themeVariables': { 'background': '#1a1a1a', 'primaryColor': '#2a2a2a', 'primaryBorderColor': '#555555', 'primaryTextColor': '#eeeeee', 'lineColor': '#00e5ff', 'clusterBkg': 'transparent', 'clusterBorder': '#888888', 'fontSize': '13px', 'fontFamily': 'Inter, system-ui, sans-serif'}}}%%

graph LR
    subgraph CLIENTS["Clients / Apps"]
        Q[Bots - Discord, Telegram, WhatsApp]
        N[30+ Mobile and Web Apps]
        A[pollinations.ai Web Frontend]
        R[AI Agents - Qwen, Sillytavern, ...]
        AI[AI Assistants - Claude]
        MCP[MCP Server]
    end

    AI --> MCP
    Q --> GEN
    N --> GEN
    A --> GEN
    R --> GEN
    MCP --> GEN

    GEN["gen.pollinations.ai: Edge Router + Generation Worker"]:::cfWorker -->|auth and billing| ENTER["enter.pollinations.ai: Auth Gateway + Billing"]:::cfWorker

    GEN --> IMG["Image: gen Worker dispatch to providers / GPU backends"]:::cfWorkerLight
    IMG --> D["Flux, Z-Image, Seedream, ...: GPU VMs"]:::gpuNode

    GEN --> TXT["Text: Portkey multi-provider"]:::provider
    GEN --> VID["Video: Wan / Veo / Seedance"]:::provider
    GEN --> AUD["Audio: ElevenLabs / OVH (Whisper)"]:::provider

    style CLIENTS fill:none,stroke:#888,stroke-width:2px,stroke-dasharray: 5 5

    linkStyle default stroke-width:3px,stroke:#00E5FF

    classDef cfWorker fill:#E65100,color:#fff,stroke:#FFB300,stroke-width:2px,font-weight:bold
    classDef cfWorkerLight fill:#BF360C,color:#fff,stroke:#FFB300,stroke-width:1px
    classDef gpuNode fill:#064E3B,stroke:#34D399,color:#ECFDF5,stroke-width:2px
    classDef provider fill:#1E3A8A,stroke:#60A5FA,color:#EFF6FF,stroke-width:1px
Loading

๐Ÿ”ฎ Future Developments

We're exploring:

  • Digital Twins: Creating interactive AI-driven avatars
  • Music Video Generation: Combining AI-generated visuals with music
  • Real-time AI-driven Visual Experiences: Projects like our Dreamachine

๐ŸŒ Our Vision

We want AI tools to be:

  • Open & Accessible: Earn Pollen by contributing, without a credit card

  • Transparent & Ethical: Inspect our code and discuss how the platform works

  • Community-Driven: Build tools with other developers, creators, and AI enthusiasts

  • Interconnected: Combine models and services through shared APIs

  • Evolving: Add new capabilities while keeping the platform open and accessible

๐Ÿค Community and Development

You can contribute to pollinations.ai in several ways:

  1. Coding Assistant: Create a GitHub issue describing a feature for the Polli assistant to work on. You can propose a change without writing code.

  2. Project Submissions: Have you built something with pollinations.ai? Use our app submission template to share it with the community and get it featured in our README.

  3. Feature Requests & Bug Reports: Have an idea or found a bug? Open an issue and let us know. Our team and the Polli assistant will review it.

  4. Community Engagement: Join our Discord community to:

    • Share your creations
    • Get support and help others
    • Collaborate with fellow AI enthusiasts
    • Discuss feature ideas before creating issues

For any questions or support, please visit our Discord channel or create an issue on our GitHub repository.

๐Ÿ—‚๏ธ Project Structure

The main folders are:

  • pollinations.ai/: The main React application for the Pollinations.ai website.

  • gen.pollinations.ai/: Cloudflare Worker for API routing, auth handoff, text generation, and caching.

  • enter.pollinations.ai/: Auth gateway and billing: API keys, Pollen credits, and pack checkout.

  • shared/: Auth, model registries, IP queue, and utilities shared across the services.

  • apps/: Applications maintained in this repository.

  • operations/: Internal dashboards, monitoring, economics, and infrastructure, including the GPU fleet.

  • media.pollinations.ai/: Media upload service: upload files and get a URL to use with Pollinations models, with public tag galleries.

  • operations/news/: Automated social media pipeline (X, LinkedIn, Instagram, Reddit, Discord).

  • packages/polli-cli/: The Pollinations CLI for people and AI agents.

  • packages/sdk/: SDK NPM library with pollinations ready functions for Pollinations.ai.

  • packages/mcp/: Model Context Protocol (MCP) server for AI assistants like Claude to generate images directly.

  • opencode-pollinations-plugin: A community plugin that connects OpenCode to Pollinations models, built by @fkom13.

For development setup and environment management, see DEVELOP.md.

๐Ÿข Supported By

pollinations.ai is supported by:

Pixel art garden shelf: supporter plants in labeled pots, robot watering, bee with watering can

๐Ÿ’š Support Us

The best way to support pollinations.ai is by using our product! Get your API key and start building at enter.pollinations.ai.

๐Ÿ“ฃ Stay Connected

Status ยท News & FAQ ยท ๐• Twitter ยท Instagram ยท LinkedIn ยท Facebook ยท Reddit ยท YouTube

๐Ÿ“œ License

pollinations.ai is open-source software licensed under the MIT license.


Made with โค๏ธ by the pollinations.ai team

About

Your Friendly Open-Source Gen-AI Platform

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages