Introduction¶
When creating illustrations in environments like Cursor or Claude Code, the common practice is to hand-write HTTP requests and manage authentication and uploads yourself. To integrate Vidu Q2’s capabilities into a conversation flow, you also need to organize parameters, aspect ratios, and result URLs into a format that an Agent can continue to use. Below is an introduction to viduq2 t2i on SkillHub (coordinate @user_f95f21b8/dlazy-viduq2-t2i): it wraps the viduq2-t2i command of dLazy CLI into a standard SKILL.md, allowing Agents to call cloud inference according to the documentation instead of hastily assembling scripts.
What is this¶
viduq2 t2i is a Skill from community sources (source: community), categorized under design-media, with the current version 1.0.9. The SkillHub introduction states: uses Vidu Q2 to generate high-quality images, supporting text-to-image and image-to-image (in the Chinese SKILL it’s described as 文生图 and 图生图).
The skill itself is published by user_f95f21b8; actual inference is accessed through the @dlazy/cli maintained by dlazyai, which calls dLazy’s hosted APIs (api.dlazy.com, files.dlazy.com). The Skill metadata requires npm and npx to be available on the local machine, and is marked with requires_api_key=true — a dLazy API Key must be configured before use.
Core Features¶
According to SKILL.md, the verifiable capabilities include:
- Text-to-image / Image-to-image: Submit prompts via
dlazy viduq2-t2i; up to 10 reference images can be provided (URL or local path, uploaded tofiles.dlazy.comby the CLI). - Aspect ratio and resolution:
--aspectRatiosupports16:9,9:16,1:1,3:4,4:3,21:9,2:3,3:2, with9:16as default;--resolutioncan be1080p,2K,4K, with1080pas default. - Generation mode:
--generation_modecurrently hascomponentsas the optional value (default). - Debugging and async:
--dry-runcan print the request body and cost estimate without actually calling the API;--no-waitreturnsgenerateId, which can be polled withdlazy status <generateId> --wait;--timeoutdefaults to waiting 1800 seconds. - Structured output: On success, the JSON contains fields such as
modelId: "vidu-t2i-viduq2"andoutputs[].url, making it easy for Agents to write image links back into conversations or downstream steps.
The trigger keywords listed in the documentation are: vidu q2, generate/edit images, text-to-image/image-to-image (and their corresponding English expressions).
Installation and Activation¶
1. Install the Skill (SkillHub)¶
The method given on the SkillHub page is to let the Agent install the coordinate package according to the SkillHub installation instructions. You can first check the CLI from the command line:
command -v skillhub && skillhub --version
If not installed, the complete installation method provided in the installation documentation is:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install the Skill into the skills directory actually used by the current Agent (the --dir flag must be included during installation, otherwise the default ./skills/ may not be recognized). For example, the common path for Cursor is ~/.cursor/skills/:
skillhub install @user_f95f21b8/dlazy-viduq2-t2i --dir ~/.cursor/skills/
The corresponding directory for Claude Code is ~/.claude/skills/; for Codex it is ~/.codex/skills/ or .agents/skills/ under the project. The path should be based on your current client and consistent with Section 4 of the installation documentation.
2. Install dLazy CLI¶
The Skill pins the CLI version to 1.0.9. The global installation command is:
npm install -g @dlazy/cli@1.0.9
If you don’t want a global installation, you can use it per the documentation:
npx @dlazy/cli@1.0.9 <command>
For source code and package information, see github.com/dlazyai/cli and the npm package @dlazy/cli.
3. Configure the API Key¶
All requests require a dLazy API Key. It is recommended to write it into the user configuration via the CLI (on Linux/macOS this is ~/.dlazy/config.json):
dlazy auth set YOUR_API_KEY
You can also use the environment variable DLAZY_API_KEY per invocation. The Key can be obtained at dlazy.com/dashboard/organization/api-key.
Typical Usage¶
The core action on the Agent side is to execute dlazy viduq2-t2i. First check the help to confirm the current parameter names:
dlazy viduq2-t2i -h
Text-to-image example (prompt only):
dlazy viduq2-t2i --prompt 'a minimalist product photo on white background'
For image-to-image, refer to the example in the SKILL (the documentation example uses --image; the corresponding item in -h is --images. Refer to the output of dlazy viduq2-t2i -h on your local machine for confirmation):
dlazy viduq2-t2i --prompt 'prompt text' --image '/path/to/image.png'
dlazy viduq2-t2i --prompt 'prompt text' --image 'https://files.dlazy.com/image.png'
Specify aspect ratio and resolution:
dlazy viduq2-t2i --prompt 'city skyline at dusk' --aspectRatio 16:9 --resolution 2K
Before calling, you can use --dry-run to verify the payload and cost estimate; after a successful official call, result.outputs in the response will contain the image URL (hosted on files.dlazy.com).
Use Cases and Considerations¶
Who it’s for: Teams or individuals who need to quickly generate or modify images within an Agent workflow and are willing to use dLazy’s cloud billing and storage; the design-category Skill (design-media) is well-matched with scenarios where “a single sentence in a conversation needs an accompanying image.”
Limitations and considerations:
- Payment and balance: The API uses a SaaS model; when
insufficient_balanceoccurs, you need to top up at the credits settings page. - Authentication: An unconfigured or invalid Key will return
unauthorized; you need to rundlazy auth setagain or checkDLAZY_API_KEY. - Data path: Local reference images will be uploaded to dLazy’s media storage; for sensitive materials, you need to assess compliance yourself and read the dlazy.com terms of service.
- Environment dependencies: npm/npx from the Node ecosystem is required; CLI installation and API calls may fail in offline or restricted sandboxes.
- SkillHub-side information: As of the data retrieval, this Skill has a rating of 100000 and 1038 downloads; the installation record is 0 (based on SkillHub page statistics).
Conclusion¶
viduq2 t2i consolidates Vidu Q2’s text-to-image and image-to-image capabilities into an Agent-readable SKILL and a single CLI command, reducing the work of building your own HTTP client and parameter mapping tables. After installing the Skill and configuring the dLazy API Key, you can use dlazy viduq2-t2i in conversations to produce linkable image results.
Official entry points:
- API coordinate page: https://api.skillhub.cn/user_f95f21b8/dlazy-viduq2-t2i
- SkillHub display page: https://www.skillhub.cn/skills/user_f95f21b8/dlazy-viduq2-t2i