feat(provider/google): add support for gemini-3.1-flash-image-preview#12883
Merged
felixarntz merged 4 commits intomainfrom Feb 26, 2026
Merged
feat(provider/google): add support for gemini-3.1-flash-image-preview#12883felixarntz merged 4 commits intomainfrom
felixarntz merged 4 commits intomainfrom
Conversation
dancer
approved these changes
Feb 26, 2026
Contributor
|
|
felixarntz
added a commit
that referenced
this pull request
Feb 26, 2026
…ge-preview (#12885) This is an automated backport of #12883 to the release-v5.0 branch. FYI @felixarntz This backport has conflicts that need to be resolved manually. ### `git cherry-pick` output ``` Auto-merging content/providers/01-ai-sdk-providers/15-google-generative-ai.mdx CONFLICT (content): Merge conflict in content/providers/01-ai-sdk-providers/15-google-generative-ai.mdx Auto-merging content/providers/01-ai-sdk-providers/16-google-vertex.mdx CONFLICT (content): Merge conflict in content/providers/01-ai-sdk-providers/16-google-vertex.mdx CONFLICT (file location): examples/ai-functions/src/generate-image/google/gemini-3-1-flash-image.ts added in 45f0a7f (feat(provider/google): add support for gemini-3.1-flash-image-preview (#12883)) inside a directory that was renamed in HEAD, suggesting it should perhaps be moved to examples/ai-core/src/generate-image/gemini-3-1-flash-image.ts. CONFLICT (file location): examples/ai-functions/src/generate-text/google/gemini-3-1-flash-image-output.ts added in 45f0a7f (feat(provider/google): add support for gemini-3.1-flash-image-preview (#12883)) inside a directory that was renamed in HEAD, suggesting it should perhaps be moved to examples/ai-core/src/generate-text/gemini-3-1-flash-image-output.ts. Auto-merging packages/gateway/src/gateway-language-model-settings.ts Auto-merging packages/google-vertex/src/google-vertex-image-settings.ts CONFLICT (content): Merge conflict in packages/google-vertex/src/google-vertex-image-settings.ts Auto-merging packages/google/src/google-generative-ai-image-settings.ts CONFLICT (content): Merge conflict in packages/google/src/google-generative-ai-image-settings.ts Auto-merging packages/google/src/google-generative-ai-options.ts CONFLICT (content): Merge conflict in packages/google/src/google-generative-ai-options.ts error: could not apply 45f0a7f... feat(provider/google): add support for gemini-3.1-flash-image-preview (#12883) hint: After resolving the conflicts, mark them with hint: "git add/rm <pathspec>", then run hint: "git cherry-pick --continue". hint: You can instead skip this commit with "git cherry-pick --skip". hint: To abort and get back to the state before "git cherry-pick", hint: run "git cherry-pick --abort". hint: Disable this message with "git config set advice.mergeConflict false" ``` --------- Co-authored-by: Felix Arntz <felix.arntz@vercel.com>
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
Google released
gemini-3.1-flash-image-preview, a new Gemini image model:Summary
Adds
gemini-3.1-flash-image-previewto the model ID type unions in google, google-vertex, and gateway packages (both language model and image model ID lists). Updates documentation capability tables for both providers. Adds twoai-functionsexamples: one usinggenerateImage, one usinggenerateTextwith multimodal output.Manual Verification
Model ID additions are type-only changes. Examples can be verified by running:
Checklist
pnpm changesetin the project root)Future Work
N/A
Related Issues
Fixes #12882