An advanced Openclaw Skills integration for zeroHub, enabling secure, automated text-to-image and image-to-image workflows directly inside your AI agent environment.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install zerohub-image-api
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install zerohub-image-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The ZeroHub Image API skill is a robust, developer-centric tool designed to integrate high-quality AI image generation into automated workflows. Operating within the Openclaw Skills framework, this skill enables your AI agents to seamlessly verify account balances, initiate text-to-image or image-to-image tasks using the default gpt-image-2 model, and track tasks via secure polling mechanisms.
Built with security and enterprise compliance in mind, the skill downloads generated image assets only to explicit, user-defined directories. It enforces strict domain constraints (HTTPS, zeroHub domain rules), limits file download sizes up to 25MB, and implements SSRF prevention against intranet, localhost, or link-local targets.
First, configure your API credentials securely by setting up the required environment variable. Do not hardcode the key in your scripts.
# Set your API key securely
set +x
export ZEROHUB_API_KEY='your_sk_img_api_key'
Before kicking off generation tasks, verify your credit balance:
./scripts/zerohub_image_public.py balance
Generate a new image and download it directly to a local directory:
./scripts/zerohub_image_public.py generate \
--prompt 'A small red lobster mascot sitting on a lotus leaf, cute sticker style' \
--size '1:1' \
--quality low \
--output-dir './outputs' \
--download
To download assets from zeroHub using established security rules:
./scripts/zerohub_image_public.py download \
--output-dir './outputs' \
'https://zerohub.zhyy.ltd/api/image-gen/v1/images/assets/example_id'
| Command | Parameter | Description | Default |
|---|---|---|---|
generate |
--prompt |
Image description prompt (Required) | None |
generate |
--model |
The generation model to use | gpt-image-2 |
generate |
--size |
Output image aspect ratio | 1:1 |
generate |
--quality |
Quality preset (auto, low, medium, high) |
low |
generate |
--download |
Automatically download files on success | False |
generate |
--output-dir |
Directory to store downloaded files | None |
* |
--max-download-bytes |
Limit file download size to avoid SSRF issues | 26214400 (25MB) |
Successful execution of tasks yields a JSON structure similar to this, making downstream file parsing inside Openclaw Skills extremely straightforward:
{
"task_id": "example-task-uuid",
"status": "completed",
"downloaded_files": [
{
"ok": true,
"url": "https://zerohub.zhyy.ltd/api/image-gen/v1/images/assets/uuid.png",
"path": "./outputs/zerohub-image-uuid.png",
"filename": "zerohub-image-uuid.png",
"content_type": "image/png",
"size": 123456
}
]
}
--allowed-host to block unauthorized network calls./api/image-gen/...) to absolute URLs using the API base URL.--no-preview-download flag to conserve bandwidth by omitting intermediate or preview generation steps.Loading
A diagnostic and patching skill designed to repair Hermes Agent runs that silently stall due to premature control-loop stops.

A comprehensive trend intelligence skill that monitors, analyzes, and synthesizes emerging global trends across technology, economics, climate, and innovation.

An AI-optimized search and extraction skill that connects agents to the web using Tavily's specialized RAG-friendly APIs.

A zero-latency local context hook that detects ambiguous pronouns, vague referents, and bare imperatives, helping AI agents resolve them accurately based on conversation history.

An end-to-end editorial pipeline that transforms single long-tail search queries into search-optimized, structured blog posts across multiple CMS targets.

An AI agent skill designed to construct a writer-ready editorial backlog sourced from verifiable user demand indicators instead of hallucinated search volumes.








































