Skip to content

feat: add Veo 3.1 video generation models#751

Open
Manishcs076 wants to merge 2 commits intoMerit-Systems:masterfrom
Manishcs076:feat/add-veo-3.1-models
Open

feat: add Veo 3.1 video generation models#751
Manishcs076 wants to merge 2 commits intoMerit-Systems:masterfrom
Manishcs076:feat/add-veo-3.1-models

Conversation

@Manishcs076
Copy link
Copy Markdown

Summary

Adds support for Veo 3.1 video generation models.

Fixes #595

Models Added

  • veo-3.1-generate-preview
  • veo-3.1-fast-generate-preview

Changes

SDK:

  • packages/sdk/ts/src/supported-models/video/gemini.ts — added Veo 3.1 type + model entries
  • packages/sdk/ts/src/supported-models/video/vertex-ai.ts — added Veo 3.1 type + model entries
  • Pricing matches Veo 3.0 per Gemini API docs

Template:

  • templates/next-video-template/src/lib/types.ts — added to VideoModelOption type
  • templates/next-video-template/src/components/video-generator.tsx — added to dropdown, Veo 3.1 Fast as default
  • templates/next-video-template/src/app/api/generate-video/validation.ts — added to valid models list

5 files changed, 40 insertions, 6 deletions.

Adds support for veo-3.1-generate-preview and veo-3.1-fast-generate-preview
to the router SDK and video template.

SDK:
- Added Veo 3.1 models to Gemini video models (gemini.ts)
- Added Veo 3.1 models to Vertex AI video models (vertex-ai.ts)
- Pricing matches Veo 3.0 per Gemini API docs

Template:
- Added Veo 3.1 Fast and Veo 3.1 to model dropdown
- Set Veo 3.1 Fast as default selection
- Updated validation to accept new model strings

Fixes Merit-Systems#595
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 27, 2026

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

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

TypeScript compilation error due to mismatched model type in vertex.ts function signature - it only accepts Veo 3.0 models but is called with VideoModelOption that includes Veo 3.1 models.

Fix on Vercel

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

2 participants