Introduction¶
When working with video generation, the common practice is to open a separate console or write scripts to integrate various vendor APIs: text-to-video, first/last-frame interpolation, and reference image/reference video-driven generation often use different interfaces or models. To enable agents in environments like Cursor or Claude Code to generate video directly, you also need to embed authentication, parameters, and polling logic into a Skill.
Below is an introduction to wan2.7 on SkillHub (coordinate @user_f95f21b8/dlazy-wan2-7). It packages Tongyi Wanxiang 2.7 into a universal SKILL.md and calls the hosted API through the dLazy CLI. A single set of commands covers text-to-video, first/last-frame-to-video, and reference image/video-to-video generation.
What Is This¶
wan2.7 is a community-sourced (community) design-media type Skill. The current version is 1.0.9, published by user_f95f21b8. The official description is: Tongyi Wanxiang 2.7 video model — one model covers text-to-video, first/last-frame-to-video, and reference-to-video.
The Skill itself is a thin wrapper around the dLazy hosted API: maintained by dlazyai, with the CLI source at github.com/dlazyai/cli, and the npm package is @dlazy/cli (this Skill pins 1.0.9). Inference requests are sent to api.dlazy.com, and media files passed locally are uploaded by the CLI to files.dlazy.com. The SkillHub tag indicates requires_api_key=true; a dLazy API key must be configured before use.
Core Features¶
Based on the Skill documentation, the verified capabilities are as follows:
- Text-to-video: use
--promptto describe the scene; optional resolution, duration, smart prompt rewriting, watermark, etc. - Reference image/video-to-video (
generation_modedefaults tocomponents):--images(up to 5) or--videos(up to 5); supports URLs or local paths. - First/last-frame-to-video (
generation_mode=frames): use--firstFrameand--lastFrameto specify the starting and ending frames. - Optional audio: use
--audioto pass an audio URL or local file. - Async & estimation:
--dry-runonly prints the request body and cost estimate;--no-waitreturnsgenerateIdimmediately, and you can poll withdlazy status <generateId> --wait.
The backend model identifier in the returned JSON is modelId: "bailian-wan2_7". Resolution supports 720P and 1080P; duration supports 2–15 seconds (default 5).
Installation & Activation¶
1. Install the Skill (SkillHub)¶
First confirm that the skillhub CLI is installed on your machine. If not, follow the SkillHub installation instructions to install it. When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise the default location ./skills/ may not be recognized.
Example for Cursor (for other clients’ paths, see the official docs, e.g., Claude Code uses ~/.claude/skills/):
skillhub install @user_f95f21b8/dlazy-wan2-7 --dir ~/.cursor/skills/
The SkillHub page also allows an Agent to install the same coordinate by following https://skillhub.cn/install/skillhub.md.
2. Install the dLazy CLI¶
The Skill metadata requires npm and npx in the environment. Install the pinned version globally:
npm install -g @dlazy/cli@1.0.9
If you prefer not to install globally, call it per command:
npx @dlazy/cli@1.0.9 <command>
3. Configure the API Key¶
After registering at dlazy.com, copy your key from the Organization API Key page, then set it in the CLI:
dlazy auth set YOUR_API_KEY
The key is stored in ~/.dlazy/config.json (on Windows: %USERPROFILE%\.dlazy\config.json). You can also use the environment variable DLAZY_API_KEY for a one-off run.
Typical Usage¶
View the full parameter description:
dlazy wan2.7 -h
Text-to-video (official example):
dlazy wan2.7 --prompt 'prompt content'
Reference image-to-video:
dlazy wan2.7 --prompt 'prompt content' --images '/path/to/image.png'
First/last-frame mode requires explicitly switching the mode and passing frame images (parameter names match the -h output):
dlazy wan2.7 --generation_mode frames --prompt 'the camera transitions from A to B' --firstFrame '/path/to/start.png' --lastFrame '/path/to/end.png'
On success, the CLI returns JSON; when ok: true, result.outputs contains fields such as url. If you use --no-wait, you must poll the task status yourself.
Use Cases & Notes¶
Who it’s for: product/design/content professionals who need to initiate Wanxiang 2.7 video tasks directly inside an Agent conversation, as well as developers who prefer a unified CLI instead of hand-writing HTTP calls.
Limitations & notes:
- Depends on a dLazy account and balance; if you get
insufficient_balance, top up at Credits Settings. - A non-existent local path will cause a file read error; uploads and generation happen in the cloud, so pay attention to compliance and material copyright.
--promptis required; an unconfigured or invalid API key returnsunauthorized.- SkillHub stats (as of data retrieval): rating 100000, downloads 1066, installs 2; refer to the SkillHub Skill page.
Conclusion¶
With the steps above, wan2.7 consolidates Tongyi Wanxiang 2.7’s multimodal video capabilities into a single command dlazy wan2.7, making it easy to reuse in Agents that support SKILL.md. For installation and details, see SkillHub: https://www.skillhub.cn/skills/user_f95f21b8/dlazy-wan2-7; API endpoint: https://api.skillhub.cn/user_f95f21b8/dlazy-wan2-7.