← 返回
内容创作 中文

Pollinations Image Generator

Generate detailed images from text prompts using Pollinations.ai models with optional configuration, model selection, and advanced settings.
使用 Pollinations.ai 模型根据文本提示生成详细图像,支持可选配置、模型选择及高级设置。
aprilox
内容创作 clawhub v1.0.0 1 版本 99929 Key: 无需
★ 0
Stars
📥 1,407
下载
💾 58
安装
1
版本
#latest

概述

🎨 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

ModelTypeSpeedQualityCost
-----------------------------------
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

📖 Commands

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 prompt

models (or m)

Display all available models with ratings.

./generate.sh models

model MODEL_NAME

Show detailed information about a specific model.

./generate.sh model klein-large

set-model MODEL_NAME

Set your default model for all future generations.

./generate.sh set-model zimage

Note: This saves to .user.conf and persists across sessions.

config

Display your current configuration.

./generate.sh config

help

Show 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

  1. Visit enter.pollinations.ai
  2. Create an account
  3. Request a pollen grant (free tier: 5K images/month)
  4. Generate an API key
  5. Save it to .env: POLLINATIONS_API_KEY=your_key

🤝 Contributing & Sharing

This skill is designed to be shared!

Files to Include

When sharing the skill, include:

  • generate.sh — Main script
  • lib/models.sh — Model registry
  • .env.example — Example API key file
  • .user.conf.example — Example user config
  • SKILL.md — Documentation

Files to Exclude (Private)

Do NOT share these (they contain personal data):

  • .env — Your private API key
  • .user.conf — Your personal preferences
  • .first-run-complete — Setup marker

Adding a New Model

  1. Edit lib/models.sh
  2. Add your model to MODELS_LIST following the format:

```

model_id|Display Name|type|cost|speed|quality|Description

```

  1. 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: flux (free, high quality)
  • API key: Optional (works with public endpoint)
  • 📝 License

MIT - Feel free to use, modify, and share!


Made with 🫐 for the OpenClaw community.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 03:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 861 📥 200,186
developer-tools

Philips Hue

aprilox
通过 API v1 本地控制 Philips Hue 灯光。
★ 0 📥 1,144
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,246