Skip to content

feat(provider/google): add support for new Google image model aspect ratios and sizes#12897

Merged
felixarntz merged 3 commits intomainfrom
add-new-gemini-3-image-aspect-ratios
Feb 26, 2026
Merged

feat(provider/google): add support for new Google image model aspect ratios and sizes#12897
felixarntz merged 3 commits intomainfrom
add-new-gemini-3-image-aspect-ratios

Conversation

@felixarntz
Copy link
Copy Markdown
Collaborator

Background

With the launch of Gemini 3.1 Image, a few new image aspect ratios and one new size were introduced.

Reference from the source: googleapis/python-genai@8b2a4e0

Summary

Adds the new image aspect ratios.

Manual Verification

Run the updated example.

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Future Work

N/A

Related Issues

N/A

@felixarntz felixarntz changed the title feat(provider/google): add support for new Google image model aspect ratios feat(provider/google): add support for new Google image model aspect ratios and sizes Feb 26, 2026
@tigent tigent bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label feature New feature or request provider/google Issues related to the @ai-sdk/google provider labels Feb 26, 2026
@felixarntz felixarntz added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Feb 26, 2026
@felixarntz felixarntz enabled auto-merge (squash) February 26, 2026 18:22
@felixarntz felixarntz merged commit 1ece97a into main Feb 26, 2026
30 checks passed
@felixarntz felixarntz deleted the add-new-gemini-3-image-aspect-ratios branch February 26, 2026 18:23
vercel-ai-sdk bot pushed a commit that referenced this pull request Feb 26, 2026
@vercel-ai-sdk vercel-ai-sdk bot removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label Feb 26, 2026
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

vercel-ai-sdk bot commented Feb 26, 2026

⚠️ Backport to release-v5.0 created but has conflicts: #12898

@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

vercel-ai-sdk bot commented Feb 26, 2026

🚀 Published in:

Package Version
@ai-sdk/google 3.0.33
@ai-sdk/google-vertex 4.0.65

felixarntz added a commit that referenced this pull request Feb 26, 2026
…el aspect ratios and sizes (#12898)

This is an automated backport of #12897 to the release-v5.0 branch. FYI
@felixarntz
~~This backport has conflicts that need to be resolved manually.~~
Conflicts resolved.

### `git cherry-pick` output

```
CONFLICT (modify/delete): examples/ai-functions/src/generate-image/google/gemini-3-1-flash-image.ts deleted in HEAD and modified in 1ece97a (feat(provider/google): add support for new Google image model aspect ratios and sizes (#12897)).  Version 1ece97a (feat(provider/google): add support for new Google image model aspect ratios and sizes (#12897)) of examples/ai-functions/src/generate-image/google/gemini-3-1-flash-image.ts left in tree.
Auto-merging packages/google/src/google-generative-ai-options.ts
error: could not apply 1ece97a... feat(provider/google): add support for new Google image model aspect ratios and sizes (#12897)
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label feature New feature or request provider/google Issues related to the @ai-sdk/google provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants