Custom Image Generator for Openclaw

A flexible bridge that enables AI agents to generate images by connecting to any third-party API provider that follows the OpenAI standard.

zuoanco
v0.0.2
Mar 12, 2026
0
979
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install image-generator-custom

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 image-generator-custom 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 Custom Image Generator?

The Custom Image Generator is a specialized component for Openclaw Skills designed to provide a universal interface for visual content creation. It allows developers to bypass provider lock-in by supporting any third-party image generation service that adheres to the standard OpenAI API format, including DALL-E, Azure OpenAI, and various Stable Diffusion proxies.

By configuring simple environment variables, this skill empowers your AI coding agent to produce high-quality images, handle local file persistence, and manage API authentication seamlessly. It is an essential tool for developers building multi-modal applications that require dynamic visual outputs from specific or private API endpoints.

Custom Image Generator Use Cases

  • Automating the creation of marketing visuals and social media assets using custom AI models.
  • Generating design mockups and UI placeholders directly from a coding workspace.
  • Batch processing image generation tasks for dataset creation or creative projects.
  • Routing image requests through private or enterprise-grade Azure OpenAI endpoints for enhanced security within Openclaw Skills.

How Custom Image Generator Works

  1. The user configures the target provider's endpoint, API key, and model ID via environment variables.
  2. A descriptive text prompt is provided along with optional parameters like resolution and quality.
  3. The skill constructs an authenticated JSON payload and sends a POST request to the specified API URL.
  4. The script parses the response, which can be either a Base64-encoded string or a remote URL.
  5. If a URL is provided, the skill automatically downloads the image data.
  6. The resulting visual is processed and saved as a local PNG file in the current working directory.

Custom Image Generator Setup

To get started with this skill in your Openclaw Skills environment, configure your credentials and install the necessary dependencies:

# Configure your API provider details
export IMAGE_API_URL="https://your-api-provider.com/v1/images/generations"
export IMAGE_API_KEY="your-api-key-here"
export IMAGE_MODEL_ID="your-model-id"

# Install the Python image processing library
pip install "Pillow>=10.0.0"

Custom Image Generator Data Schema & Taxonomy

The skill manages data through CLI arguments and environment configurations, producing standardized image files:

Parameter Source Description
IMAGE_API_URL Env Var The full endpoint for the image generation service.
--prompt CLI Arg The descriptive text used to generate the image.
--size CLI Arg Target resolution (e.g., 256x256, 512x512, 1024x1024, 1792x1024).
--quality CLI Arg The fidelity of the image (standard or hd).
--output CLI Arg The filename prefix for the saved PNG file.
n CLI Arg Number of images to generate (1-10).

Custom Image Generator Advanced Features

  • Multi-provider compatibility supporting any OpenAI-compliant API structure.
  • Automatic conversion and local saving of Base64 or URL-based image responses into PNG format.
  • Parameterized control over image quantity and aspect ratios for tailored visual outputs.
  • Seamless model switching via CLI overrides, allowing you to test different architectures within the same Openclaw Skills workflow.
  • High-definition (HD) support for services that offer enhanced image processing.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*