← 返回 Skills 市场
bawerlacher

Openrouter Image Generation

作者 Yihan Wang · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
572
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install openrouter-image-generation
功能描述
Generate or edit images through OpenRouter's multimodal image generation endpoint (`/api/v1/chat/completions`) using OpenRouter-compatible image models. Use...
安全使用建议
Before installing: (1) Expect to provide an OpenRouter API key (OPENROUTER_API_KEY or pass --api-key) — the registry metadata did not declare this, so verify you are comfortable supplying that secret. (2) The script sends your prompt and any input image to https://openrouter.ai; do not pass sensitive images or prompts you don't want sent to that service. (3) Examples use 'uv run' and require Python 3.10+; ensure your environment supports the recommended runtime or run the script directly with Python. (4) Review the included generate_image.py yourself (it's small and readable); it only posts to openrouter.ai and writes the base64 image result locally, but you should confirm the endpoint and headers are what you expect. (5) If you need the metadata to be accurate for policy/audit purposes, ask the publisher to update required env vars and declared binaries before deploying broadly.
功能分析
Type: OpenClaw Skill Name: openrouter-image-generation Version: 1.0.0 The skill is classified as suspicious due to critical vulnerabilities in `scripts/generate_image.py`. It allows for Local File Inclusion (LFI) by reading arbitrary files specified by `--input-image` and sending their base64-encoded content to the OpenRouter API. Furthermore, it is vulnerable to Local File Write (LFW) and path traversal, as it writes generated images to an unsanitized path specified by `--filename`, potentially allowing an attacker to write files to arbitrary locations on the filesystem. While the `SKILL.md` does not contain malicious prompt injection, it exposes these vulnerable parameters to the agent, which could lead to shell injection if the agent's command execution is not properly sanitized.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the Python script all implement OpenRouter image generation and editing (text->image and image->image). However the registry metadata declares no required environment variables or binaries, while the runtime clearly expects an OPENROUTER_API_KEY (or --api-key) and the README examples use 'uv run'. The missing declared requirements are disproportionate to the skill's real needs and are an inconsistency.
Instruction Scope
SKILL.md instructions and the script stay within the stated purpose: constructing a chat/completions request to openrouter.ai, optionally embedding a local input image as a data URL, and saving the returned base64 image to ~/.openclaw/media/outbound. The instructions do not ask for unrelated files or credentials beyond OpenRouter-specific values. Notes: the doc insists on running the script via an absolute path and examples use 'uv run' (a runtime not declared in metadata).
Install Mechanism
There is no install spec (instruction-only skill plus a local Python script). No external downloads or archive extracts are used. The included Python script is readable and uses only the stdlib for HTTP and base64; no unusual install-time behavior is present.
Credentials
The script requires an OpenRouter API key (OPENROUTER_API_KEY or --api-key) to operate and optionally reads OPENROUTER_SITE_URL and OPENROUTER_APP_NAME. The registry metadata nonetheless lists no required env vars or primary credential. That omission is a meaningful mismatch: the skill cannot function without that secret, so it should have declared it. Other than that, requested environment variables are proportional to the task and there are no unrelated credential requests.
Persistence & Privilege
The skill does not request 'always: true', does not modify other skills, and does not persist or elevate privileges. It only reads local files provided by the user and writes generated images to a contained OpenClaw media directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openrouter-image-generation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openrouter-image-generation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of OpenRouter Image Generation skill. - Allows generating and editing images via OpenRouter-compatible models using the Chat Completions API. - Supports both text-to-image and image-to-image workflows. - Fully configurable: choose model, aspect ratio, image size, and advanced provider-specific image configs. - Handles API key via argument or environment variable, with optional attribution headers. - Saves generated images to the OpenClaw default outbound media directory for easy integration into other flows.
元数据
Slug openrouter-image-generation
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Openrouter Image Generation 是什么?

Generate or edit images through OpenRouter's multimodal image generation endpoint (`/api/v1/chat/completions`) using OpenRouter-compatible image models. Use... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 572 次。

如何安装 Openrouter Image Generation?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openrouter-image-generation」即可一键安装,无需额外配置。

Openrouter Image Generation 是免费的吗?

是的,Openrouter Image Generation 完全免费(开源免费),可自由下载、安装和使用。

Openrouter Image Generation 支持哪些平台?

Openrouter Image Generation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Openrouter Image Generation?

由 Yihan Wang(@bawerlacher)开发并维护,当前版本 v1.0.0。

💬 留言讨论