git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/aprilox/pollinations-image" ~/.claude/skills/clawdbot-skills-pollinations-image && rm -rf "$T"
skills/aprilox/pollinations-image/SKILL.md๐จ Pollinations Image Generation Skill
A clean, modular, and user-friendly image generation tool powered by Pollinations.ai.
โจ Features
- ๐ 5,000 free images/month with pollen grants
- ๐ Easy model switching - change anytime
- ๐พ Persistent defaults - remember your preferences
- ๐ Clear model comparison - quality, speed, cost
- ๐ง Modular design - easy to extend
๐ Quick Start
First Time Setup
# 1. Clone or copy the skill cd pollinations-image/ # 2. (Optional) Configure your API key cp .env.example .env # Edit .env and add your key from https://enter.pollinations.ai # 3. (Optional) Set your default model cp .user.conf.example .user.conf # Edit .user.conf to change DEFAULT_IMAGE_MODEL # 4. List all available models ./generate.sh models # 5. Generate your first image ./generate.sh "a cute purple cat"
Already Configured?
# List all available models ./generate.sh models # Set your default model (optional) ./generate.sh set-model flux # Generate an image ./generate.sh generate --prompt "a cute purple cat" # Or use the shortcut ./generate.sh "a cute purple cat"
๐ Available Models
| Model | Type | Speed | Quality | Cost |
|---|---|---|---|---|
| ๐ Free | โกโก | โญโญโญโญโญ | ~0.0002 pollen/img |
| ๐ Free | โก | โญโญโญโญ | ~0.0002 pollen/img |
| ๐ฐ Paid | โกโก | โญโญโญโญโญ | ~0.008 pollen/img |
| ๐ฐ Paid | โกโกโก | โญโญโญโญโญโญ | ~0.012 pollen/img |
| ๐ฐ Paid | โกโก | โญโญโญโญโญ | 2.0-8.0 pollen/M |
๐ Commands
generate
(or g
)
generategGenerate an image with your prompt.
# Full command ./generate.sh generate --prompt "a sunset over mountains" --model flux --width 1024 --height 1024 # Short options ./generate.sh g -p "a sunset" -m zimage -w 512 -h 512 # Even shorter (prompt only) ./generate.sh "a cute cat"
Options:
- Image description (required)--prompt, -p
- Model to use (overrides default)--model, -m
- Image width (default: 1024)--width, -w
- Image height (default: 1024)--height, -h
- Random seed for reproducibility--seed, -s
- Custom output filename--filename, -f
- Remove Pollinations watermark--nologo
- Let AI improve your prompt--enhance
models
(or m
)
modelsmDisplay all available models with ratings.
./generate.sh models
model MODEL_NAME
model MODEL_NAMEShow detailed information about a specific model.
./generate.sh model klein-large
set-model MODEL_NAME
set-model MODEL_NAMESet your default model for all future generations.
./generate.sh set-model zimage
Note: This saves to
.user.conf and persists across sessions.
config
configDisplay your current configuration.
./generate.sh config
help
helpShow help message.
./generate.sh help
โ๏ธ Configuration
User preferences are stored in
.user.conf:
# Example .user.conf DEFAULT_IMAGE_MODEL=flux
API keys are stored in
.env (not tracked in git):
# Example .env POLLINATIONS_API_KEY=your_key_here
๐ Structure
pollinations-image/ โโโ generate.sh # Main entry point โโโ lib/ โ โโโ models.sh # Model registry and metadata โโโ .env # API keys (private) โโโ .user.conf # User preferences โโโ SKILL.md # This documentation
๐ฏ Recommended Workflows
Draft โ Refine โ Final
# 1. Quick draft with fast model ./generate.sh g -p "concept sketch of a dragon" -m zimage -w 512 # 2. Refine with better model ./generate.sh g -p "detailed dragon in a castle" -m flux -w 1024 # 3. Final high-quality render ./generate.sh g -p "masterpiece, highly detailed dragon..." -m klein-large
Daily Driver Setup
# Set fast model for daily use ./generate.sh set-model zimage # All future generations use zimage by default ./generate.sh "quick concept" # Override for special occasion ./generate.sh "important artwork" --model klein-large
๐ Getting an API Key
- Visit enter.pollinations.ai
- Create an account
- Request a pollen grant (free tier: 5K images/month)
- Generate an API key
- Save it to
:.envPOLLINATIONS_API_KEY=your_key
๐ค Contributing & Sharing
This skill is designed to be shared!
Files to Include
When sharing the skill, include:
- โ
โ Main scriptgenerate.sh - โ
โ Model registrylib/models.sh - โ
โ Example API key file.env.example - โ
โ Example user config.user.conf.example - โ
โ DocumentationSKILL.md
Files to Exclude (Private)
Do NOT share these (they contain personal data):
- โ
โ Your private API key.env - โ
โ Your personal preferences.user.conf - โ
โ Setup marker.first-run-complete
Adding a New Model
- Edit
lib/models.sh - Add your model to
following the format:MODELS_LISTmodel_id|Display Name|type|cost|speed|quality|Description - Test with
./generate.sh model your_model_id
First-Time User Experience
When someone first runs the skill without config files, they'll see a welcome message guiding them through setup. The skill works out-of-the-box with sensible defaults:
- Default model:
(free, high quality)flux - API key: Optional (works with public endpoint)
๐ License
MIT - Feel free to use, modify, and share!
Made with ๐ซ for the OpenClaw community.