Generate detailed images from text prompts using Pollinations.ai models with optional configuration, model selection, and advanced settings.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install pollinations-image或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install pollinations-image⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/pollinations-image/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
A clean, modular, and user-friendly image generation tool powered by Pollinations.ai.
# 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"
# 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"
| Model | Type | Speed | Quality | Cost | |-------|------|-------|---------|------| | flux | 🎁 Free | ⚡⚡ | ⭐⭐⭐⭐⭐ | ~0.0002 pollen/img | | zimage | 🎁 Free | ⚡ | ⭐⭐⭐⭐ | ~0.0002 pollen/img | | klein | 💰 Paid | ⚡⚡ | ⭐⭐⭐⭐⭐ | ~0.008 pollen/img | | klein-large | 💰 Paid | ⚡⚡⚡ | ⭐⭐⭐⭐⭐⭐ | ~0.012 pollen/img | | gptimage | 💰 Paid | ⚡⚡ | ⭐⭐⭐⭐⭐ | 2.0-8.0 pollen/M |
generate (or g)Generate 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:
--prompt, -p - Image description (required)--model, -m - Model to use (overrides default)--width, -w - Image width (default: 1024)--height, -h - Image height (default: 1024)--seed, -s - Random seed for reproducibility--filename, -f - Custom output filename--nologo - Remove Pollinations watermark--enhance - Let AI improve your promptmodels (or m)Display all available models with ratings.
./generate.sh models
model MODEL_NAMEShow detailed information about a specific model.
./generate.sh model klein-large
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.
configDisplay your current configuration.
./generate.sh config
helpShow help message.
./generate.sh help
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
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
# 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
# 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
.env: POLLINATIONS_API_KEY=your_keyThis skill is designed to be shared!
When sharing the skill, include:
generate.sh — Main scriptlib/models.sh — Model registry.env.example — Example API key file.user.conf.example — Example user configSKILL.md — DocumentationDo NOT share these (they contain personal data):
.env — Your private API key.user.conf — Your personal preferences.first-run-complete — Setup markerlib/models.shMODELS_LIST following the format:``` model_id|Display Name|type|cost|speed|quality|Description ```
./generate.sh model your_model_idWhen 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:
flux (free, high quality)MIT - Feel free to use, modify, and share!
---
Made with 🫐 for the OpenClaw community.
安装 Pollinations Image Generator 后,可以对 AI 说这些话来触发它
Help me get started with Pollinations Image Generator
Explains what Pollinations Image Generator does, walks through the setup, and runs a quick demo based on your current project
Use Pollinations Image Generator to generate detailed images from text prompts using Pollinations
Invokes Pollinations Image Generator with the right parameters and returns the result directly in the conversation
What can I do with Pollinations Image Generator in my marketing & growth workflow?
Lists the top use cases for Pollinations Image Generator, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/pollinations-image/ 目录(个人级,所有项目可用),或 .claude/skills/pollinations-image/(项目级)。重启 AI 客户端后,用 /pollinations-image 主动调用,或让 AI 根据上下文自动发现并使用。
Pollinations Image Generator 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Pollinations Image Generator 可免费安装使用。请查阅仓库了解许可证信息。
Generate detailed images from text prompts using Pollinations.ai models with optional configuration, model selection, and advanced settings.
Pollinations Image Generator 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Pollinations Image Generator
Identifies repetitive steps in your workflow and sets up Pollinations Image Generator to handle them automatically