360 Secure SkillHub
360 安全技能中心

pollinations-image

通过 Python 脚本调用 Pollinations.ai 的文本生成图像服务,支持设置宽高、随机种子和去水印,无需 API Key 或注册;生成结果保存到 OpenClaw 媒体目录并打印文件路径。

分类:创作
andrewkuster-bit
andrewkuster-bit
热度 11.41
最近更新 2026-10-08 12:55:57

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add andrewkuster-bit/pollinations-image
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
必须出网
Metadata
name
pollinations-image
description
Free AI image generation via Pollinations.ai. No API key required. Use when the user asks to generate an image from text.
metadata
{"openclaw":{"emoji":"🎨","requires":{"bins":["curl"]}}}

Pollinations Image Generation

Free text-to-image generation via Pollinations.ai. No API key, no signup.

Usage

python3 scripts/pollinations-image.py "a sunset over mountains" --width 1024 --height 768

Parameters

Parameter Default Description
prompt (required) Text description of the image
--width 1024 Image width (max 2048)
--height 1024 Image height (max 2048)
--nologo true Remove Pollinations watermark
--seed random Fixed seed for reproducibility

Output

Saves to ~/.openclaw/media/pollinations-image/ and prints the file path.

Example

python3 scripts/pollinations-image.py "a cyberpunk city at night with neon lights" --width 1024 --height 576

Output: /home/user/.openclaw/media/pollinations-image/img_1234567890.jpg

MEDIA:/home/user/.openclaw/media/pollinations-image/img_1234567890.jpg