Awesome-openclaw-skills pollinations
Pollinations.ai API for AI generation - text, images, videos, audio, and analysis. Use when user requests AI-powered generation (text completion, images, videos, audio, vision/analysis, transcription) or mentions Pollinations. Supports 25+ models (OpenAI, Claude, Gemini, Flux, Veo, etc.) with OpenAI-compatible chat endpoint and specialized generation endpoints.
git clone https://github.com/sundial-org/awesome-openclaw-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pollinations" ~/.claude/skills/sundial-org-awesome-openclaw-skills-pollinations && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/pollinations" ~/.openclaw/skills/sundial-org-awesome-openclaw-skills-pollinations && rm -rf "$T"
skills/pollinations/SKILL.mdPollinations 🧬
Unified AI platform for text, images, videos, and audio generation with 25+ models.
API Key
Get free or paid keys at https://enter.pollinations.ai
- Secret Keys (
): Server-side, no rate limits (recommended)sk_ - Optional for many operations (free tier available)
Store key in environment variable:
export POLLINATIONS_API_KEY="sk_your_key_here"
Quick Start
Text Generation
Simple text generation:
curl "https://gen.pollinations.ai/text/Hello%20world"
Chat completions (OpenAI-compatible):
curl -X POST https://gen.pollinations.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $POLLINATIONS_API_KEY" \ -d '{ "model": "openai", "messages": [{"role": "user", "content": "Hello"}] }'
Use script:
scripts/chat.sh for easy chat completions
Image Generation
curl "https://gen.pollinations.ai/image/A%20sunset%20over%20mountains?model=flux&width=1024&height=1024"
Use script:
scripts/image.sh for image generation
Audio Generation (TTS)
curl -X POST https://gen.pollinations.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "openai-audio", "messages": [ {"role": "system", "content": "You are a text reader. Read the user text exactly without responding, adding conversation, or changing anything."}, {"role": "user", "content": "Say: Hello world"} ], "modalities": ["text", "audio"], "audio": {"voice": "nova", "format": "mp3"} }'
Use script:
scripts/tts.sh for text-to-speech
API Endpoints
Base URLs
- Chat/Text:
https://gen.pollinations.ai/v1/chat/completions - Simple Text:
https://gen.pollinations.ai/text/{prompt} - Image:
https://gen.pollinations.ai/image/{prompt}?{params} - Video:
(generates video)https://gen.pollinations.ai/image/{prompt}?{params}
Supported Operations
1. Text/Chat Generation
Models: OpenAI, Claude, Gemini, Mistral, DeepSeek, Grok, Qwen Coder, Perplexity, and 20+ more
Common models:
openai, claude, gemini, mistral, deepseek, qwen, gpt-4, o1, o3
Parameters:
(string): Model name/IDmodel
(array): Chat messages with roles (system/user/assistant)messages
(number): 0-2, default 1temperature
(number): Max response lengthmax_tokens
(number): Nucleus sampling, default 1top_p
(number): Reproducibility (-1 for random)seed
(boolean): Force JSON responsejsonMode
(string): For o1/o3/R1 (high/medium/low/minimal/none)reasoning_effort
(number): Tokens for reasoning (thinking models)thinking_budget
Vision support: Include
image_url in message content for multi-modal:
{ "role": "user", "content": [ {"type": "text", "text": "Describe this image"}, {"type": "image_url", "image_url": {"url": "https://example.com/image.jpg"}} ] }
2. Image Generation
Models:
flux (default), turbo, gptimage, kontext, seedream, nanobanana, nanobanana-pro
Parameters:
(string): Model selectionmodel
/width
(number): 16-2048px, default 1024height
(number): Reproducibilityseed
(string): What to avoidnegative_prompt
(boolean): Remove watermarknologo
(boolean): Private generationprivate
(boolean): Enable NSFW filtersafe
(boolean): AI prompt enhancementenhance
(string): low/medium/high/hd (gptimage)quality
(boolean): Transparent background (gptimage)transparent
(number): 1-4 images (premium)count
(string): Input image URL (image-to-image)image
Format: Returns binary image data (determined by Content-Type header)
3. Image to Image
Use same image endpoint with
image parameter:
https://gen.pollinations.ai/image/make%20it%20blue?image={source_url}
4. Video Generation
Models:
veo (4-8s), seedance (2-10s)
Parameters:
(string): veo or seedancemodel
/width
(number): Dimensionsheight
(number): Seconds (veo: 4/6/8, seedance: 2-10)duration
(string): 16:9 or 9:16aspectRatio
(boolean): Enable audio (veo only)audio
(string): Input image URL (frame interpolation: image[0]=first, image[1]=last)image
(string): What to avoidnegative_prompt
(number): Reproducibilityseed
/private
(boolean): Privacy/safety optionssafe
Format: Returns binary video data
5. Audio Generation (TTS)
Models:
openai-audio
Voices: alloy, echo, fable, onyx, nova, shimmer, coral, verse, ballad, ash, sage, amuch, dan
Formats: mp3, wav, flac, opus, pcm16
Parameters:
: openai-audiomodel
: ["text", "audio"]modalities
: Voice selectionaudio.voice
: Output formataudio.format
Note: Use "Say:" prefix in user message for direct text reading
6. Audio Transcription
Use chat completions endpoint with vision/audio-capable models:
- Models: gemini, gemini-large, gemini-legacy, openai-audio
- Upload audio file as binary input
- Include transcription prompt in system message
7. Image Analysis
Use chat completions with vision models:
- Models: Any vision-capable model (gemini, claude, openai)
- Include
in message contentimage_url
8. Video Analysis
Use chat completions with video-capable models:
- Models: gemini, claude, openai
- Upload video file as binary input
- Include analysis prompt
Scripts
scripts/chat.sh
scripts/chat.shInteractive chat completions with model selection and options.
Usage:
scripts/chat.sh "your message here" scripts/chat.sh "your message" --model claude --temp 0.7
scripts/image.sh
scripts/image.shGenerate images from text prompts.
Usage:
scripts/image.sh "a sunset over mountains" scripts/image.sh "a sunset" --model flux --width 1024 --height 1024 --seed 123
scripts/tts.sh
scripts/tts.shConvert text to speech.
Usage:
scripts/tts.sh "Hello world" scripts/tts.sh "Hello world" --voice nova --format mp3 --output hello.mp3
Tips
- Free tier available: Many operations work without an API key (rate limited)
- OpenAI-compatible: Use chat endpoint with existing OpenAI integrations
- Reproducibility: Use
parameter for consistent outputsseed - Image enhancement: Enable
for AI-improved promptsenhance=true - Video interpolation: Pass two images with
for veoimage[0]=first&image[1]=last - Audio reading: Always use "Say:" prefix and proper system prompt for TTS
API Documentation
Full docs: https://enter.pollinations.ai/api/docs