360 Secure SkillHub
360 安全技能中心

Google vertex video adc

通过 Google Cloud SDK 的应用默认凭据调用 Vertex AI 的 predictLongRunning(Veo)接口,把文本提示或参考图片生成为视频并写入指定输出路径;支持指定项目、区域、模型,以及宽高比、时长、分辨率和是否生成音频等参数。

分类:创作
neogeosnk
neogeosnk
热度 14.07
最近更新 2026-06-16 17:40:48

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add neogeosnk/vertex-video-adc
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
vertex-video-adc
description
Generate videos via Google Cloud Vertex AI predictLongRunning (Veo) using Application Default Credentials (ADC).
homepage
https://cloud.google.com/vertex-ai
metadata
{"openclaw":{"emoji":"🎬","requires":{"binaries":["gcloud","curl"]}}}

Google Cloud Vertex AI Video Generator (ADC)

This skill utilizes the Google Cloud SDK (gcloud) and application credentials to call the Google Cloud Vertex AI predictLongRunning (Veo) endpoint, generating videos from text prompts or reference images.

Workflow

  1. Configure required environment variables or parameters:
    • GOOGLE_CLOUD_PROJECT: Your Google Cloud Project ID.
    • GOOGLE_CLOUD_LOCATION (Optional): Location/region (defaults to us-central1).
    • GOOGLE_CLOUD_MODEL (Optional): Model name (defaults to veo-3.1-generate-001).
  2. Construct/save prompt to a local text file.
  3. Call the generation script.

Commands

Text-to-Video

python3 {baseDir}/scripts/video_harness.py --prompt-file <prompt_path> --out <output_path>

Image-to-Video

Provide an optional reference image:

python3 {baseDir}/scripts/video_harness.py --prompt-file <prompt_path> --image <image_path> --out <output_path>

Advanced Usage

  • Specify custom project, location, and model:
python3 {baseDir}/scripts/video_harness.py --prompt-file <prompt_path> --out <output_path> --project <project_id> --location <location> --model <model>
  • Custom resolution/aspect ratio/duration/audio generation:
python3 {baseDir}/scripts/video_harness.py --prompt-file <prompt_path> --out <output_path> --aspect-ratio 16:9 --duration 5 --resolution 720p --generate-audio false

Setup & Requirements

  • Google Cloud SDK (gcloud CLI) installed and available in $PATH.
  • Active authentication token:
    • Default ADC mode: gcloud auth application-default login
    • User-token mode: gcloud auth login
  • The system must have curl installed to issue the API request.