← 返回
内容创作 Key 中文

Veo 3 Video Gen (Gemini API)

Generate and stitch short videos via Google Veo 3.x using the Gemini API (google-genai). Use when you need to create video clips from prompts (ads, UGC-style clips, product demos) and want a reproducible CLI workflow (generate, poll, download MP4, optionally stitch multiple segments).
通过Gemini API调用Google Veo 3.x生成并拼接短视频。适用于从提示词生成视频(广告、UGC短片、产品演示),并提供可复现的CLI工作流(生成、轮询、下载MP4、可选拼接多片段)。
bluelyw
内容创作 clawhub v0.1.0 1 版本 99713.5 Key: 需要
★ 2
Stars
📥 4,136
下载
💾 768
安装
1
版本
#latest

概述

Veo 3 Video Generation (Gemini API)

Use the bundled script to generate an MP4 from a text prompt.

Generate (text → video)

uv run {baseDir}/scripts/generate_video.py \
  --prompt "A close up of ..." \
  --filename "out.mp4" \
  --model "veo-3.1-generate-preview" \
  --aspect-ratio "9:16" \
  --poll-seconds 10

Generate a longer video by stitching segments

Veo commonly outputs ~8s clips per request. Use --segments to generate multiple clips and concatenate them with ffmpeg.

Important: This skill sends one prompt per segment (one Veo request per segment). Use --base-style to keep style consistent across segments.

uv run {baseDir}/scripts/generate_video.py \
  --prompt "Same scene, consistent style..." \
  --filename "out-24s.mp4" \
  --model "veo-3.1-generate-preview" \
  --aspect-ratio "9:16" \
  --segments 3 \
  --segment-style continuation

Options:

  • --base-style "...": prepended to every segment prompt (recommended).
  • --segment-prompt "..." (repeatable): provide one prompt per segment (overrides --prompt).
  • --segment-style continuation (default): appends continuity instructions per segment (only when using --prompt).
  • --segment-style same: uses the exact same prompt for each segment (only when using --prompt).
  • --use-last-frame: for segment >=2, extract previous segment last frame and pass it as lastFrame for continuity.
  • --emit-segment-media: print MEDIA: for each segment as it finishes (useful for progress).
  • --keep-segments: keep intermediate *.segXX.mp4 files.
  • --reference-image path.jpg (repeatable): guide generation with product/style references.

Requirements

  • GEMINI_API_KEY env var (or --api-key).
  • ffmpeg on PATH when using --segments > 1.

Troubleshooting

  • 429/RESOURCE_EXHAUSTED: API key has no quota/billing for video.
  • 503/UNAVAILABLE: model overloaded; retry later.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 11:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,144
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,433
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,422