← Back to Skills Marketplace
OpenRouter Image Generation
by
Wenyu Yang
· GitHub ↗
· v1.0.0
· MIT-0
613
Downloads
0
Stars
10
Active Installs
1
Versions
Install in OpenClaw
/install openrouter-image-gen
Description
Generate images using Google Gemini via OpenRouter API. Supports text-to-image and reference-image-guided generation. Use when the user asks to generate, cre...
Usage Guidance
What to check before installing:
- You must provide an OPENROUTER_API_KEY (the skill will not work without it). The published registry metadata did not declare this — verify and set the environment variable only if you trust the skill and OpenRouter.
- Any prompt text and any reference image you pass will be uploaded to https://openrouter.ai; do not send private/confidential images or proprietary artwork unless you accept that those assets go to the external service.
- The script writes a debug file (output.debug.json) when no image is returned; that file can contain the full API response (prompts, parts of the result). Clean or secure those files if they contain sensitive data.
- Confirm billing and rate-limit implications on your OpenRouter account (the SKILL.md lists model costs and may consume credits).
- If you want stricter assurance, ask the skill author/owner to update the registry metadata to declare OPENROUTER_API_KEY as the primary credential and to document exactly what fields appear in the debug dump.
Capability Analysis
Type: OpenClaw Skill
Name: openrouter-image-gen
Version: 1.0.0
The skill bundle provides a standard implementation for generating images via the OpenRouter API using Google Gemini models. The Python script (scripts/generate.py) uses only standard libraries to handle API requests and file I/O, and the instructions in SKILL.md are consistent with the stated purpose without any signs of malicious intent or prompt injection attacks.
Capability Assessment
Purpose & Capability
The SKILL.md and scripts/generate.py match the skill name/description: they call OpenRouter's /chat/completions to generate images (text-to-image and optional reference-image guidance). The required behavior (sending images/prompts to OpenRouter) is coherent with the stated purpose.
Instruction Scope
Runtime instructions are narrowly scoped to image generation: they read an optional reference image, base64-encode it, POST to OpenRouter, decode a base64 image from the response, save output, and write a .debug.json when no image is returned. This is expected, but it means user prompts and any provided reference images will be transmitted to openrouter.ai (privacy/billing concern). The debug JSON can contain the full API response and should be treated as potentially sensitive.
Install Mechanism
No install spec is provided (instruction-only with a bundled script). Nothing is downloaded or executed during install, which minimizes install-time risk.
Credentials
The script and SKILL.md require OPENROUTER_API_KEY (or --api-key) to operate, which is proportionate to the capability. However the registry metadata in the provided manifest lists 'Required env vars: none' and 'Primary credential: none' — a clear metadata omission/incoherence. The skill will fail without an API key, so the manifest should declare OPENROUTER_API_KEY as a required credential.
Persistence & Privilege
The skill does not request persistent/always-on privileges, does not modify other skills or system-wide configs, and runs only when invoked. No elevated platform privileges are requested.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install openrouter-image-gen - After installation, invoke the skill by name or use
/openrouter-image-gen - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: text-to-image and reference-image-guided generation via Google Gemini on OpenRouter. Pure Python stdlib, zero dependencies. Includes prompt engineering tips from real-world usage.
Metadata
Frequently Asked Questions
What is OpenRouter Image Generation?
Generate images using Google Gemini via OpenRouter API. Supports text-to-image and reference-image-guided generation. Use when the user asks to generate, cre... It is an AI Agent Skill for Claude Code / OpenClaw, with 613 downloads so far.
How do I install OpenRouter Image Generation?
Run "/install openrouter-image-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is OpenRouter Image Generation free?
Yes, OpenRouter Image Generation is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does OpenRouter Image Generation support?
OpenRouter Image Generation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created OpenRouter Image Generation?
It is built and maintained by Wenyu Yang (@yangwenyu2); the current version is v1.0.0.
More Skills