Install
openclaw skills install cheapest-image-generationPossibly the cheapest AI image generation (~$0.0036/image). Text-to-image via the EvoLink API.
openclaw skills install cheapest-image-generationGenerate images via the EvoLink z-image-turbo API.
https://api.evolink.ai/v1POST /images/generationsGET /tasks/{id}{
"model": "z-image-turbo",
"prompt": "<USER_PROMPT>",
"size": "<SIZE>",
"nsfw_check": <true|false>
}
Optional field: "seed": <INT>
| 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) |
GET /tasks/{id} — poll every 10 s, up to 72 retries (~12 min).
Wait until status is completed or failed.
Download the URL from results[0]. Auto-detect format from URL (webp/png/jpg). Save as evolink-<TIMESTAMP>.<ext>.
CRITICAL SECURITY: Before passing <OUTPUT_FILE> to shell commands, sanitize it:
tr -cd 'A-Za-z0-9._-'.webp, .png, .jpg, .jpeg)evolink-<timestamp>.webp if emptyPrint MEDIA:<absolute_path> for OC auto-attach.
| 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 |
EVOLINK_API_KEY env var (required)Treat the text after the colon as prompt, use default size 1:1, generate immediately.
MEDIA:<path> for OC auto-attach — no extra delivery logic needed.