← 返回 Skills 市场
onee-io

dmxapi-image-generation

作者 cryptonee.eth · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
150
总下载
1
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install dmxapi-image-generation
功能描述
使用 DMXAPI 平台生成和编辑图片。支持 Gemini、Seedream(豆包即梦)、OpenAI 等多种模型。可进行文生图、图片编辑、多图融合、联网搜索增强生图。当用户需要生成图片、编辑图片、AI 绘图、多图融合时使用此技能。
使用说明 (SKILL.md)

DMXAPI 图片生成/编辑

通过 DMXAPI 统一 CLI 调用多种 AI 模型生成和编辑图片。

前置准备

  1. 安装 CLI 工具(需要 Node.js 20+):

    npm install -g dmxapi-cli
    
  2. 配置 API Key(从 DMXAPI 控制台 获取):

    dmxapi config set apiKey sk-your-api-key
    

命令格式

dmxapi image [options] \x3Cprompt>

选项

选项 说明 示例
-m, --model \x3Cmodel> 模型名称(默认 gemini-3.1-flash-image-preview,推荐) -m gemini-3.1-flash-image-preview
--size \x3Cratio> 图片比例:auto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 --size 16:9
--quality \x3Clevel> 分辨率:1K(默认)、2K4K --quality 2K
-n, --count \x3Cn> 生成数量 -n 3
--image \x3Cpath> 输入图片路径(可重复多次实现多图融合) --image ./photo.png
--web-search 启用联网搜索增强 --web-search
-o, --save \x3Cdir> 保存目录(默认当前目录) -o ./output
-p, --param \x3Ck=v> 额外 API 参数(可重复) -p watermark=true

模型

默认使用 gemini-3.1-flash-image-preview(推荐),效果最佳,支持生图、编辑和联网搜索。一般无需指定 -m 参数。

如需使用其他模型(如 doubao-seedream-5.0-litedall-e-3 等),通过 -m 指定即可。

使用步骤

  1. 根据用户需求确定提示词、模型、尺寸、质量等参数
  2. 构建 dmxapi image 命令并执行
  3. 图片自动保存到指定目录,将保存路径告知用户

示例

# 文生图
dmxapi image "一只在月球上骑自行车的猫" -o ./output

# 指定比例和质量
dmxapi image "日落风景" --size 16:9 --quality 2K -o ./output

# 图片编辑
dmxapi image "把背景改成星空" --image ./photo.png -o ./output

# 多图融合
dmxapi image "将这两张图片融合成一幅画" --image ./a.png --image ./b.png -o ./output

# 联网搜索增强
dmxapi image "最新款 iPhone 产品图" --web-search -o ./output

# 生成多张
dmxapi image "三只不同颜色的猫" -n 3 -o ./output

注意事项

  • 建议始终用 -o 指定输出目录
  • 图片编辑需提供本地图片文件路径(支持 png/jpg/webp/gif)
安全使用建议
Before installing or using this skill: 1) Verify the dmxapi-cli npm package and its publisher (check npm page, repository, and GitHub repo/commits) to ensure you trust the code you will install globally. 2) Confirm where the CLI stores the API key (local config file, plaintext) and consider using a dedicated key with limited scope. 3) Ask the skill author to update registry metadata to declare Node.js and the API key requirement (primaryEnv) and to provide a homepage/repo link and install spec. 4) If possible, run the CLI in a sandboxed environment or container first rather than installing globally. 5) Do not reuse sensitive credentials (AWS, GitHub, etc.) with this tool unless you have verified its provenance. Providing the repository URL, package checksum, or a verified homepage would increase confidence.
功能分析
Type: OpenClaw Skill Name: dmxapi-image-generation Version: 1.0.1 The skill bundle provides instructions for an AI agent to use the 'dmxapi-cli' tool for image generation and editing. The SKILL.md file outlines standard CLI usage, including installation via npm and configuration of an API key, which are consistent with the stated purpose. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
The SKILL.md describes a DMXAPI CLI workflow (generate/edit images, local image input, web-search enhancement) that is coherent with the skill's stated purpose. However the registry metadata lists no required binaries or environment, while the SKILL.md explicitly requires Node.js 20+ and dmxapi-cli. That mismatch (metadata claims no requirements but the instructions require installing a global npm package and Node.js) is an incoherence.
Instruction Scope
The runtime instructions stay within the stated image-generation purpose: they tell the agent/user to install dmxapi-cli, set an API key via the CLI, run dmxapi image commands, read local image files passed with --image, and save outputs. The web-search option implies network requests for search/data enrichment, which is expected for the feature. Instructions do not ask for unrelated system files or multiple unrelated credentials.
Install Mechanism
There is no formal install spec in the registry; the SKILL.md directs users to run npm install -g dmxapi-cli (global npm install). Installing a global npm package is a moderate-risk operation because it executes third-party code on the host. The skill provides no publisher/homepage or checksum to verify the package, and the registry metadata lacks a declared install mechanism — this is disproportionate and should be verified (check npm package ownership, repository, and release provenance).
Credentials
The skill declares no required environment variables, but the instructions require configuring an API key via 'dmxapi config set apiKey sk-your-api-key'. That is a sensitive credential and should be declared in metadata (primaryEnv) so users know what will be required and stored. The SKILL.md implies storage of the API key in the CLI's config; the skill metadata gives no guidance about where the key is stored or whether it is transmitted elsewhere.
Persistence & Privilege
The skill is user-invocable, not always-included, and does not request modification of other skills or global agent settings. There is no indication the skill asks the agent to persist beyond its own commands. This is appropriate for an instruction-only CLI integration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dmxapi-image-generation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dmxapi-image-generation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- 增加了多图融合功能,支持通过多次指定 --image 参数实现多图融合。 - 技能描述优化,明确支持多图融合等新能力。 - 示例命令新增多图融合用法示例。 - 版本号由 1.0 升级为 1.0.1。
v1.0.0
- Initial release of dmxapi-image-generation. - Supports image generation and editing using DMXAPI CLI with multiple AI models (Gemini, Seedream, OpenAI, etc.). - Enables text-to-image, image editing, and internet-augmented image generation. - Provides customizable options for model selection, image ratio, resolution, output count, input image, search enhancement, output directory, and extra API parameters. - Requires Node.js 20+ and dmxapi-cli installed for operation.
元数据
Slug dmxapi-image-generation
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

dmxapi-image-generation 是什么?

使用 DMXAPI 平台生成和编辑图片。支持 Gemini、Seedream(豆包即梦)、OpenAI 等多种模型。可进行文生图、图片编辑、多图融合、联网搜索增强生图。当用户需要生成图片、编辑图片、AI 绘图、多图融合时使用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 150 次。

如何安装 dmxapi-image-generation?

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

dmxapi-image-generation 是免费的吗?

是的,dmxapi-image-generation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

dmxapi-image-generation 支持哪些平台?

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

谁开发了 dmxapi-image-generation?

由 cryptonee.eth(@onee-io)开发并维护,当前版本 v1.0.1。

💬 留言讨论