feat(provider/google-vertex): allow using Gemini image models with generateImage#12502
Merged
felixarntz merged 7 commits intomainfrom Feb 12, 2026
Merged
Conversation
gr2m
reviewed
Feb 12, 2026
.changeset/gentle-cats-stare.md
Outdated
| @@ -0,0 +1,7 @@ | |||
| --- | |||
| '@ai-sdk/google-vertex': patch | |||
| '@example/ai-functions': patch | |||
Collaborator
There was a problem hiding this comment.
do not add @example/* packages to changeset.
If we don't have that in our skill yet we should
Collaborator
Author
There was a problem hiding this comment.
ah, good to know! I have done that several times before - noted for the future.
gr2m
approved these changes
Feb 12, 2026
Collaborator
gr2m
left a comment
There was a problem hiding this comment.
look at the other comments, but otherwise good to go 👍🏼
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Follow-up to #12252 (which added Gemini image generation to the
googleprovider). This wasn't yet wired up for thegoogle-vertexprovider.Summary
google-vertex'sgenerateImage(). When agemini-*model ID is detected, the image model internally delegates toGoogleGenerativeAILanguageModelwithresponseModalities: ['IMAGE'], matching the approach used in thegoogleprovider. Existing Imagen model behavior is unchanged.generateImagecapability forgoogle-vertexgoogleandgoogle-verteximage models to usesatisfies GoogleLanguageModelOptionsManual Verification
Ran
google-vertex-gemini-image.tsandgoogle-vertex-gemini-editing.tsexamples against Vertex AI with real credentials. Both image generation and image editing produce correct results.Checklist
pnpm changesetin the project root)Future Work
N/A
Related Issues
Fixes #12452