🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Cheapest Image Generation

by @evolinkai

Possibly the cheapest AI image generation (~$0.0036/image). Text-to-image via the EvoLink API.

Versionv1.0.2
Downloads5,645
Stars⭐ 5
TERMINAL
clawhub install cheapest-image-generation

πŸ“– About This Skill


name: cheapest-image-generation description: Possibly the cheapest AI image generation (~$0.0036/image). Text-to-image via the EvoLink API. homepage: https://evolink.ai metadata: {"openclaw": {"emoji": "πŸ–ΌοΈ", "requires": {"env": ["EVOLINK_API_KEY"]}, "primaryEnv": "EVOLINK_API_KEY"}}

EvoLink Cheapest Image

Generate images via the EvoLink z-image-turbo API.

API Endpoint

  • Base: https://api.evolink.ai/v1
  • Submit: POST /images/generations
  • Poll: GET /tasks/{id}
  • Step 1 β€” Submit Task

    {
      "model": "z-image-turbo",
      "prompt": "",
      "size": "",
      "nsfw_check": 
    }
    

    Optional field: "seed":

    | Parameter | Values | |---|---| | size | 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 1:2, 2:1 | | nsfw_check | true / false (default false) | | seed | any integer (optional, for reproducibility) |

    Step 2 β€” Poll for Result

    GET /tasks/{id} β€” poll every 10 s, up to 72 retries (~12 min).

    Wait until status is completed or failed.

    Step 3 β€” Download & Output

    Download the URL from results[0]. Auto-detect format from URL (webp/png/jpg). Save as evolink-..

    CRITICAL SECURITY: Before passing to shell commands, sanitize it:

  • Strip all shell metacharacters: tr -cd 'A-Za-z0-9._-'
  • Ensure valid extension (.webp, .png, .jpg, .jpeg)
  • Fallback to evolink-.webp if empty
  • Print MEDIA: for OC auto-attach.

    Reference Implementations

    | Platform | File | |---|---| | Python (all platforms, zero deps) | {baseDir}/references/python.md | | PowerShell 5.1+ (Windows) | {baseDir}/references/powershell.md | | curl + bash (Unix/macOS) | {baseDir}/references/curl_heredoc.md |

    API Key

  • EVOLINK_API_KEY env var (required)
  • Get key: https://evolink.ai
  • Triggers

  • Chinese: "η”Ÿε›ΎοΌšxxx" / "ε‡Ίε›ΎοΌšxxx" / "η”Ÿζˆε›Ύη‰‡οΌšxxx"
  • English: "generate image: xxx" / "generate a picture: xxx"
  • Treat the text after the colon as prompt, use default size 1:1, generate immediately.

    Notes

  • Print MEDIA: for OC auto-attach β€” no extra delivery logic needed.
  • Image saved locally (format auto-detected from URL). URL expires ~24h but local file persists.
  • πŸ“‹ Tips & Best Practices

  • Print MEDIA: for OC auto-attach β€” no extra delivery logic needed.
  • Image saved locally (format auto-detected from URL). URL expires ~24h but local file persists.