Skip to content
Β 
Β 

Latest commit

Β 

History

5,638 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ†• Latest News

  • πŸ” Auth Dashboard - New authentication dashboard is now live! Visit auth.pollinations.ai to manage your API tokens and referrer domains for priority access. Learn more.
  • πŸ” Special Bee - New "Special Bee" issue template! Projects can now request referrer verification by submitting a Domain Verification RequestMore info
  • πŸ“š API Documentation - Major API documentation improvements! We've completely revamped our API docs with better examples, clearer explanations, and interactive code snippets. Check it out.
  • πŸ€– MCP Server - New Model Context Protocol (MCP) server for AI assistants like Claude to generate images directly! Learn more.
    MCP Server Interface
  • πŸ’² Support Us - You can now support us with our new Tip Us button. Optionally connect your Discord account to Ko-Fi to get premium Discord roles!
  • 🎡 Audio Generation - New text-to-speech and speech-to-text capabilities are now available! Try the openai-audio model - see our API documentation for details.
  • πŸ€– AI Code Assistant - We're excited to announce MentatBot, the autonomous AI coding assistant that implements new features directly from GitHub issues! Simply create an issue describing what you'd like to see, and MentatBot will analyze and implement it. Learn more.
  • πŸ–ΌοΈ GPT Image - Introducing our new state-of-the-art text-to-image model, GPT Image, which generates high-resolution, contextually accurate visuals from any prompt. Learn more about OpenAI's latest image generation model here.

Pollinations.AI Logo

🌟 Introduction

Pollinations.AI is an open-source gen AI startup based in Berlin, providing the most easy-to-use, free text and image generation API available. No signups or API keys required. We prioritize your privacy with zero data storage and completely anonymous usage.

πŸš€ Key Features

  • πŸ”“ 100% Open Source
  • πŸ†“ Free to use
  • πŸ”’ Simplicity and privacy: No logins, no keys, no data stored
  • πŸ–ΌοΈ Embed like any normal image or text
  • 🎡 Audio generation: Text-to-speech and speech-to-text capabilities
  • 🌍 Free AI image and text generation APIs
  • 🀝 Used by various open-source LLMs, bots, and communities
  • 🎣 Easy-to-use React hooks (React Hooks Examples)
  • πŸ€– Autonomous Development: Features implemented by our MentatBot coding assistant through GitHub issues
Star History Chart

πŸš€ Getting Started

Featured Projects

Project Description Creator Links
πŸ†• KoboldAI A browser-based front-end for AI-assisted writing with multiple local & remote AI models, including integration with Pollinations.AI for image generation @lostruins Website, GitHub - ⭐ 3.7k

Image Generation

  1. Visit https://pollinations.ai
  2. Type your description in the text box
  3. Click "Generate" and watch the magic happen!

Text Generation

  1. Visit https://text.pollinations.ai
  2. Start chatting with the AI

Audio Generation

  1. Use the openai-audio model with our API (explore voices at OpenAI.fm)
  2. Generate speech from text or transcribe audio to text

MCP Server for AI Assistants

Our MCP (Model Context Protocol) server enables AI assistants like Claude to generate images and audio directly. Learn more

# Run with npx (no installation required)
npx @pollinations/model-context-protocol

Community alternatives like MCPollinations are also available.

AI assistants can:

  • Generate images from text descriptions
  • Create text-to-speech audio with various voice options
  • Play audio responses through the system speakers
  • Access all Pollinations.AI models and services
  • List available models, voices, and capabilities

For more advanced usage, check out our API documentation.

πŸ–₯️ How to Use

Web Interface

Our web interface is user-friendly and doesn't require any technical knowledge. Simply visit https://pollinations.ai and start creating!

API

Use our API directly in your browser or applications:

https://pollinations.ai/p/conceptual_isometric_world_of_pollinations_ai_surreal_hyperrealistic_digital_garden

Replace the description with your own, and you'll get a unique image based on your words!

🎨 Examples

Image Generation

Here's an example of a generated image:

Conceptual Isometric World

Python code to download the generated image:

import requests

def download_image(prompt):
    url = f"https://pollinations.ai/p/{prompt}"
    response = requests.get(url)
    with open('generated_image.jpg', 'wb') as file:
        file.write(response.content)
    print('Image downloaded!')

download_image("conceptual_isometric_world_of_pollinations_ai_surreal_hyperrealistic_digital_garden")

Text Generation

To generate text, use this URL:

https://text.pollinations.ai/What%20is%20artificial%20intelligence?

Audio Generation

To generate audio from text, use this URL:

https://text.pollinations.ai/Welcome%20to%20Pollinations?model=openai-audio&voice=nova

πŸ› οΈ Integration

React Hooks

We offer React hooks for easy integration. Example usage:

import React from 'react';
import { usePollinationsImage, usePollinationsText } from '@pollinations/react';
import ReactMarkdown from 'react-markdown';

const AIGeneratedContent = () => {
  const imageUrl = usePollinationsImage("Beautiful landscape of Paris with Eiffel Tower", { width: 800, height: 600, seed: 42 });
  const markdown = usePollinationsText("Write a brief travel guide for Paris, including top attractions and local cuisine in markdown", { seed: 42 });

  return (
    <div>
      <h2>AI-Generated Travel Guide</h2>
      <img src={imageUrl} alt="AI Generated" />
      {markdown ? (
        <ReactMarkdown>{markdown}</ReactMarkdown>
      ) : (
        <p>Loading markdown content...</p>
      )}
    </div>
  );
};

export default AIGeneratedContent;

Check out our Pollinations React Hooks for more details.

Architecture

graph LR
    Q[Bots - Discord, Telegram, WhatsApp] --> L1
    
    N[30+ Mobile and Web Apps] --> L1
    N --> L2
    
    A[pollinations.ai Web Frontend] --> L1
    A --> L2
    
    R[AI Agents - Qwen, Sillytavern, ...] --> L1
    
    AI[AI Assistants - Claude] --> MCP[MCP Server]
    MCP --> L1
    
    L1[Image CDN] --> CF[Cloudflare Worker with R2 Cache]
    L2[Text CDN] --> C
    
    CF --> B
    
    B[image-origin.pollinations.ai - AWS EC2 CPU] --> F[Azure OpenAI - Prompt Enhancing]
    B --> S[LlamaGuard - Safety Checker]
    F --> E[Translation Service - 1 GPU VM]
    E --> D[FLUX image generation model - 2-6 GPU VMs on AWS]
    
    C[text.pollinations.ai - AWS EC2 CPU] --> P[karma.yt - Realtime News]
    C --> SC[Scaleway API]
    C --> DS[Deepseek API]
    C --> G[Azure-hosted Serverless LLMs]
    C --> CFM[Cloudflare AI]
    SC --> MI[Mistral Models]
    SC --> QW[Qwen Models]
    SC --> LL[Llama Models]
    DS --> DM[Deepseek Models]
    G --> H[OpenAI]
    G --> K[Claude]
    CFM --> CFL[Llama & Deepseek Models]
Loading

About

Free Open-Source Image and Text Generation

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages