veo-build
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVeo Video Generation and Editing
Veo 视频生成与编辑
This skill provides comprehensive workflows for using Google's Veo models (Veo 2 and Veo 3) via the Python SDK.
google-genai本Skill提供了通过 Python SDK使用Google Veo模型(Veo 2和Veo 3)的完整工作流程。
google-genaiQuick Start Setup
快速开始设置
All Veo operations require the library and an authenticated client with Vertex AI enabled.
google-genaipython
from google import genai
from google.genai import types
import os
PROJECT_ID = os.environ.get("GOOGLE_CLOUD_PROJECT")
LOCATION = os.environ.get("GOOGLE_CLOUD_REGION", "us-central1")
client = genai.Client(vertexai=True, project=PROJECT_ID, location=LOCATION)所有Veo操作都需要库以及启用了Vertex AI的已认证客户端。
google-genaipython
from google import genai
from google.genai import types
import os
PROJECT_ID = os.environ.get("GOOGLE_CLOUD_PROJECT")
LOCATION = os.environ.get("GOOGLE_CLOUD_REGION", "us-central1")
client = genai.Client(vertexai=True, project=PROJECT_ID, location=LOCATION)Reference Materials
参考资料
- Generation (Veo 3): Text-to-Video, Image-to-Video.
- Editing (Veo 2): Inpainting, Masking.
- Advanced Controls: Frame Interpolation, Video Extension, Reference Images.
- Prompting Guide: Camera angles, visual styles, and best practices.
- Source Code: Deep inspection of SDK internals (,
models.py).types.py
- 生成(Veo 3): Text-to-Video、Image-to-Video。
- 编辑(Veo 2): Inpainting、Masking。
- 高级控制: Frame Interpolation、Video Extension、Reference Images。
- 提示词指南: 相机角度、视觉风格及最佳实践。
- 源代码: 深入查看SDK内部实现(、
models.py)。types.py
Available Workflows
可用工作流程
1. Video Generation (Veo 3)
1. 视频生成(Veo 3)
Create new videos from text or image prompts.
- Text-to-Video: Create videos from detailed text descriptions.
- Image-to-Video: Animate static images.
- Prompt Engineering: Optimization keywords for camera, lighting, and style.
通过文本或图像提示创建新视频。
- Text-to-Video: 通过详细的文本描述创建视频。
- Image-to-Video: 将静态图像制作成动画。
- 提示词优化: 针对相机、光线和风格的优化关键词。
2. Video Editing (Veo 2)
2. 视频编辑(Veo 2)
Modify existing videos using masks (Inpainting).
- Remove Objects: Erase dynamic or static objects.
- Insert Objects: Add new elements into a scene.
使用蒙版(Inpainting)修改现有视频。
- 移除对象: 删除动态或静态对象。
- 插入对象: 在场景中添加新元素。
3. Advanced Controls (Veo 3)
3. 高级控制(Veo 3)
Specialized generation tasks for precise control.
- Frame Interpolation: Generate video bridging two images (first & last frame).
- Video Extension: Extend the duration of an existing video clip.
- Reference-to-Video: Use specific asset images (subjects, products) to guide generation.
用于精准控制的专业生成任务。
- Frame Interpolation: 生成连接两张图像(第一帧和最后一帧)的视频。
- Video Extension: 延长现有视频片段的时长。
- Reference-to-Video: 使用特定资源图像(主体、产品)引导视频生成。