ComfyUI integration for Pollinations API - Generate images and text based on user prompts
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.
$$\textcolor{red}{\Huge \text{If this custom node helps you or you like Our work, please give me ⭐ on this repo!}}$$
$$\textcolor{red}{\Huge \text{It's a great encouragement for my efforts!}}$$
i18n
) support for multiple languages.
(This the
i18n
Demo with Chinese
UI)
Support Model List
| Image Generation Models | |-------------------------------| | 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 |
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.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.To install Pollinations, you can clone the repository and add it to your ComfyUI custom nodes directory. Ensure you have the required dependencies installed.
ComfyUI-Pollinations
and installinstall requirment.txt in the ComfyUI-Pollinations
./ComfyUI/python_embeded/python -m pip install -r requirements.txt
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
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.
Generate 4 images simultaneously
We welcome contributions to Pollinations! Please fork the repository and submit a pull request for any changes or improvements.
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
Thanks to all contributors and users who have supported the development of ComfyUI-Pollinations.