Skip to content

pollinations/pollinations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Your Engine for Personalized Synthetic Media

Pollinations.AI Logo

🌟 Introduction

Pollinations.AI is the most easy-to-use, free image generation API available. No signups or API keys required. Embed like any normal image.

🚀 Key Features

  • 🔓 100% Open Source
  • 🆓 Free to use
  • 🔑 No signup or API keys
  • 🖼️ Embed like any normal image or text
  • 🌍 Over 50,000 active users and > 8 million images generated per month
  • 🤝 Used by various open-source LLMs, bots, and communities
  • 🎣 Easy-to-use React hooks (React Hooks Examples)

🚀 Getting Started

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

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?

🛠️ 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
    
    L1[Image CDN] --> B
    L2[Text CDN] --> C
    
    B[image.pollinations.ai - AWS EC2 CPU] --> F[groqCloud - Prompt Enhancing]
    B --> S[Safety Checker]
    B --> M[llmplayground.net - Custom FLUX models]
    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 --> G[Azure-hosted Serverless LLMs]
    G  --> H[OpenAI]
    G --> I[Mistral]
    G --> J[Llama]
    G --> K[Claude]

Loading

���� Projects Using Pollinations.AI

Pollinations.AI is used in various projects, including:

LLM Integrations

  1. SillyTavern: An LLM frontend for power users. Pollinations permits it to generate images. GitHub Repo
  2. Qwen-Agent: A framework for developing agentic LLM applications.
  3. LobeChat: An open-source, modern-design ChatGPT/LLMs UI/Framework. Supports speech-synthesis, multi-modal, and extensible (function call) plugin system. GitHub Repo
  4. DynaSpark AI: A versatile AI assistant with advanced image and text generation capabilities, integrating Pollinations.ai for image generation. Created by Th3-C0der.
  5. FlowGPT: Generate images on-demand with ChatGPT.

Social Bots

  1. Discord Bot: A Discord bot that uses Pollinations.ai for generating images based on user prompts. Created by @Zngzy. GitHub Repo
  2. WhatsApp Group: A WhatsApp group that allows you to generate images using Pollinations.ai. Created by @dg_karma.
  3. Telegram Bot: A Telegram bot that uses Pollinations.ai for generating images based on user prompts. Created by Wong Wei Hao.
  4. Anyai: A Discord bot and community that leverages Pollinations.ai for generating AI-driven content. Created by @meow_18838.
  5. OpenHive: A Discord server that bridges the gap between Discord and AI. With Beebot, access dozens of ChatGPT prompts and generate images using Pollinations.ai! Created by @creativegpt.

Mobile & Web Applications

  1. Pollinator Android App: An open-source Android app for text-to-image generation using Pollinations.ai's endpoint. Created by @gaurav_87680.
  2. Own-AI: An AI text-to-image generator powered by Pollinations.ai. Users can describe the images they want, generate them, and share them. Created by Sujal Goswami. GitHub Repo
  3. Infinite Tales: A Choose Your Own Adventure RPG, dynamically narrated by AI. Customize your adventure, build your hero, and explore vast lands. Each journey is uniquely generated by AI. Created by JayJayBinks. GitHub Repo
  4. POLLIPAPER: A dynamic wallpaper app that uses Pollinations AI to create unique desktop backgrounds. It offers weather-based prompts and customizable settings. Created by @intolerant0ne. GitHub Repo
  5. StorySight: An app to help children with learning disabilities by visualizing abstract concepts. Made using Django and Pollinations.ai. Submitted to: Devpost
  6. StoryWeaver: StoryWeaver crafts personalized picture books for children based on themes and prompts you choose, bringing your unique story ideas to life with AI! Created by Advaith Narayanan, Omeed Sabouri, Yufan Wang. GitHub Repo
  7. Websim: A web simulation tool that integrates Pollinations.ai for generating AI-driven content. Remix the app with your own prompts. Created by @thomash_pollinations.
  8. MIDIjourney: An AI-powered plugin for Ableton Live that turns text descriptions into music. Created by KORUS Labs. GitHub Repo

Tutorials

  1. Tutorial: An in-depth Portuguese tutorial on using Pollinations AI. Created by Janderson de Sales.

Have you created a project using Pollinations.AI? Email us at hello@pollinations.ai to get it listed here!

🔮 Future Developments

We're constantly exploring new ways to push the boundaries of AI-driven content creation. Some areas we're excited about include:

  • Digital Twins: Creating interactive AI-driven avatars
  • Music Video Generation: Combining AI-generated visuals with music for unique video experiences
  • Real-time AI-driven Visual Experiences: Projects like our Dreamachine, which create immersive, personalized visual journeys

🌍 Our Vision

Pollinations.AI aims to bridge technological innovation with global creativity. Our international team combines precision engineering with artistic flair to create a platform that serves creators worldwide.

🤝 Community and Support

Join our vibrant community of over 12,000 Discord members to share your creations, get support, and collaborate with fellow AI enthusiasts.

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

🗂️ Project Structure

Our codebase is organized into several key folders, each serving a specific purpose in the Pollinations.AI ecosystem:

This structure encompasses the frontend website, backend services for image and text generation, and integrations like the Discord bot, providing a comprehensive framework for the Pollinations.AI platform.

🏢 Supported By

Pollinations.AI is proud to be supported by:

Supported Companies

📜 License

Pollinations.AI is open-source software licensed under the MIT license.


Made with ❤️ by the Pollinations.AI team