Image/Video/Audio Generation: Unifying Image, Video, and Audio Generation with a Single Skill

Preface

When doing multimedia generation inside an Agent, a common practice is to keep multiple sets of APIs, model names, and parameter tables: one stack for image generation, another for video, yet another for TTS-based audio. As task descriptions grow more complex, it’s easy to choose the wrong model or forget to configure keys.

The image/video/audio generate skill (coordinate @user_f95f21b8/dlazy-generate) described below consolidates generation needs into a single Skill: the Agent automatically picks the appropriate dlazy CLI subcommand to generate images, videos, or audio based on user intent. You still need your own dLazy API Key, but you don’t have to memorize model lists in every conversation.

What Is This

image/video/audio generate is a community Skill on SkillHub (source community, publisher user_f95f21b8, current version 1.0.9, category design-media).

Official description:

A comprehensive generation skill. Can generate images, videos, and audio by automatically selecting the appropriate dlazy CLI model.

In short: it’s a “comprehensive generation” skill for Agents, relying on the @dlazy/cli provided by dLazy. The Skill guides the Agent to select the right CLI model and execute it, rather than requiring you to hand-write full command lines for each task.

SkillHub page: https://www.skillhub.cn/skills/user_f95f21b8/dlazy-generate
API entry: https://api.skillhub.cn/user_f95f21b8/dlazy-generate

Core Functions

Based on the SkillHub metadata and description, the verifiable capabilities are:

  1. Multimodal generation: supports image, video, and audio outputs (specific models are subject to dlazy CLI’s current registry, viewable with dlazy tools list).
  2. Automatic model selection: guided by natural-language intent, the Skill leads the Agent to choose the corresponding dlazy <model> subcommand, instead of relying on a single fixed model.
  3. Requires API key: tag requires_api_key=true; dLazy credentials must be configured before use (see below).

The Skill itself does not replace dlazy CLI installation and login; it provides instructions and routing logic so coding assistants correctly invoke the CLI within conversational scenarios (standard SKILL.md format).

Installation & Activation

1. Install the SkillHub CLI (if not yet installed)

Follow the SkillHub installation docs to check or install:

command -v skillhub && skillhub --version

If not installed, run the install script from the docs (full install or --cli-only to install only the CLI).

2. Install this Skill

When installing, you must use --dir to point to your Agent’s skills directory; otherwise the default ./skills/ location may not be recognized.

skillhub install @user_f95f21b8/dlazy-generate --dir <your Agent skills directory>

Common paths (subject to the install docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ in the project

You can also send the following prompt to your AI to let it complete the installation per the docs:

Please install `@user_f95f21b8/dlazy-generate` according to https://skillhub.cn/install/skillhub.md.

After installation, restart or refresh as required by your client so the Skill gets loaded.

3. Prepare dlazy CLI and API Key

The Skill explicitly points to the dlazy CLI. You need to install the CLI separately in your terminal and authenticate (this is separate from installing the Skill).

Install the CLI (from the official @dlazy/cli README):

npm install -g @dlazy/cli

Log in or set the key:

dlazy login
# or set directly
dlazy auth set sk-xxxx

Keys are saved by default to ~/.dlazy/config.json; you can also pass DLAZY_API_KEY via environment variable or use --api-key for a single run. The runtime resolution order follows the CLI docs: --api-key → environment variable → config file → interactive login.

Node.js version must be ≥ 18.

Typical Usage

How to use within an Agent

After enabling the Skill, simply describe the generation goal in natural language, e.g., “Generate an illustration based on this copy,” “Turn this reference image into a short video,” or “Read this text into Chinese narration.” The Agent should choose the corresponding dlazy subcommand and assemble parameters according to the Skill.

Trigger semantics match the official description: any phrasing about generating or creating images/videos/audio, or multimodal generation, falls within this Skill’s scope.

Reproducible examples for the underlying CLI

The following commands come from the @dlazy/cli official docs; they illustrate the tool forms the Skill ultimately invokes. The Agent will assemble them on your behalf, but you can also verify your environment directly in a terminal.

Generate an image and save it locally:

dlazy gpt-image-2 --prompt "a cyberpunk cat in neon rain" --save cat.png

Pipe an image result into video generation:

dlazy gpt-image-2 --prompt "detective profile" \
  | dlazy veo-3.1 --image - --prompt "drone push-in, rainy night"

List available tools and parameters:

dlazy tools list
dlazy gpt-image-2 --help

stdout defaults to a structured JSON envelope (ToolResult), making it easy to script and pipe; human-readable progress goes to stderr.

Use Cases & Considerations

Who it’s for

  • Working in environments that support Skills (Cursor, Claude Code, Codex, etc.) and wanting conversational image, video, and audio generation.
  • Willing to use dLazy cloud services and accept per-model billing (usage info appears in the usage field returned by the CLI).

Limitations and notes

  1. API key is required: without a valid key, the CLI cannot call cloud inference.
  2. Data leaves your machine: prompts and local reference files are uploaded to dLazy’s API / object storage according to dlazy CLI behavior (same as using a SaaS generation service directly). Evaluate sensitive materials accordingly.
  3. Community Skill: coordinated as @user_f95f21b8/dlazy-generate, consistent with the same-named capability in the dlazy official repo, but distributed via the SkillHub community; version is as displayed on SkillHub: 1.0.9.
  4. CLI and Skill are separate: installing only the Skill without installing dlazy or logging in still prevents actual generation.
  5. Model list may change: the registry is governed by dlazy tools list in real time; the Skill should evolve alongside CLI capabilities.

SkillHub stats (at the time of capture): rating 100000, downloads 1751, installs 2—indicating primary usage is “install to Agent,” while specific model call counts are not reflected on SkillHub.

Conclusion

image/video/audio generate consolidates image, video, and audio generation into a single Skill: the Agent understands intent and selects an appropriate dlazy CLI model, while you install the Skill, CLI, and API Key. To reproduce or debug locally, start with dlazy login and dlazy tools list.

Official Skill page: https://www.skillhub.cn/skills/user_f95f21b8/dlazy-generate

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye