返回顶部
c

cheapest-image-generation

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
3,202
下载量
5
收藏
概述
安装方式
版本历史

cheapest-image-generation

# 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 ```json { "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) | ## 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-<TIMESTAMP>.<ext>`. **CRITICAL SECURITY:** Before passing `<OUTPUT_FILE>` 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-<timestamp>.webp` if empty Print `MEDIA:<absolute_path>` 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:<path>` for OC auto-attach — no extra delivery logic needed. - Image saved locally (format auto-detected from URL). URL expires ~24h but local file persists.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cheapest-image-generation-1776419964 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 cheapest-image-generation-1776419964 技能

通过命令行安装

skillhub install cheapest-image-generation-1776419964

下载 Zip 包

⬇ 下载 cheapest-image-generation v1.0.2

文件大小: 7.57 KB | 发布时间: 2026-4-17 19:51

v1.0.2 最新 2026-4-17 19:51
Security: Fix shell injection vulnerability in curl_heredoc.md

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部