🎨 Text-to-Image Free

👤 bustes01 📦 v1.3.0 ⭐ 4.2 ⬇️ 1.2K 下載
🎨 設計多媒體 免費

📖 技能介紹


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


🎨 Text-to-Image Free

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.

Usage

User says: "generate an image: a Shiba Inu on a beach drinking coconut water"

The agent performs the following workflow:

Step 1: Extract Prompt

Extract the image description from user input.

Trigger keywords: "generate", "create an image", "draw", "make a picture"

Step 2: Set Parameters

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"

Step 3: Call API

Use exec to run curl against Pollinations.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

Step 4: Return Result

Return the generated image file to the user.

Model Selection

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-diffusion are deprecated. Sana offers better speed-quality balance.

Examples

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 ✓

Notes

  • Free API has queue limits: one request at a time
  • Generation takes ~15-60 seconds (Sana is faster than predecessors)
  • English prompts yield best results
  • Use seed parameter (e.g., &seed=42) for reproducible results
  • Non-commercial use only (Pollinations.ai free tier limitation)

🎨 文生圖(免費)

一個免費的AI圖片生成工具。使用者輸入描述性文字,即可生成對應的圖片。無需任何API Key,零成本使用。基於 Pollinations.ai 免費API。

使用方法

使用者說:"畫一張圖:一隻柴犬在沙灘上喝椰子水"

Agent 執行以下流程:

第一步:提取提示詞

7w4.net小蔥技能站收錄全網優質技能,值得收藏。

從使用者輸入中提取圖片描述文本。

關鍵詞觸發:"畫一張圖"/"生成圖片"/"畫"/"create"/"generate"

第二步:調整引數

引數 預設值 說明
width 1024 圖片寬度
height 768 圖片高度
model sana sana / flux / turbo / dreamshaper
無水印 預設去除水印
seed 隨機 固定值可復現相同結果

使用者可指定引數:

"畫一張圖:賽博朋克上海夜景,寬1920高1080,使用flux模型"
"再生成一次,用seed=42保持風格一致"

第三步:呼叫API

使用 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 → 返回圖片 ✓

注意事項

  • 免費API有佇列限制,一次只能處理一個請求
  • 生成時間約15-60秒(Sana模型較前代更快)
  • 建議使用英文提示詞獲得最佳效果,中文也支援
  • 支援 seed 引數(如 &seed=42)獲得可復現結果
  • 僅限非商業用途(Pollinations.ai免費層限制)

🤖 AI 評測

這個 Skill 質量不錯,勝在免費實用、文件清晰、模型選擇多,小白也能快速上手。但作為純指南型 Skill,它沒有可執行的程式碼,實際生成依賴系統自動執行文件指令,可能出現執行不穩定或出錯的情況。對普通使用者來說,期望的是傻瓜式一鍵生成,而非需要理解引數的複雜流程。

📊 多維度評分

適應性4.3
規範性4.2
有效性4.3
可靠性4
可信度4.3

📁 包含檔案 (2 個)

📄 SKILL.md 5.4 KB
📄 _meta.json 137 B