Skip to content

feat(veo): add Veo 3.1 model support#733

Open
CharlesWong wants to merge 1 commit intoMerit-Systems:masterfrom
CharlesWong:feat/veo-3-1-support
Open

feat(veo): add Veo 3.1 model support#733
CharlesWong wants to merge 1 commit intoMerit-Systems:masterfrom
CharlesWong:feat/veo-3-1-support

Conversation

@CharlesWong
Copy link
Copy Markdown

Adds support for Veo 3.1 models in the Vertex AI veo provider.

Changes

  • Added veo-3.1-generate-preview and veo-3.1-fast-generate-preview to VertexAIVideoModels with pricing
  • Updated VertexAIVideoModel type union to include both new Veo 3.1 models
  • Added Veo 3.1 models to the VEO_MODELS list in VertexAIProvider (renamed from VEO3_MODELS for future-proofing; likewise isVeoModel replaces isVeo3Model)
  • Updated VideoModelOption type in the Next.js template to include Veo 3.1 variants
  • Updated request validation to accept Veo 3.1 model IDs
  • Updated handleGeminiGenerate function signature to accept Veo 3.1 models
  • Added Veo 3.1 models to the video generator component model list
  • Set veo-3.1-fast-generate-preview as the default model in the Next.js video template

Pricing

Veo 3.1 pricing matches Veo 3.0 (per Vertex AI pricing docs):

  • veo-3.1-generate-preview: $0.40/second with audio, $0.20/second without audio
  • veo-3.1-fast-generate-preview: $0.15/second with audio, $0.10/second without audio

Closes #595

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 11, 2026

@CharlesWong is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

@CharlesWong CharlesWong force-pushed the feat/veo-3-1-support branch from ad73021 to 07da919 Compare April 2, 2026 20:43
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CharlesWong CharlesWong force-pushed the feat/veo-3-1-support branch from 07da919 to 20aa06c Compare April 2, 2026 20:44
@CharlesWong
Copy link
Copy Markdown
Author

Updated: Added Gemini SDK support and improved model ordering

Changes in this update:

  • Added Veo 3.1 models to packages/sdk/ts/src/supported-models/video/gemini.ts — previously we only covered vertex-ai.ts, now Gemini provider also has veo-3.1-generate-preview and veo-3.1-fast-generate-preview with correct pricing
  • Refactored vertex.ts to use VideoModelOption type import instead of inline union type (cleaner, DRY)
  • Reordered model lists — Veo 3.1 models now appear first in types.ts, validation.ts, video-generator.tsx, and gemini.ts since they are the latest models
  • Default model changed to veo-3.1-fast-generate-preview
  • Rebased onto latest upstream/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Veo 3.1 in the veo provider

1 participant