Package Information
Documentation
n8n-nodes-pollinations
This is an n8n community node that integrates Pollinations.ai - a free, open-source generative AI platform.
n8n is a fair-code licensed workflow automation platform.
Features
This node provides access to Pollinations.ai's powerful AI generation capabilities:
🖼️ Image Generation
- Multiple Models: Flux, Flux-Realism, Flux-Anime, Flux-3D, Turbo, and more
- Simple & Advanced Modes: Quick generation or full control over parameters
- Customization: Control dimensions, seed, watermark, enhancement, and privacy
- Output Options: Binary data or URL
💬 Text Generation
- Multiple LLMs: GPT-4, Claude, Gemini, DeepSeek, Mistral, and more
- Chat Completion: Full conversation history support
- Advanced Options: System messages, temperature, max tokens, JSON mode
- Simple Mode: Quick text generation from prompts
🎙️ Audio Generation
- Text-to-Speech: Convert text to natural-sounding audio
- Multiple Voices: Alloy, Echo, Fable, Onyx, Nova, Shimmer
- Binary Output: Direct audio file download
Installation
Community Nodes (Recommended)
- Go to Settings > Community Nodes in your n8n instance
- Click Install
- Enter
n8n-nodes-pollinations - Click Install
Manual Installation
Navigate to your n8n installation directory and run:
npm install n8n-nodes-pollinations
For Docker-based installations:
docker exec -it n8n npm install n8n-nodes-pollinations
Then restart your n8n instance.
Configuration
API Key (Optional)
While Pollinations.ai works without authentication, you can obtain a free API key for higher rate limits:
- Visit enter.pollinations.ai
- Sign in with GitHub
- Create an API key
- Add it to your n8n credentials:
- Go to Credentials > Add Credential
- Select Pollinations API
- Enter your API key
Note: Without an API key, you're limited to one request every 15 seconds. With an API key, you get much higher limits.
Usage Examples
Image Generation (Simple)
{
"resource": "image",
"operation": "generate",
"imageMode": "simple",
"prompt": "A futuristic city at sunset with flying cars",
"imageModel": "flux",
"outputFormat": "binary"
}
Image Generation (Advanced)
{
"resource": "image",
"operation": "generate",
"imageMode": "advanced",
"prompt": "A serene Japanese garden in spring",
"imageModel": "flux-realism",
"width": 1280,
"height": 720,
"seed": 42,
"nologo": true,
"enhance": true,
"private": false,
"outputFormat": "binary"
}
Text Generation (Simple)
{
"resource": "text",
"operation": "generate",
"textMode": "simple",
"textPrompt": "Explain quantum computing in simple terms",
"textModel": "openai"
}
Text Generation (Advanced)
{
"resource": "text",
"operation": "generate",
"textMode": "advanced",
"textPrompt": "Create a JSON object describing a fictional character",
"textModel": "claude",
"systemMessage": "You are a creative writer specializing in character development",
"temperature": 0.9,
"maxTokens": 2000,
"jsonMode": true
}
Chat Completion
{
"resource": "text",
"operation": "chat",
"textModel": "gemini",
"messages": {
"messageValues": [
{
"role": "system",
"content": "You are a helpful assistant"
},
{
"role": "user",
"content": "What's the weather like?"
},
{
"role": "assistant",
"content": "I don't have access to real-time weather data."
},
{
"role": "user",
"content": "Can you tell me a joke instead?"
}
]
}
}
Audio Generation
{
"resource": "audio",
"operation": "generate",
"audioText": "Welcome to n8n automation with Pollinations AI. This is a test of the text to speech feature.",
"voice": "nova"
}
Workflow Ideas
Social Media Automation
- Generate images for posts
- Create captions with AI
- Schedule posts automatically
Content Creation Pipeline
- Generate blog post ideas (text)
- Create featured images (image)
- Generate podcast intros (audio)
E-commerce Product Images
- Generate product variations
- Create lifestyle images
- Batch process product descriptions
Customer Support
- Auto-generate responses with chat completion
- Create help documentation with AI
- Generate visual guides
Data Enrichment
- Analyze text sentiment
- Generate summaries
- Extract structured data with JSON mode
Available Models
Image Models
flux- High-quality balanced generation (default)flux-realism- Photorealistic imagesflux-cablyai- Artistic styleflux-anime- Anime-style imagesflux-3d- 3D-style rendersturbo- Fast generation
Text Models
openai/openai-large/openai-fast- GPT-4 variantsclaude/claude-large/claude-fast- Anthropic Claudegemini/gemini-large/gemini-search- Google Geminideepseek- DeepSeek V3.2qwen-coder- Qwen3-Codermistral- Mistral AI
Audio Voices
alloy,echo,fable,onyx,nova,shimmer
Rate Limits
- Anonymous: 1 request per 15 seconds
- With API Key: Much higher limits (check enter.pollinations.ai)
Troubleshooting
"Authentication failed"
- Verify your API key is correct
- Check if the key is still valid at enter.pollinations.ai
"Rate limit exceeded"
- Add an API key for higher limits
- Implement wait/retry logic in your workflow
"Image generation failed"
- Check if your prompt contains inappropriate content
- Try a different model
- Verify image dimensions are within limits (256-2048px)
Resources
Development
# Install dependencies
npm install
# Build the node
npm run build
# Watch mode for development
npm run dev
# Lint
npm run lint
# Format code
npm run format
License
Author
Created by Rodrigue - GitHub
Support
If you find this node helpful, please:
- ⭐ Star the GitHub repository
- 🐛 Report bugs via GitHub Issues
- 💡 Suggest features or improvements
- 🌸 Support Pollinations.ai at pollinations.ai
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request