技能 pollinations-ai
📦

pollinations-ai

低风险

通过 Pollinations API 生成免费 AI 图像

需要图像但想避免付费 API?此技能可通过 Pollinations.ai 的免费、开放 API 生成图像,无需注册。

支持: Claude Codex Code(CC)
⚠️ 66
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“pollinations-ai”。 Generate a hero image for a tech startup website

预期结果:

A 1920x1080 hero image with modern gradient background in blue and purple tones, abstract geometric shapes, space for text on left side. Professional, clean aesthetic suitable for SaaS landing page.

正在使用“pollinations-ai”。 Create a LinkedIn banner with brand colors

预期结果:

1584x396 LinkedIn banner using brand colors #2563EB and #8B5CF6, abstract design with geometric shapes, text-safe zone on left for name/headline placement.

正在使用“pollinations-ai”。 Generate 4 product thumbnail variations

预期结果:

Four 1024x1024 square thumbnails showing futuristic dashboard UI concepts with dark theme and subtle glow effects. Each uses different seed value for subtle style variations.

安全审计

低风险
v1 • 3/11/2026

Security audit confirms this is a legitimate image generation skill. Static findings are false positives: backticks are markdown code delimiters (not Ruby execution), network calls target the official Pollinations.ai API (not malicious endpoints), file writes save generated images (expected behavior), and path traversal references are markdown links in documentation. No actual security risks identified.

2
已扫描文件
437
分析行数
5
发现项
1
审计总数
中风险问题 (1)
Documentation References Misidentified as Path Traversal
Scanner detected '..' sequences in markdown links at lines 397-399. These are documentation cross-references to related skills, not code vulnerabilities.
低风险问题 (4)
Code Block Delimiters Flagged as Command Execution
Scanner detected 59 instances of backticks as 'Ruby/shell backtick execution'. These are markdown code block fences (```), not actual code execution.
API Endpoints Flagged as Hardcoded URLs
Scanner flagged Pollinations.ai API URLs as 'Hardcoded URL'. These are the legitimate service endpoints required for the skill's core functionality.
HTTP Library Usage Flagged
Scanner flagged 'requests.get()' as network access. This is the legitimate method to call the Pollinations.ai API.
File Write Operations Flagged
Scanner flagged file write operations at lines 115 and 173. These save generated images to disk - core functionality of the skill.
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
31
社区
77
安全
83
规范符合性

你能构建什么

快速原型设计

为网站模型、应用设计或演示文稿即时生成占位图像,无需等待设计资源。

营销内容创作

创建主图、社交媒体横幅和促销图形,无需付费订阅或图库许可证。

创意探索

快速测试不同的视觉风格、配色方案和构图,找到正确的方向后再确定最终设计。

试试这些提示

基础图像请求
Generate an image of [describe your subject] using the Pollinations.ai skill. Save it as [filename.jpg].
样式化图像生成
Create a [style] image of [subject] with [lighting] lighting and [mood] mood. Use dimensions [width]x[height]. Save as [filename].
批量变体生成
Generate 4 variations of [describe the image concept] using seeds [100, 200, 300, 400]. Use the flux model at 1920x1080. Save each as variant_[seed].jpg.
品牌一致性生成
Create an image with brand colors [color 1] and [color 2]. Style: [modern/minimal/professional]. Dimensions: [width]x[height] for [platform]. Include [any specific elements]. Save with metadata to generation_log.json.

最佳实践

  • 使用具体、详细的提示词,包含样式、光照、氛围和质量修饰符,以获得最佳效果
  • 尽早设置尺寸以匹配目标平台要求,避免不想要的裁剪
  • 使用种子值来复现成功的图像并迭代变体

避免

  • 使用模糊的提示词如"让它看起来好看"——结果会导致通用、无记忆点的图像
  • 忽略宽高比要求——导致目标平台上的裁剪或变形
  • 不保存元数据——无法复现或改进成功的生成结果

常见问题

使用 Pollinations.ai 需要 API 密钥吗?
不需要。Pollinations.ai 完全免费,无需注册或 API 密钥。只需使用提示词和参数构建 URL 即可。
有哪些图像模型可用?
三种模型:flux(最高质量)、turbo(最快,适合迭代)和 stable-diffusion(质量与速度平衡)。
如何获得一致的结果?
使用 seed 参数。相同的提示词 + 相同的种子值 = 每次生成相同的图像。这对于可重复性至关重要。
可以用于商业项目吗?
可以。Pollinations.ai 图像是开源的。请查看其许可证以了解具体的商业使用条款。
为什么需要 URL 编码?
提示词中的特殊字符(空格、符号)必须进行 URL 编码。在 Python 中使用 urllib.parse.quote() 来正确编码提示词。
应该使用什么尺寸?
取决于你的平台:Instagram 帖子是 1:1(1080x1080),LinkedIn 横幅是 1584x396,YouTube 缩略图是 16:9(1280x720)。

开发者详情

文件结构

📄 SKILL.md

📄 SKILL.toon