← 返回 Skills 市场
174
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install dashscope-image-gen
功能描述
Generate images via Alibaba DashScope OpenAI-compatible endpoint (compatible-mode) using qwen-image-max. Use when the user asks for 文生图/图片生成/image generation...
使用说明 (SKILL.md)
DashScope Image Generation (qwen-image-max)
Use this skill to generate an image from a text prompt through DashScope compatible-mode.
Quick start
Preferred (no secrets in shell history):
export DASHSCOPE_API_KEY="..."
./scripts/dashscope_image_gen.py --prompt "a cute robot, watercolor" --out robot.png
Optional params (best-effort; support depends on DashScope):
./scripts/dashscope_image_gen.py --prompt "industrial factory at night" --size 1024x1024 --n 1 --out factory.png
What to do when it fails
- Re-run with the same command and copy the HTTP error body.
- If the error indicates a different route/payload than OpenAI Images API:
- Update
scripts/dashscope_image_gen.pyaccordingly. - Update
references/dashscope-openai-compatible.mdwith the correct details.
- Update
Files
scripts/dashscope_image_gen.py: main CLI (callsPOST {baseUrl}/images/generations)references/dashscope-openai-compatible.md: endpoint/auth notes
安全使用建议
This skill appears to be coherent and implements a simple CLI that calls DashScope's compatible images API. Before installing or running: (1) be aware the script needs your DashScope API key (DASHSCOPE_API_KEY) but the registry metadata does not list it — provide the key via environment variable or config rather than the --api-key flag to avoid shell history leakage; (2) the script will read ~/.openclaw/openclaw.json as a fallback, so review that file for other secrets before reusing it; (3) confirm the base URL (https://dashscope.aliyuncs.com/compatible-mode/v1) is the expected endpoint for your account; (4) inspect the small included script yourself (it's short and readable) if you have doubts; and (5) avoid pasting high‑privilege credentials on the command line.
功能分析
Type: OpenClaw Skill
Name: dashscope-image-gen
Version: 1.0.0
The skill provides a straightforward implementation for generating images via the Alibaba DashScope API. The script `scripts/dashscope_image_gen.py` follows standard practices for handling API keys (env vars or local config) and uses the Python standard library to communicate with the official DashScope endpoint. No malicious behaviors, obfuscation, or data exfiltration were detected.
能力评估
Purpose & Capability
Name/description match the implementation: the script posts to {baseUrl}/images/generations using model qwen-image-max. Minor mismatch: the skill metadata lists no required env vars, but both SKILL.md and the script expect an API key (DASHSCOPE_API_KEY or --api-key). This is proportionate to the stated purpose but should have been declared.
Instruction Scope
Runtime instructions and the script stay within the image-generation task: they build an images/generations payload, send it to the configured base URL, and write the returned image bytes to disk. The script will also attempt to read ~/.openclaw/openclaw.json as a fallback to find an API key — that is reasonable for convenience but is outside the minimal instructions and should be noted.
Install Mechanism
No install spec; this is an instruction-only skill with a small included CLI script. Nothing is downloaded or written to disk by an installer step.
Credentials
The script requires a DashScope API key to function (DASHSCOPE_API_KEY or --api-key, or an entry in ~/.openclaw/openclaw.json). Requesting a single service API key is proportionate. The skill did not declare this env var in the registry metadata — a metadata omission rather than excessive privilege. The fallback read of ~/.openclaw/openclaw.json reads the user config file to obtain the key.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system settings, and runs only when invoked. No elevated persistence or unexpected privileges observed.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dashscope-image-gen - 安装完成后,直接呼叫该 Skill 的名称或使用
/dashscope-image-gen触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of dashscope-image-gen skill.
- Generate images using Alibaba DashScope via an OpenAI-compatible endpoint with qwen-image-max.
- Compatible with /images/generations API calls and scriptable CLI workflows.
- Includes usage instructions, CLI options, and error handling steps.
- Documentation and examples provided for easy integration.
元数据
常见问题
Dashscope Image Gen 是什么?
Generate images via Alibaba DashScope OpenAI-compatible endpoint (compatible-mode) using qwen-image-max. Use when the user asks for 文生图/图片生成/image generation... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 174 次。
如何安装 Dashscope Image Gen?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dashscope-image-gen」即可一键安装,无需额外配置。
Dashscope Image Gen 是免费的吗?
是的,Dashscope Image Gen 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Dashscope Image Gen 支持哪些平台?
Dashscope Image Gen 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Dashscope Image Gen?
由 DHDragon(@dhdragon)开发并维护,当前版本 v1.0.0。
推荐 Skills