ai-image
Build and execute skills.video image generation REST requests from OpenAPI specs. Use when user needs to create, debug, or document image generation calls on open.skills.video.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chuyun/ai-imageai-image
Overview
Use this skill to turn OpenAPI definitions into working image-generation API calls for skills.video.
Prefer deterministic extraction from openapi.json instead of guessing fields.
Prerequisites
- Obtain an API key at:
https://skills.video/dashboard/developer - Configure
SKILLS_VIDEO_API_KEYbefore using the skill.
Preferred OpenClaw setup:
- Open the skill settings for
ai-image - Add an environment variable named
SKILLS_VIDEO_API_KEY - Paste the API key as its value
Equivalent config shape:
{
"skills": {
"entries": {
"ai-image": {
"enabled": true,
"env": {
"SKILLS_VIDEO_API_KEY": "your_api_key_here"
}
}
}
}
}
Other valid ways to provide the key:
- Shell:
export SKILLS_VIDEO_API_KEY="your_api_key_here" - Tool-specific env config: any runtime that injects
SKILLS_VIDEO_API_KEY
Workflow
- Check API key and bootstrap environment on first use.
- Identify the active spec.
- Select the SSE endpoint pair for an image model.
- Extract request schema and generate a payload template.
- Execute
POST /generation/sse/...as default and keep the stream open. - If SSE does not reach terminal completion, poll
GET /generation/{id}to terminal status. - Return only terminal result (
COMPLETED/SUCCEEDED/FAILED/CANCELED), neverIN_PROGRESS. - Apply retry and failure handling.
0) Check API key (first run)
Run this check before any API call.
python scripts/ensure_api_key.py
If ok is false, tell the user to:
- Follow the setup in
Prerequisites
Example:
export SKILLS_VIDEO_API_KEY="<YOUR_API_KEY>"
1) Identify the spec
Load the most specific OpenAPI first.
- Prefer model-specific OpenAPI when available (for example
/v1/openapi.jsonunder a model namespace). - Fall back to platform-level
openapi.json. - Use
references/open-platform-api.mdfor base URL, auth, and async lifecycle.
2) Select an image endpoint
If docs.json exists, derive image endpoints from the Images navigation group.
Use default_endpoints from the script output as the primary list (SSE first).
python scripts/inspect_openapi.py \
--openapi /abs/path/to/openapi.json \
--docs /abs/path/to/docs.json \
--list-endpoints
When docs.json is unavailable, pass a known endpoint directly (for example /generation/sse/google/nano-banana-pro).
Use references/image-model-endpoints.md as a snapshot list.
3) Extract schema and build payload
Inspect endpoint details and generate a request template from required/default fields.
python scripts/inspect_openapi.py \
--openapi /abs/path/to/openapi.json \
--endpoint /generation/sse/google/nano-banana-pro \
--include-template
Use the returned request_template as the starting point.
Do not add fields not defined by the endpoint schema.
Use default_create_endpoint from output unless an explicit override is required.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chuyun-ai-image": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
ai-video
Build and execute skills.video video generation REST requests from OpenAPI specs. Use when user needs to create, debug, or document video generation calls on open.skills.video.
i2i
Placeholder skill for image-to-image workflows on skills.video. Use when the user is asking about i2i generation and the concrete API contract has not been implemented yet.
t2v
Placeholder skill for text-to-video workflows on skills.video. Use when the user is asking about t2v generation and the concrete API contract has not been implemented yet.
ai-image-skills
Build and execute skills.video image generation REST requests from OpenAPI specs. Use when user needs to create, debug, or document image generation calls on open.skills.video.
ai-video
Build and execute skills.video video generation REST requests from OpenAPI specs. Use when user needs to create, debug, or document video generation calls on open.skills.video.