Image Generation Skill for Openclaw

A versatile AI image generation and editing tool supporting multiple providers like OpenRouter and Kie.ai for seamless visual creation.

bzsega
v1.9.1
Mar 15, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install smtools-image-generation

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install smtools-image-generation using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Image Generation Skill?

The Image Generation Skill is a high-performance utility designed for AI coding agents to programmatically create and modify visual content. By leveraging powerful backends like OpenRouter, Kie.ai, and YandexART, this skill enables the generation of high-fidelity images from text prompts and the sophisticated editing of existing files.

This addition to the Openclaw Skills library provides a unified interface for various state-of-the-art models, including Gemini, Stable Diffusion, and Flux. Whether you need synchronous generation for speed or task-based asynchronous processing for complex artistic renders, this skill handles the heavy lifting of API communication and file management.

Image Generation Skill Use Cases

  • Creating custom illustrations, paintings, or photos from descriptive text prompts.
  • Editing existing images by adding elements, changing backgrounds, or transforming styles.
  • Automating visual asset creation for web development or digital marketing projects.
  • Prototyping UI/UX designs and visualizing concepts directly through an AI agent.

How Image Generation Skill Works

  1. The user provides a text prompt or an image editing instruction to the AI agent.
  2. The skill selects the appropriate provider—defaulting to OpenRouter—based on the requested model or explicit user preference.
  3. A bash execution script is triggered, passing parameters such as the prompt, provider, model name, and optional input image paths.
  4. The script communicates with the selected API to process the request synchronously or via an asynchronous task loop.
  5. Upon completion, the skill returns a JSON response containing the absolute path to the generated image and metadata about the process.

Image Generation Skill Setup

To begin using this skill within your Openclaw Skills environment, ensure you have python3 installed and your API keys configured. Run the setup script to initialize the environment:

bash SKILL_DIR/setup.sh

Next, export your primary API key to your environment variables:

export OPENROUTER_API_KEY='your_api_key_here'

Image Generation Skill Data Schema & Taxonomy

The skill manages data through a structured command-line interface and outputs standardized JSON objects. Below is the taxonomy for the output data:

Field Description
status The result of the operation (e.g., "ok")
image_path The absolute filesystem path to the resulting image file
model The specific AI model used for the generation
provider The service provider (OpenRouter, Kie, or YandexART)

Configuration is handled via a config.json file, and generated images are saved to the local directory or a user-specified output path.

Image Generation Skill Advanced Features

  • Multi-provider support allowing access to specialized models like Ghibli-AI and YandexART.
  • Image-to-image editing capabilities using the -i flag for iterative design workflows.
  • Asynchronous task management for providers like Kie.ai to handle long-running generation jobs.
  • Flexible model selection enabling users to swap between different versions of Gemini, Imagen, and Stable Diffusion.
  • Detailed verbose logging for debugging complex agentic workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*