← 返回 Skills 市场
OpenRouter Image Generation
作者
Wenyu Yang
· GitHub ↗
· v1.0.0
· MIT-0
613
总下载
0
收藏
10
当前安装
1
版本数
在 OpenClaw 中安装
/install openrouter-image-gen
功能描述
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...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openrouter-image-gen - 安装完成后,直接呼叫该 Skill 的名称或使用
/openrouter-image-gen触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 613 次。
如何安装 OpenRouter Image Generation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openrouter-image-gen」即可一键安装,无需额外配置。
OpenRouter Image Generation 是免费的吗?
是的,OpenRouter Image Generation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenRouter Image Generation 支持哪些平台?
OpenRouter Image Generation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenRouter Image Generation?
由 Wenyu Yang(@yangwenyu2)开发并维护,当前版本 v1.0.0。
推荐 Skills