Skip to content

feat(go/plugins/googlegenai): register Veo 3.1 models#5183

Merged
cabljac merged 1 commit intomainfrom
feat/go-googlegenai-veo-3-1
May 7, 2026
Merged

feat(go/plugins/googlegenai): register Veo 3.1 models#5183
cabljac merged 1 commit intomainfrom
feat/go-googlegenai-veo-3-1

Conversation

@cabljac
Copy link
Copy Markdown
Contributor

@cabljac cabljac commented Apr 23, 2026

Summary

Adds the four Veo 3.1 video-generation models to the Go googlegenai plugin so they resolve through the existing background-model / `GenerateOperation` flow.

  • GoogleAI: `veo-3.1-generate-preview`, `veo-3.1-fast-generate-preview` (both `ModelStageUnstable`)
  • VertexAI: `veo-3.1-generate-001`, `veo-3.1-fast-generate-001` (both `ModelStageStable`)

All four entries reuse the existing `VeoSupports` capability set — no plumbing changes required because the background-model routing already keys off the Veo classification (`ModelTypeVeo` in `model_type.go`).

This also fixes a latent reference: `go/samples/veo/main.go` on `main` already hard-codes `googleai/veo-3.1-generate-preview` as its model, so the sample would fail at startup until these registrations land.

Test plan

  • `go build ./...`
  • `go vet ./...`
  • `go test ./plugins/googlegenai/...`
  • Live smoke test against GoogleAI: run the `text-to-video` flow in `go/samples/veo` with `GOOGLE_API_KEY` set, confirm `veo-3.1-generate-preview` returns a playable video (requires Veo access).
  • Live smoke test against VertexAI: set model name to `vertexai/veo-3.1-generate-001` in the same sample and re-run with `GOOGLE_CLOUD_PROJECT` + `GOOGLE_CLOUD_LOCATION`.

Follow-ups (not in this PR)

  • Adding Dev UI flows for each new model (the current sample exercises only the default flow) would make manual testing easier — happy to add in a follow-up if reviewers want it here instead.

Adds the four Veo 3.1 video-generation models to the googlegenai plugin
so they resolve through the existing background-model / GenerateOperation
flow:

- GoogleAI: veo-3.1-generate-preview, veo-3.1-fast-generate-preview
- VertexAI: veo-3.1-generate-001, veo-3.1-fast-generate-001

Preview variants are marked Unstable, GA variants Stable. Uses the
existing VeoSupports capability set — no plumbing changes required.

Fixes the latent reference in go/samples/veo/main.go, which already
pointed at googleai/veo-3.1-generate-preview.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for Veo 3.1 models, including stable versioned models and unstable preview versions, by defining new constants and updating the model registration configurations. I have no feedback to provide.

Copy link
Copy Markdown
Member

@CorieW CorieW left a comment

Choose a reason for hiding this comment

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

image

Download works. Lgtm

@CorieW CorieW marked this pull request as ready for review May 5, 2026 15:38
@CorieW CorieW requested a review from apascal07 May 5, 2026 17:05
@cabljac cabljac merged commit 41a7c88 into main May 7, 2026
9 checks passed
@cabljac cabljac deleted the feat/go-googlegenai-veo-3-1 branch May 7, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants