ComfyUI Extension: ComfyUI-Pollinations
ComfyUI integration for Pollinations API - Generate images and text based on user prompts
Custom Nodes (2)
README
ComfyUI-Pollinations
Introduction
ComfyUI-Pollinations is a custom node for ComfyUI that utilizes the Pollinations API to generate images and text based on user prompts. This library provides two main functionalities: image generation and text generation, allowing users to create visual and textual content easily.
Update
- V1.2.0 (2025-05-31): Add Text to Speech feature using Pollinations API ( update.md )
- V1.1.0 (2025-03-21): Integrated internationalization (
i18n
) support for multiple languages. ( update.md )
(This the
i18n
Demo with Chinese
UI)
##Support Model List
Image Generation Model
|-------------------------------| | flux | | turbo |
| Text Generation Models | Text Generation Models | Text Generation Models | Text Generation Models | |-------------------------------|-------------------------------|-------------------------------|-------------------------------| | openai | openai-large | openai-reasoning | qwen-coder | | llama | mistral | unity | midijourney | | rtist | searchgpt | evil | deepseek | | claude-hybridspace | deepseek-r1 | deepseek-reasoner | llamalight | | llamaguard | gemini | gemini-thinking | hormoz | | hypnosis-tracy | sur | sur-mistral | llama-scaleway |
Text Generation Models
| Name | Type | Censored | Description | Base Model | Vision | Reasoning | Provider | |------------------------|--------|----------|---------------------------------------------|------------|--------|-----------|-------------| | openai | chat | Yes | OpenAI GPT-4o-mini | Yes | Yes | No | | | openai-large | chat | Yes | OpenAI GPT-4o | Yes | Yes | No | | | openai-reasoning | chat | Yes | OpenAI o1-mini | Yes | No | Yes | | | qwen-coder | chat | Yes | Qwen 2.5 Coder 32B | Yes | No | No | | | llama | chat | No | Llama 3.3 70B | Yes | No | No | | | mistral | chat | No | Mistral Nemo | Yes | No | No | | | unity | chat | No | Unity with Mistral Large by Unity AI Lab | No | No | No | | | midijourney | chat | Yes | Midijourney musical transformer | No | No | No | | | rtist | chat | Yes | Rtist image generator by @bqrio | No | No | No | | | searchgpt | chat | Yes | SearchGPT with realtime news and web search | No | No | No | | | evil | chat | No | Evil Mode - Experimental | No | No | No | | | deepseek | chat | Yes | DeepSeek-V3 | Yes | No | No | | | claude-hybridspace | chat | Yes | Claude Hybridspace | Yes | No | No | | | deepseek-r1 | chat | Yes | DeepSeek-R1 Distill Qwen 32B | Yes | No | Yes | cloudflare | | deepseek-reasoner | chat | Yes | DeepSeek R1 - Full | Yes | No | Yes | deepseek | | llamalight | chat | No | Llama 3.1 8B Instruct | Yes | No | No | | | llamaguard | safety | No | Llamaguard 7B AWQ | No | No | No | cloudflare | | gemini | chat | Yes | Gemini 2.0 Flash | Yes | No | No | google | | gemini-thinking | chat | Yes | Gemini 2.0 Flash Thinking | Yes | No | No | google | | hormoz | chat | No | Hormoz 8b by Muhammadreza Haghiri | No | No | No | modal.com | | hypnosis-tracy | chat | No | Hypnosis Tracy - Your Self-Help AI | No | No | No | modal.com | | sur | chat | Yes | Sur AI Assistant | No | No | No | | | sur-mistral | chat | Yes | Sur AI Assistant (Mistral) | No | No | No | | | llama-scaleway | chat | No | Llama (Scaleway) | Yes | No | No | |
1. PollinationsImageGen
- Function: Generates images based on a textual prompt.
- Input Parameters:
prompt
: Description of the image to generate.model
: The model to use for image generation (e.g., "flux").width
: Width of the generated image.height
: Height of the generated image.batch_size
: Number of images to generate.negative_prompt
: Optional prompt to specify what to avoid in the image.seed
: Random seed for generation.enhance
: Whether to enhance the image.nologo
: Whether to include a logo.private
: Whether the generation is private.safe
: Whether to apply safety filters.
2. PollinationsTextGen
- Function: Generates text based on a textual prompt.
- Input Parameters:
prompt
: The text prompt for generation.model
: The model to use for text generation (e.g., "openai").seed
: Random seed for generation.private
: Whether the generation is private.
3. PollinationsTextToSpeech
- Function: Converts text to speech audio using OpenAI's audio models through Pollinations API.
- Input Parameters:
text
: The text to convert to speech.voice
: The voice to use for speech generation (e.g., "nova", "alloy", "echo", "fable", "onyx", "shimmer").seed
: Random seed for generation.private
: Whether the generation is private.
- Output:
audio
: Audio file path that can be used with audio playback nodes.
Image Feed and Text Feed Model
Image Feed Model
Image Feed Model
The Image Feed Model is designed to retrieve and generate images based on user-defined parameters. It allows users to specify the number of images to fetch, the model to use for generation, and optional filters such as prompts and refresh settings. This model is particularly useful for applications that require dynamic image generation based on varying inputs.
Text Feed Model
The Text Feed Model is focused on generating text responses based on user prompts. It supports various text generation models and allows users to specify the number of responses to retrieve, along with optional filters for model selection and prompt matching. This model is ideal for applications that need to generate conversational or informative text based on user queries.
Installation
To install Pollinations, you can clone the repository and add it to your ComfyUI custom nodes directory. Ensure you have the required dependencies installed.
Method 1. install on ComfyUI-Manager, search ComfyUI-Pollinations
and install
install requirment.txt in the ComfyUI-Pollinations
./ComfyUI/python_embeded/python -m pip install -r requirements.txt
Method 2. Clone this repository to your ComfyUI custom_nodes folder:
cd ComfyUI/custom_nodes
git clone https://github.com/1038lab/ComfyUI-Pollinations.git
install requirment.txt in the ComfyUI-Pollinations folder
/ComfyUI/python_embeded/python -m pip install -r requirements.txt
Usage
After installation, you can use the nodes in your ComfyUI workflow. Simply drag and drop the PollinationsImageGen
or PollinationsTextGen
nodes into your canvas and configure the input parameters as needed.
PollinationsImageGen Node
Generate 4 images simultaneously
PollinationsTextGen Node
Contributing
We welcome contributions to Pollinations! Please fork the repository and submit a pull request for any changes or improvements.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Thanks to all contributors and users who have supported the development of ComfyUI-Pollinations.
If this custom node helps you or you like Our work, please give me ⭐ on this repo!
It's a great encouragement for my efforts!