Google vertex video adc
Generate videos via Google Cloud Vertex AI predictLongRunning (Veo) using Application Default Credentials (ADC).
Latest: v1.0.0
Initial release: Generate videos using Google Cloud Vertex AI (Veo) via Application Default Credentials.
- Supports text-to-video and image-to-video generation from prompt files.
- Uses the
gcloudCLI andcurlfor API access and authentication. - Allows custom project, location, model, resolution, aspect ratio, duration, and audio settings.
- Requires Google Cloud SDK and
curlto be installed. - Simple CLI workflow for prompt handling and video generation.
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
- Configure required environment variables or parameters:
GOOGLE_CLOUD_PROJECT: Your Google Cloud Project ID.GOOGLE_CLOUD_LOCATION(Optional): Location/region (defaults tous-central1).GOOGLE_CLOUD_MODEL(Optional): Model name (defaults toveo-3.1-generate-001).
- Construct/save prompt to a local text file.
- 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 (
gcloudCLI) installed and available in$PATH. - Active authentication token:
- Default ADC mode:
gcloud auth application-default login - User-token mode:
gcloud auth login
- Default ADC mode:
- The system must have
curlinstalled to issue the API request.
