← Back to Skills Marketplace
onee-io

dmxapi-image-generation

by cryptonee.eth · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
150
Downloads
1
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install dmxapi-image-generation
Description
使用 DMXAPI 平台生成和编辑图片。支持 Gemini、Seedream(豆包即梦)、OpenAI 等多种模型。可进行文生图、图片编辑、多图融合、联网搜索增强生图。当用户需要生成图片、编辑图片、AI 绘图、多图融合时使用此技能。
README (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)
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dmxapi-image-generation
  3. After installation, invoke the skill by name or use /dmxapi-image-generation
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug dmxapi-image-generation
Version 1.0.1
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 2
Frequently Asked Questions

What is dmxapi-image-generation?

使用 DMXAPI 平台生成和编辑图片。支持 Gemini、Seedream(豆包即梦)、OpenAI 等多种模型。可进行文生图、图片编辑、多图融合、联网搜索增强生图。当用户需要生成图片、编辑图片、AI 绘图、多图融合时使用此技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 150 downloads so far.

How do I install dmxapi-image-generation?

Run "/install dmxapi-image-generation" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is dmxapi-image-generation free?

Yes, dmxapi-image-generation is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does dmxapi-image-generation support?

dmxapi-image-generation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created dmxapi-image-generation?

It is built and maintained by cryptonee.eth (@onee-io); the current version is v1.0.1.

💬 Comments