Video Generation: Automated Model Selection via Natural Language for dlazy CLI

Preface

When doing “text-to-video” or “image-to-video” in Agents, the common approach is to hand-write a specific dlazy subcommand, or to pin model names in documentation beforehand. Once the prompt changes—wanting cinematic feel, wanting narrative, wanting image-to-video, wanting digital humans—you have to switch subcommands, check parameter tables, and the Agent can easily choose the wrong model.

The video generate introduced below (coordinate @user_f95f21b8/dlazy-video-generate) delegates model selection to the Skill: it selects the most appropriate one among multiple video models in dlazy CLI based on user prompts, then assembles and executes the command according to that model’s -h output. The underlying layer still goes through dLazy hosted API, requiring an API Key and account credits.

What is this

video generate is an Agent Skill on SkillHub maintained by community publisher user_f95f21b8, with current version 1.0.9, categorized as design-media, and source labeled as community. The official description is: Video generation skill. Automatically selects the best dlazy CLI video model based on the prompt. (The Chinese SKILL description reads: Automatically selects the best dlazy CLI video generation model based on prompts.)

The Skill itself is a thin wrapper around the dLazy API: the maintainer points to dlazyai’s @dlazy/cli (pinned to 1.0.9) in the metadata, inference requests are sent to api.dlazy.com, and local media is uploaded to files.dlazy.com. The SkillHub tag is requires_api_key=true, so a dLazy API Key must be configured before use.

Core Features

Verified via SKILL.md / SKILL-cn.md, this Skill provides the following capabilities:

  1. Automatic model selection based on prompts: Covers scenarios such as text-to-video, narrative clips, image-to-video, digital humans, and motion transfer, selecting among multiple dlazy <model> subcommands (see the model list below).
  2. Unified authentication and configuration: Writes to ~/.dlazy/config.json (or %USERPROFILE%\.dlazy\config.json on Windows) via dlazy auth set, or uses the environment variable DLAZY_API_KEY.
  3. Solidified Agent execution flow: First select model → check parameters with dlazy <model_name> -h → execute generation command; and provides clear handling guidance for errors such as 401 unauthorized and 503 insufficient balance.
  4. Trigger words: English includes generate video, text to video, animate image; Chinese includes “生成视频”, “文本转视频”, “图片动起来”.

Available video models (excerpted from official SKILL)

Subcommand direction Representative models Official description
Cinematic veo-3.1, veo-3.1-fast High-quality cinematic clips
Narrative sora-2, sora-2-pro Narrative clips
General short video kling-v3, kling-v3-omni General short videos
Transition narrative seedance-1.5-pro Narrative shorts with transitions
Fast production wan2.6-r2v, wan2.6-r2v-flash General/fast video production
Image-to-video etc. viduq2-i2v, jimeng-i2v-first, etc. Image-to-video, digital humans, motion transfer

CLI and npm package source code can be found at github.com/dlazyai/cli, and the official website is dlazy.com.

Installation and Activation

Installation has two layers: the Skill package on SkillHub, and the dlazy CLI that the Skill depends on.

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, you can follow the SkillHub official documentation to execute (complete installation example):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

See skillhub.cn/install/skillhub.md for instructions.

2. Install video generate into the current Agent’s skills directory

SkillHub requires --dir to point to the skills directory recognized by the current client; otherwise, if it defaults to ./skills/, it may not be loaded. Taking Cursor as an example:

skillhub install dlazy-video-generate --namespace user_f95f21b8 --dir ~/.cursor/skills/

The installation hint given on the SkillHub page is: follow the installation documentation above to install @user_f95f21b8/dlazy-video-generate. Other common client paths (also from the official installation documentation) include Claude Code’s ~/.claude/skills/, Codex’s ~/.codex/skills/, etc.; simply replace --dir with the one for your actual Agent.

3. Install dlazy CLI

Skill metadata requires the local machine to have npm / npx, and pins the CLI version to 1.0.9:

npm install -g @dlazy/cli@1.0.9

You can also invoke it on demand without globally installing:

npx @dlazy/cli@1.0.9 <command>

4. Configure API Key

After obtaining the key at dlazy.com/dashboard/organization/api-key, write it to the CLI:

dlazy auth set YOUR_API_KEY

After the above steps, restart or refresh the Agent’s Skill loading, and you can invoke this Skill with trigger words in conversations.

Typical Usage

The official documentation does not provide fixed “one-command output” example parameters, but instead defines a three-step flow for Agents. Below is explained in a SKILL-reproducible manner.

Step one: Describe requirements in natural language (will hit Skill trigger words), for example “generate a 16:9 narrative short video based on this text” or “make this product image move”.

Step two: After the Agent selects a model, check help (model name used as a dlazy subcommand with space, specifics based on -h):

dlazy kling-v3 -h

Step three: Execute according to required parameters in help (most models need --prompt; image-to-video types also need an image path or URL, and local paths will be uploaded to files.dlazy.com):

dlazy kling-v3 --prompt "清晨城市天际线,镜头缓慢推进" 

If you need to estimate costs without calling the API first, check whether the corresponding model supports --dry-run (based on that model’s -h output). In async task scenarios, some models support --no-wait and similar options, also based on -h.

Applicable Scenarios and Notes

Who it’s for

  • Already using clients that support Skills like Cursor, Claude Code, Codex, and wanting to complete “selection + parameter tuning + API calling” with a single sentence, rather than maintaining multiple model comparison tables.
  • Teams uniformly using dLazy accounts and @dlazy/cli@1.0.9, needing the Agent to provide official recharge and Key page links when the balance is insufficient or the Key is invalid.

Limitations and Notes

  • Must be online, and consumes dLazy credits; when insufficient_balance occurs, you need to recharge at the credits settings page.
  • Local files will be uploaded to dLazy media storage; sensitive materials require self-assessment of compliance.
  • The Skill only handles model selection and calling conventions; specific resolution, aspect ratio, duration, etc. are based on each model’s -h, and before upgrading the CLI version, check against the pinned version 1.0.9 in the Skill metadata.
  • SkillHub statistics (crawled at the time of writing): rating 100000, downloads 1297 times; page data changes, so refer to SkillHub.

Conclusion

video generate writes “how to select among multiple dlazy video models, how to check parameters, what to do when errors occur” into the SKILL, letting the Agent automatically navigate to the correct dlazy subcommand based on prompts, rather than checking documentation from scratch each time. If you want to integrate dLazy video capabilities into your Agent workflow, you can install this Skill from SkillHub and prepare an API Key and CLI.

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

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

Xiaoye