Skip to content

Add Veo 3.1 video model support#784

Open
AvantBras wants to merge 4 commits into
Merit-Systems:masterfrom
AvantBras:fix/veo-3-1-support
Open

Add Veo 3.1 video model support#784
AvantBras wants to merge 4 commits into
Merit-Systems:masterfrom
AvantBras:fix/veo-3-1-support

Conversation

@AvantBras
Copy link
Copy Markdown

Summary

Adds Vertex AI Veo 3.1 video model support for:

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

Updates the router allowlist/pricing model definitions and the Next video
template model picker/default/validation/types.

/claim #595

Verification

  • pnpm -C packages/sdk/ts run type-check
  • pnpm exec tsc --noEmit from templates/next-video-template
  • pnpm exec prettier --check packages/app/server/src/providers/VertexAIProvider.ts packages/sdk/ts/src/supported-models/video/vertex-ai.ts templates/next-video-template/src/app/api/generate-video/validation.ts templates/next-video-template/src/app/api/generate-video/vertex.ts templates/next-video-template/src/components/video-generator.tsx templates/next-video-template/src/lib/types.ts

Note

pnpm -C packages/app/server run type-check reaches an existing unrelated
server type error after Prisma generation:

src/utils.ts(2,3): Module '"types"' declares 'ExactEvmPayloadAuthorization' locally, but it is not exported.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 10, 2026

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

A member of the Team first needs to authorize it.

@AvantBras AvantBras marked this pull request as ready for review May 10, 2026 21:38
Copilot AI review requested due to automatic review settings May 10, 2026 21:38
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for the new Vertex AI Veo 3.1 video model IDs across the Echo router + TS SDK pricing definitions, and updates the Next video template to expose/select/validate the new models.

Changes:

  • Added veo-3.1-fast-generate-preview and veo-3.1-generate-preview to the Next video template model types, UI picker, default selection, and request validation.
  • Added Veo 3.1 models (and pricing entries) to the TypeScript SDK’s supported Vertex AI video model list.
  • Updated the server-side Vertex AI provider model list to include Veo 3.1 IDs.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
templates/next-video-template/src/lib/types.ts Extends VideoModelOption with Veo 3.1 model IDs.
templates/next-video-template/src/components/video-generator.tsx Adds Veo 3.1 options to the UI and makes 3.1 Fast the default selection.
templates/next-video-template/src/app/api/generate-video/vertex.ts Expands accepted model union to include Veo 3.1.
templates/next-video-template/src/app/api/generate-video/validation.ts Adds Veo 3.1 to the request allowlist validation.
packages/sdk/ts/src/supported-models/video/vertex-ai.ts Adds Veo 3.1 to supported Vertex AI video models and pricing definitions.
packages/app/server/src/providers/VertexAIProvider.ts Adds Veo 3.1 model IDs to the provider’s Veo model list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/sdk/ts/src/supported-models/video/vertex-ai.ts Outdated
Comment on lines 21 to 26
const VEO3_MODELS = [
'veo-3.1-fast-generate-preview',
'veo-3.1-generate-preview',
'veo-3.0-fast-generate-preview',
'veo-3.0-generate-preview',
];
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I don't feel like I am in a position to make a decision here since I don't know the future veo model naming patterns.

Comment thread templates/next-video-template/src/app/api/generate-video/vertex.ts Outdated
AvantBras and others added 3 commits May 10, 2026 23:42
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants