A versatile skill for generating and editing images using OpenRouter-compatible multimodal models through a unified API.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install openrouter-image-generation
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 openrouter-image-generation using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This Openclaw Skills integration provides a robust interface for interacting with OpenRouter's multimodal image generation capabilities. By utilizing the chat completions endpoint, developers can programmatically generate new visual assets from text descriptions or perform sophisticated image-to-image edits on existing files. This skill is particularly useful for users who need to leverage specific models like Gemini or FLUX via a single API key and standardized configuration.
The skill simplifies the complexities of multimodal requests by handling base64 encoding, directory management, and specific image configurations such as aspect ratios and resolution scaling. It serves as a bridge between creative prompts and high-fidelity output, ensuring that all generated media is stored in a structured format compatible with other Openclaw Skills in an automated pipeline.
To get started, ensure you have your OpenRouter API key and the uv package manager installed. Use the following commands to configure your environment and run your first generation:
# Set your OpenRouter API key
export OPENROUTER_API_KEY='your_api_key_here'
# Create the standard outbound directory
mkdir -p ~/.openclaw/media/outbound
# Generate a new image using a supported model
uv run ~/.openclaw/workspace/skills/openrouter-image-generation/scripts/generate_image.py \
--prompt "A sleek, futuristic workspace with neon lighting" \
--filename "~/.openclaw/media/outbound/workspace-concept.png" \
--model google/gemini-2.5-flash-image \
--aspect-ratio 16:9 \
--image-size 2K
The skill adheres to a structured data management approach to ensure compatibility across the Openclaw Skills ecosystem.
| Component | Location / Format | Purpose |
|---|---|---|
| Output Directory | ~/.openclaw/media/outbound/ |
Centralized storage for all generated visual assets. |
| Filename Convention | yyyy-mm-dd-hh-mm-ss-name.png |
Ensures unique, searchable, and chronologically ordered files. |
| Image Config | aspect_ratio, image_size |
Standardized parameters for controlling output dimensions and quality. |
| Advanced Config | image-config-json |
Allows for provider-specific metadata and extended model features. |
Loading
A secure video conferencing integration for Openclaw that automates instant meeting links and scheduled invite templates via Meetling.

Automate the creation of production-ready React and Next.js projects from requirement documents and UI designs.

An automated AI tool that retrieves and summarizes the top 5 tech news stories of the day into a concise bullet-point briefing.

An automated financial agent skill for daily A-share IPO tracking and low-priced stock screening via email notifications.

A structured memory system for AI agents that organizes context into domains using weight-based decay and bidirectional links.

Quickly fetch and condense your latest Gmail messages into actionable AI-generated summaries within your agent workflow.








































