← 返回 Skills 市场
dlazyai

Dlazy Mj.Imagine

作者 dlazy · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ⚠ suspicious
574
总下载
0
收藏
1
当前安装
6
版本数
在 OpenClaw 中安装
/install dlazy-mj-imagine
功能描述
Generate artistic images using Midjourney (MJ) model. Supports text-to-image.
使用说明 (SKILL.md)

dlazy-mj.imagine

English · 中文

Generate artistic images using Midjourney (MJ) model. Supports text-to-image.

Trigger Keywords

  • midjourney
  • mj
  • generate image, artistic painting
  • text to image

Authentication

All requests require a dLazy API key, configured through the CLI:

dlazy auth set YOUR_API_KEY

The CLI saves the key in your user config directory (~/.dlazy/config.json on macOS/Linux, %USERPROFILE%\.dlazy\config.json on Windows), with file permissions restricted to your OS user account. You can also supply the key per-invocation via the DLAZY_API_KEY environment variable.

Getting Your API Key

  1. Sign in or create an account at dlazy.com
  2. Go to dlazy.com/dashboard/organization/api-key
  3. Copy the key shown in the API Key section

Each key is scoped to your dLazy organization and can be rotated or revoked at any time from the same dashboard.

About & Provenance

You can install on demand without persisting a global binary by running:

npx @dlazy/[email protected] \x3Ccommand>

Or, if you prefer a global install, the skill's metadata.clawdbot.install field declares the exact pinned version (npm install -g @dlazy/[email protected]). Review the GitHub source before installing.

How It Works

This skill is a thin client over the dLazy hosted API. When you invoke it:

  • Prompts and parameters you provide are sent to the dLazy API endpoint (api.dlazy.com) for inference.
  • Any local file paths you pass to image / video / audio fields are uploaded to dLazy's media storage (oss.dlazy.com) so the model can read them — the same flow as any cloud-based generation API.
  • Generated output URLs returned by the API are hosted on oss.dlazy.com.

This is the standard SaaS pattern; the skill itself does not access network or filesystem resources beyond what the dLazy CLI already handles. See dlazy.com for the full service terms.

Usage

CRITICAL INSTRUCTION FOR AGENT: Run the dlazy mj.imagine command to get results.

dlazy mj.imagine -h

Options:
  --prompt \x3Cprompt>                    Prompt
  --aspect_ratio \x3Caspect_ratio>        Aspect Ratio [default: auto] (choices: "auto", "1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3", "21:9")
  --botType \x3CbotType>                  Bot Type [default: MID_JOURNEY] (choices: "MID_JOURNEY", "NIJI_JOURNEY")
  --output \x3Coutput>                    Output [default: grid] (choices: "grid", "U1", "U2", "U3", "U4")
  --promptRefs \x3CpromptRefs...>         promptRefs [default: ]
  --input \x3Cspec>                       JSON payload: inline string, @file, or - (stdin)
  --dry-run                            Print payload + cost estimate without calling API
  --no-wait                            Return generateId immediately for async tasks
  --timeout \x3Cseconds>                  Max seconds to wait for async completion (default: "1800")
  -h, --help                           display help for command

Output Format

{
  "ok": true,
  "kind": "urls",
  "data": {
    "urls": [
      "https://oss.dlazy.com/result.mp4"
    ]
  }
}

Command Examples

# basic call:
dlazy mj.imagine --prompt 'prompt text' --image '/path/to/image.png'

# complex call:
dlazy mj.imagine --prompt 'prompt text' --image 'https://oss.dlazy.com/image.png'

Error Handling

Code Error Type Example Message
401 Unauthorized (No API Key) ok: false, code: "unauthorized", message: "API key is missing or invalid"
501 Missing required parameter error: required option '--prompt \x3Cprompt>' not specified
502 Local file read error Error: Image file/Video file not found: C:\path o\your\file
503 API request failed (no balance) ok: false, code: "insufficient_balance"
503 API request failed (server error) HTTP status code error (500 server crash)
504 Asynchronous task execution failed === Generation Failed === / {Specific error reason returned by backend, for example "Prompt violates safety policy"}

AGENT CRITICAL INSTRUCTION:

  1. If the execution result returns code: "insufficient_balance", you MUST explicitly inform the user that their credits are insufficient and guide them to recharge: https://dlazy.com/dashboard/organization/settings?tab=credits
  2. If the execution result returns code: "unauthorized" or indicates missing API key, you MUST inform the user to get their API key from https://dlazy.com/dashboard/organization/api-key and save it using dlazy auth set \x3Ckey> and resume the task.

Tips

Visit https://dlazy.com for more information.

安全使用建议
This skill is a thin client for the dLazy hosted API and will work as described, but note two practical risks before installing or using it: (1) You must supply a dLazy API key (via DLAZY_API_KEY or `dlazy auth set`), which the CLI will store at ~/.dlazy/config.json unless you supply it per-run; the registry metadata did not declare this requirement — be aware of where your key will be stored and who can access it. (2) Any local images you pass will be uploaded to oss.dlazy.com, so do not pass sensitive or private files. If you plan to install, review the GitHub repo and npm package contents for @dlazy/[email protected] first; to avoid persisting a binary on disk, prefer using npx. Finally, confirm the service's privacy/terms and be prepared for potential costs (insufficient_balance errors).
功能分析
Type: OpenClaw Skill Name: dlazy-mj-imagine Version: 1.0.5 The skill is a legitimate wrapper for the dLazy CLI tool (@dlazy/cli) used to interface with Midjourney for image generation. It provides transparent documentation regarding authentication, file handling (uploading to oss.dlazy.com), and error management. The instructions for the AI agent are functional and aligned with the stated purpose, directing users to the official dlazy.com dashboard for API keys and credit management without any signs of malicious intent or prompt injection.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Name/description (Midjourney-style image generation) align with the required binaries (npm/npx) and the CLI client referenced. However, the SKILL.md clearly states an API key (DLAZY_API_KEY or stored via `dlazy auth set`) and a config location (~/.dlazy/config.json) are required, but the registry metadata lists no required environment variables or required config paths. That mismatch is unexpected.
Instruction Scope
Instructions are narrowly scoped to invoking the dLazy CLI (dlazy mj.imagine). They explicitly state that local files passed as inputs will be uploaded to dLazy's media storage (oss.dlazy.com) and that prompts/params are sent to api.dlazy.com. There are no instructions to read unrelated system files or to exfiltrate data outside the dLazy endpoints, though the agent will upload any local files you pass.
Install Mechanism
This is an instruction-only skill (no install spec in registry), but SKILL.md metadata recommends installing a pinned npm package (@dlazy/[email protected]) or using npx. Installing from npm is an expected mechanism for a CLI client; it's a moderately risky install vector compared with instruction-only skills because it writes code to disk — review the GitHub source and prefer npx if you don't want a global install.
Credentials
The skill requires an organization-scoped dLazy API key (and stores it in ~/.dlazy/config.json) or accepts DLAZY_API_KEY per invocation. The registry metadata, however, lists no required env vars and no required config paths — that's an omission. Requiring an API key and persistent config is reasonable for a CLI that calls a hosted API, but the missing declarations are an inconsistency and increase the chance a user will miss the credential requirement or its storage location.
Persistence & Privilege
The skill does not request always-on status and does not ask to modify other skills or system-wide settings. It recommends an optional global npm install (user action) or ephemeral npx usage; neither is privileged by itself.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dlazy-mj-imagine
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dlazy-mj-imagine 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.5
bump @dlazy/cli to 1.0.8
v1.0.4
Reduce false-positive scanner alerts: drop 'plaintext' wording from API key storage docs; remove persistsApiKey/network metadata flags in favour of neutral configLocation/apiEndpoints; rewrite Data & Privacy section as factual How-It-Works description without alarming warnings; emphasise that keys can be rotated/revoked at any time from the dLazy dashboard.
v1.0.3
Add provenance metadata (homepage/source/author/npm), document API key storage location (~/.dlazy/config.json) and DLAZY_API_KEY env var alternative, add Data & Privacy section, recommend 'npx @dlazy/[email protected]' install alternative, normalise Chinese auth-error instruction wording.
v1.0.2
- Updated to version 1.0.2. - Clarified instructions for handling missing API key: user should provide the key, and it must be saved directly using the CLI command before resuming the task. - No functional or CLI interface changes. Text improvements for agent instructions.
v1.0.1
- Added a dedicated "Authentication" section with step-by-step instructions for setting and obtaining the required API key. - Updated CLI installation to use @dlazy/[email protected]. - Improved documentation for easier onboarding and usage.
v1.0.0
Initial release of dlazy-mj.imagine. - Generate artistic images using the Midjourney (MJ) model with text-to-image support. - Provides flexible options for prompts, aspect ratios, bot type selection (MID_JOURNEY or NIJI_JOURNEY), and output formatting. - Includes clear CLI usage examples and supported error handling strategies. - Explicit guidance for handling missing credits or API key scenarios. - Documentation includes trigger keywords and essential agent instructions for execution.
元数据
Slug dlazy-mj-imagine
版本 1.0.5
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 6
常见问题

Dlazy Mj.Imagine 是什么?

Generate artistic images using Midjourney (MJ) model. Supports text-to-image. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 574 次。

如何安装 Dlazy Mj.Imagine?

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

Dlazy Mj.Imagine 是免费的吗?

是的,Dlazy Mj.Imagine 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Dlazy Mj.Imagine 支持哪些平台?

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

谁开发了 Dlazy Mj.Imagine?

由 dlazy(@dlazyai)开发并维护,当前版本 v1.0.5。

💬 留言讨论