Skip to content

pollinations/pollinations

Repository files navigation

Your Engine for Personalized Synthetic Media

Pollinations.AI Logo

🌟 Introduction

Pollinations.AI is the most easy-to-use, free text and image generation API available. No signups or API keys required.

🚀 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)
Star History Chart

🚀 Getting Started

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

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. TurboReel: An open-source video generation system using AI to create engaging content from scripts. Created by @pedroriosa. GitHub Repo
  2. SillyTavern: An LLM frontend for power users. Pollinations permits it to generate images. GitHub Repo
  3. Qwen-Agent: A framework for developing agentic LLM applications.
  4. LobeChat: An open-source, modern-design ChatGPT/LLMs UI/Framework. Supports speech-synthesis, multi-modal, and extensible (function call) plugin system. GitHub Repo
  5. Unity AI Lab: A specialized uncensored LLM model built on Mistral Large, focused on unrestricted conversations.
  6. DynaSpark AI: A versatile AI assistant with advanced image and text generation capabilities, integrating Pollinations.ai for image generation. Created by Th3-C0der.
  7. FlowGPT: Generate images on-demand with ChatGPT.
  8. Sirius Cybernetics Elevator Challenge: A Hitchhiker's Guide to the Galaxy themed LLM-based elevator game. Created by @thomash_pollinations. GitHub Repo

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. Free AI Chatbot & Image Generator: A mobile app offering unlimited AI chat and image generation powered by GPT-4 and Flux. Created by @andreas_11.
  2. Pollinator Android App: An open-source Android app for text-to-image generation using Pollinations.ai's endpoint. Created by @gaurav_87680.
  3. Rangrez AI: A web platform focused on inspiring, creating, and customizing designs with AI-powered tools, powered by Pollinations and GroqCloud. Created by @saadaryf.
  4. MIDIjourney: An AI-powered plugin for Ableton Live that turns text descriptions into music. Created by KORUS Labs. GitHub Repo
  5. TurboReel: An open-source video generation system using AI to create engaging content from scripts. Created by @pedroriosa. GitHub Repo
  6. 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
  7. 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
  8. 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
  9. StorySight: An app to help children with learning disabilities by visualizing abstract concepts. Made using Django and Pollinations.ai. Submitted to: Devpost
  10. 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
  11. 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.
  12. JCode Website Builder: A website generator using Pollinations text API. Created by @rtxpower.
  13. JustBuildThings: A collection of AI tools for image generation, character chat, and writing powered by Pollinations. Created by rasit.

Tutorials

  1. Tutorial: An in-depth Portuguese tutorial on using Pollinations AI. Created by Janderson de Sales.
  2. Apple Shortcuts Guide: A step-by-step video guide on creating AI images using Apple Shortcuts and Pollinations. Created by RoutineHub. Shortcut

Have you created a project using Pollinations.AI? Email us at [email protected] 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 envisions a future where AI technology is:

  • Open & Accessible: We believe AI should be available to everyone, not locked behind paywalls or restricted access

  • Transparent & Ethical: Our open-source approach ensures transparency in how our models work and behave

  • Community-Driven: We're building a platform where developers, creators, and AI enthusiasts can collaborate and innovate

  • Interconnected: We're creating an ecosystem where AI services can seamlessly work together, fostering innovation through composability

  • Evolving: We embrace the rapid evolution of AI technology while maintaining our commitment to openness and accessibility

We're committed to developing AI technology that serves humanity while respecting ethical boundaries and promoting responsible innovation. Join us in shaping the future of AI.

🤝 Community and Support

Join our vibrant community on Discord 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.


Stargazers repo roster for @pollinations/pollinations


Made with ❤️ by the Pollinations.AI team