简介
Pollinations AI
原始描述
Generate images, music, and videos from text prompts using Pollinations AI with models like flux, zimage, and suno-4 via API key.
通过你的 Agent 添加
安装目录:pollinations-ai/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: pollinations-ai
description: Generate images, music, and video using Pollinations AI API. Use when: (1) User wants to create images from text prompts, (2) User wants to generate music/audio, (3) User wants to create videos from text, (4) Using AI image generation with models like flux, zimage, nanobanana.
Pollinations AI - Image, Music & Video Generation
Generate images, music, and video using Pollinations AI.
⚠️ IMPORTANT: API Key is required for ALL models now.
Setup
Set API Key in ~/.bashrc:
export POLLINATIONS_API_KEY="your_key"
Get free key at https://pollinations.ai/
Activate environment:
cd ~/.openclaw/workspace/skills/pollinations-image-gen
source .venv/bin/activate
Reload bashrc (if needed):
source ~/.bashrc
Usage
Image Generation
python pollinations_image_gen.py "a cute cat" --output cat.jpg
python pollinations_image_gen.py "cyberpunk city" --model flux --enhance --width 1920 --height 1080
Music Generation
python pollinations_audio_gen.py "upbeat pop song" --output music.mp3
Video Generation
python pollinations_video_gen.py "a cat playing" --duration 10 --output video.mp4
Available Scripts
Script
Purpose
pollinations_image_gen.py
Generate images
pollinations_audio_gen.py
Generate music/audio
pollinations_video_gen.py
Generate videos
Key Models (All require API Key)
Recommended
zimage - Fast, good quality
flux - High quality
flux-2-dev - FREE (Alpha)
Other Options
gptimage, gptimage-large
klein, klein-large (Vision)
seedream, seedream-pro
nanobanana, nanobanana-2, nanobanana-pro
imagen-4, grok-imagine (Alpha)
Music
suno-4 - Recommended ⭐
suno-3.5, suno-3
Video (Alpha)
suno, suno-3.5
veo, veo-3.1
seedance, wan, ltx-2
CLI Parameters
Image
Param
Description
Default
prompt
Image description (required)
-
--model
Model name
flux
--width
Image width
1024
--height
Image height
1024
--enhance
AI enhance prompt
false
--seed
Fixed seed
random
--safe
Safe mode
false
--output
Output filename
output.jpg
Audio
Param
Description
Default
prompt
Music description
-
--model
Model (suno-4)
suno-4
--duration
Seconds
30
--output
Output
output.mp3
Video
Param
Description
Default
prompt
Video description
-
--model
Model
suno-4
--duration
Seconds
10
--aspectRatio
16:9 or 9:16
16:9
--output
Output
output.mp4
Common Issues
Error
Solution
401 Unauthorized
Set POLLINATIONS_API_KEY
403 Forbidden
Your key doesn't have permission for this model
429 Too Many Requests
Slow down requests
402 Payment Required
Not enough Pollen balance
References
- Full model list: See references/MODELS_REFERENCE.md
- API Docs: https://gen.pollinations.ai/api/docs
python pollinations_audio_gen.py "upbeat pop song" --output music.mp3
python pollinations_video_gen.py "a cat playing" --duration 10 --output video.mp4
Available Scripts
Script
Purpose
pollinations_image_gen.py
Generate images
pollinations_audio_gen.py
Generate music/audio
pollinations_video_gen.py
Generate videos
Key Models (All require API Key)
Recommended
zimage - Fast, good quality
flux - High quality
flux-2-dev - FREE (Alpha)
Other Options
| Script | Purpose |
|---|---|
pollinations_image_gen.py |
Generate images |
pollinations_audio_gen.py |
Generate music/audio |
pollinations_video_gen.py |
Generate videos |
Recommended
zimage - Fast, good qualityflux - High qualityflux-2-dev - FREE (Alpha)gptimage,gptimage-largeklein,klein-large(Vision)seedream,seedream-pronanobanana,nanobanana-2,nanobanana-proimagen-4,grok-imagine(Alpha)
Music
suno-4 - Recommended ⭐
suno-3.5, suno-3
Video (Alpha)
suno, suno-3.5
veo, veo-3.1
seedance, wan, ltx-2
CLI Parameters
Image
Param
Description
Default
prompt
Image description (required)
-
--model
Model name
flux
--width
Image width
1024
--height
Image height
1024
--enhance
AI enhance prompt
false
--seed
Fixed seed
random
--safe
Safe mode
false
--output
Output filename
output.jpg
Audio
Param
Description
Default
prompt
Music description
-
--model
Model (suno-4)
suno-4
--duration
Seconds
30
--output
Output
output.mp3
Video
Param
Description
Default
prompt
Video description
-
--model
Model
suno-4
--duration
Seconds
10
--aspectRatio
16:9 or 9:16
16:9
--output
Output
output.mp4
Common Issues
Error
Solution
401 Unauthorized
Set POLLINATIONS_API_KEY
403 Forbidden
Your key doesn't have permission for this model
429 Too Many Requests
Slow down requests
402 Payment Required
Not enough Pollen balance
References
- Full model list: See references/MODELS_REFERENCE.md
- API Docs: https://gen.pollinations.ai/api/docs
suno-4 - Recommended ⭐suno-3.5, suno-3suno,suno-3.5veo,veo-3.1seedance,wan,ltx-2
CLI Parameters
Image
| Param | Description | Default |
|---|---|---|
prompt |
Image description (required) | - |
--model |
Model name | flux |
--width |
Image width | 1024 |
--height |
Image height | 1024 |
--enhance |
AI enhance prompt | false |
--seed |
Fixed seed | random |
--safe |
Safe mode | false |
--output |
Output filename | output.jpg |
Audio
Param
Description
Default
prompt
Music description
-
--model
Model (suno-4)
suno-4
--duration
Seconds
30
--output
Output
output.mp3
Video
Param
Description
Default
prompt
Video description
-
--model
Model
suno-4
--duration
Seconds
10
--aspectRatio
16:9 or 9:16
16:9
--output
Output
output.mp4
Common Issues
Error
Solution
401 Unauthorized
Set POLLINATIONS_API_KEY
403 Forbidden
Your key doesn't have permission for this model
429 Too Many Requests
Slow down requests
402 Payment Required
Not enough Pollen balance
References
- Full model list: See references/MODELS_REFERENCE.md
- API Docs: https://gen.pollinations.ai/api/docs
| Param | Description | Default |
|---|---|---|
prompt |
Music description | - |
--model |
Model (suno-4) | suno-4 |
--duration |
Seconds | 30 |
--output |
Output | output.mp3 |
| Param | Description | Default |
|---|---|---|
prompt |
Video description | - |
--model |
Model | suno-4 |
--duration |
Seconds | 10 |
--aspectRatio |
16:9 or 9:16 | 16:9 |
--output |
Output | output.mp4 |
Common Issues
Error
Solution
401 Unauthorized
Set POLLINATIONS_API_KEY
403 Forbidden
Your key doesn't have permission for this model
429 Too Many Requests
Slow down requests
402 Payment Required
Not enough Pollen balance
References
- Full model list: See references/MODELS_REFERENCE.md
- API Docs: https://gen.pollinations.ai/api/docs
| Error | Solution |
|---|---|
| 401 Unauthorized | Set POLLINATIONS_API_KEY |
| 403 Forbidden | Your key doesn't have permission for this model |
| 429 Too Many Requests | Slow down requests |
| 402 Payment Required | Not enough Pollen balance |
- Full model list: See references/MODELS_REFERENCE.md
- API Docs: https://gen.pollinations.ai/api/docs
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。