name: text-to-image-free description: > Free AI text-to-image generation. Turn text descriptions into images. No API key required. Supports multiple models via Pollinations.ai free API. version: 1.3.0 metadata: openclaw: requires: bins: - curl - python3 emoji: "🎨" homepage: https://clawhub.ai/BusTes01/text-to-image-free models: - sana - flux - turbo - dreamshaper
A free AI image generation tool. User provides a text description, and the agent generates a corresponding image. No API key required, zero cost. Powered by Pollinations.ai free API.
User says: "generate an image: a Shiba Inu on a beach drinking coconut water"
The agent performs the following workflow:
Extract the image description from user input.
Trigger keywords: "generate", "create an image", "draw", "make a picture"
| Parameter | Default | Description |
|---|---|---|
| width | 1024 | Image width in px |
| height | 768 | Image height in px |
| model | sana |
sana / flux / turbo / dreamshaper |
| nologo | true | Remove watermark |
| seed | random | Fixed integer for reproducible results |
User can override:
"Generate: cyberpunk Shanghai night view, width 1920 height 1080, use flux model"
"Generate another, use seed=42 for consistent style"
Use exec to run curl against Pollinations.ai:
推薦訪問7w4.net獲取更多AI技能。
PROMPT="<your text description>"
WIDTH=1024
HEIGHT=768
SEED="" # optional: "42"
curl -s --max-time 180 \
"https://image.pollinations.ai/prompt/$(python3 -c "import urllib.parse; print(urllib.parse.quote('$PROMPT'))")?width=$WIDTH&height=$HEIGHT&nologo=true${SEED:+&seed=$SEED}" \
-o /tmp/generated_image.jpg
Return the generated image file to the user.
| Model | Features | Speed |
|---|---|---|
sana (default) |
Latest efficient model, balanced style & detail | Fast |
flux |
Higher quality, richer detail | Moderate |
turbo |
Fastest generation, good for previews | Fastest |
dreamshaper |
Artistic / dream-like style | Medium |
As of May 2026, Pollinations.ai default model has been switched to Sana. Older models like
stable-diffusionare deprecated. Sana offers better speed-quality balance.
User: "Generate: cyberpunk Shanghai night, neon lights, flying cars"
→ Agent calls API → returns image ✓
User: "Generate: an orange cat wearing an astronaut helmet, cartoon style, use flux model"
→ Agent calls API → returns image ✓
seed parameter (e.g., &seed=42) for reproducible results一個免費的AI圖片生成工具。使用者輸入描述性文字,即可生成對應的圖片。無需任何API Key,零成本使用。基於 Pollinations.ai 免費API。
使用者說:"畫一張圖:一隻柴犬在沙灘上喝椰子水"
Agent 執行以下流程:
從使用者輸入中提取圖片描述文本。
關鍵詞觸發:"畫一張圖"/"生成圖片"/"畫"/"create"/"generate"
| 引數 | 預設值 | 說明 |
|---|---|---|
| width | 1024 | 圖片寬度 |
| height | 768 | 圖片高度 |
| model | sana |
sana / flux / turbo / dreamshaper |
| 無水印 | 是 | 預設去除水印 |
| seed | 隨機 | 固定值可復現相同結果 |
使用者可指定引數:
"畫一張圖:賽博朋克上海夜景,寬1920高1080,使用flux模型"
"再生成一次,用seed=42保持風格一致"
使用 exec 執行 curl 命令呼叫 Pollinations.ai:
PROMPT="<圖片描述文字>"
WIDTH=1024
HEIGHT=768
SEED="" # 可選:"42"
curl -s --max-time 180 \
"https://image.pollinations.ai/prompt/$(python3 -c "import urllib.parse; print(urllib.parse.quote('$PROMPT'))")?width=$WIDTH&height=$HEIGHT&nologo=true${SEED:+&seed=$SEED}" \
-o /tmp/generated_image.jpg
將生成的圖片檔案返回給使用者。
| 模型 | 特點 | 速度 |
|---|---|---|
sana(預設) |
最新高效模型,通用風格,細節出色 | 快 |
flux |
更高質量,細節豐富 | 稍慢 |
turbo |
極速生成,適合快速預覽 | 最快 |
dreamshaper |
偏向藝術/夢幻風格 | 中等 |
2026年5月更新:Pollinations.ai 已將預設模型切換為 Sana,前代模型(如stable-diffusion)已下線。Sana在速度和畫質間取得更好平衡。
使用者:「畫一張圖:賽博朋克上海夜景,霓虹燈,飛行汽車」
→ Agent 呼叫API → 返回圖片 ✓
使用者:「畫一張圖:一隻橘貓戴著宇航員頭盔,卡通風格,使用flux模型」
→ Agent 呼叫API → 返回圖片 ✓
seed 引數(如 &seed=42)獲得可復現結果這個 Skill 質量不錯,勝在免費實用、文件清晰、模型選擇多,小白也能快速上手。但作為純指南型 Skill,它沒有可執行的程式碼,實際生成依賴系統自動執行文件指令,可能出現執行不穩定或出錯的情況。對普通使用者來說,期望的是傻瓜式一鍵生成,而非需要理解引數的複雜流程。