Veo 3.1: Invoking Google Veo 3.1 in Agents to Generate Cinematic Videos

Introduction

The common approach for video creation in an IDE or conversational Agent involves opening a separate console, manually writing HTTP requests, or switching to third-party web pages. This makes it difficult to integrate prompts, reference images, and parameters with the current task context. If you want an Agent to directly initiate text-to-video and image-to-video generation within a conversation and return the results as downloadable URLs, you need a well-defined Skill specification, rather than scattered API documentation.

Below is an introduction to the SkillHub community skill veo 3.1 (coordinates @user_f95f21b8/dlazy-veo-3-1): it encapsulates Google Veo 3.1’s generation capabilities into a universal SKILL.md format and calls hosted APIs via the dLazy CLI. It is designed for developers who already have an API key and want to drive video generation with natural language in clients like Cursor.

What Is This

veo 3.1 is positioned as a tool that uses Google Veo 3.1 to generate high-quality, cinematic-style videos, supporting both text-to-video and image-to-video (as stated in the Skill’s Chinese documentation).

  • Release channel: SkillHub, source marked as community, publisher account is user_f95f21b8, current version 1.0.9, category design-media.
  • Runtime dependencies: The Skill metadata requires npm / npx on the local machine, as well as the installation or on-demand invocation of @dlazy/cli@1.0.9; the CLI is maintained by dlazyai, with source code available at github.com/dlazyai/cli.
  • Authentication: SkillHub tag requires_api_key=true; actual requests use the dLazy API Key, written to ~/.dlazy/config.json via dlazy auth set, or passed via the environment variable DLAZY_API_KEY.

The Skill itself is a thin wrapper around dLazy hosted APIs (api.dlazy.com, files.dlazy.com): prompts and parameters are sent to the API, local image paths are uploaded to media storage by the CLI, and generation results are returned as URLs.

Core Features

The following capabilities all come from the Skill’s included SKILL.md / SKILL-cn.md; capabilities not appearing in the documentation are not listed here.

  1. Text-driven generation: Submit a prompt via --prompt (required).
  2. Two generation modes (--generation_mode, default frames):
    - frames: First-frame / last-frame image-to-video (--firstFrame, --lastFrame).
    - components: Up to 3 reference images (--images).
  3. Aspect ratio and resolution: --size supports 16:9, 9:16; --resolution supports 720P, 1080P, 4K.
  4. Debugging and async: --dry-run can print the request body and cost estimate without actually calling; --no-wait immediately returns generateId, which can be polled via dlazy status <generateId> --wait; --timeout defaults to a maximum wait of 1800 seconds.
  5. Agent-side conventions: Trigger words include veo 3.1, generate video, text-to-video / image-to-video, etc.; execution results are returned as a JSON envelope (tool: "veo-3.1", modelId: "veo_3_1").

SkillHub page statistics (based on the fetched data): rating 100000, downloads 1058, install count 0 (platform display field, does not indicate whether it is installed locally).

Installation and Activation

Installation is in two layers: first install the Skill into the Agent’s skills directory, then prepare the dLazy CLI and API key.

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, you can follow SkillHub’s official instructions to perform a full installation or install only the CLI:

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

2. Install veo 3.1 to the current Agent’s skills directory

The installation prompt provided on the SkillHub page is: according to skillhub.cn/install/skillhub.md, install coordinates @user_f95f21b8/dlazy-veo-3-1. Command-line example:

skillhub install @user_f95f21b8/dlazy-veo-3-1 --dir <your Agent skills directory>

Common paths (from SkillHub installation documentation):

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

--dir must point to the directory actually recognized by the current client; otherwise, the Skill will not be loaded.

You can also send the following prompt to an AI that supports Skills, and it will complete the installation according to the official installation documentation:

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

3. Install dLazy CLI and configure the key

Global installation (consistent with the version pinned in the Skill metadata):

npm install -g @dlazy/cli@1.0.9

Or invoke on demand without persisting the global package:

npx @dlazy/cli@1.0.9 <command>

Configure the API key (obtained at dlazy.com/dashboard/organization/api-key):

dlazy auth set YOUR_API_KEY

After the above steps, once the Agent reads the Skill, it should execute dlazy veo-3.1 to complete the actual generation; system prompts in OpenClaw-style clients also point to dlazy veo-3.1 -h for help.

Typical Usage

First, view the complete parameters (the Agent should execute according to the Skill’s requirements):

dlazy veo-3.1 -h

Examples from the Skill documentation (original parameter names preserved; the complete list of options is based on -h):

# Basic invocation
dlazy veo-3.1 --prompt 'prompt content' --image '/path/to/image.png'

# Using a remote image URL
dlazy veo-3.1 --prompt 'prompt content' --image 'https://files.dlazy.com/image.png'

For pure text-to-video, at least provide --prompt; for image-to-video, select frames (first/last frame) or components (multiple --images) according to generation_mode. Before submitting, you can use --dry-run to verify the payload and estimated cost.

On success, the return structure is similar to:

{
  "ok": true,
  "result": {
    "tool": "veo-3.1",
    "modelId": "veo_3_1",
    "outputs": [
      {
        "type": "image",
        "id": "o_xxxxxxxx",
        "url": "https://files.dlazy.com/result.png",
        "mimeType": "image/png"
      }
    ]
  }
}

(The example JSON is excerpted from the Skill documentation; the actual type / mimeType are based on the API’s response.)

Applicable Scenarios and Notes

Who it is for

  • Users who already have a dLazy account and are willing to pay on an as-you-go basis with an API key.
  • Teams who want to trigger Veo 3.1 text-to-video / image-to-video through conversation in environments like Cursor, Claude Code, and Codex, rather than manually writing curl every time.

Limitations and notes

  1. Network and compliance: Requests are sent to the dLazy cloud, and local media is uploaded to files.dlazy.com; you need to accept its terms of service and content safety policy (on failure, the backend may return a message like “Prompt violates safety policy”).
  2. Balance: code: "insufficient_balance" indicates insufficient credits, which must be handled at the dlazy.com recharge page.
  3. Authentication failure: When unauthorized occurs, check whether the key has been configured via dlazy auth set or DLAZY_API_KEY.
  4. Version binding: Skill 1.0.9 and CLI 1.0.9 are paired; before upgrading either side, it is recommended to check the new version notes on SkillHub.

Conclusion

veo 3.1 consolidates Google Veo 3.1’s generation workflow into an Agent-readable Skill plus the dlazy veo-3.1 command: install coordinates, configure the dLazy key, and describe the scene in the conversation to initiate a task. Official entry points:

For more information on the CLI and billing, see dlazy.com.

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

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

Xiaoye