Skip to content

feat (providers/google): add Imagen 3 image models #6463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 14, 2025

Conversation

psinha40898
Copy link
Contributor

@psinha40898 psinha40898 commented May 23, 2025

Background

This change adds support for Google's image generation models that are available through the Google Gen AI API.

Imagen 3 is now available through the Google provider.

Summary

Added image generation support to the Google provider by implementing:

  • Support for Google's Imagen models (imagen-3.0-generate-002)
  • Added ImageModelv2 implementation for Google Provider, including tests and documentation

Verification

I manually tested the implementation by:

  • Creating a simple script to test parameters accepted by the Google Gen API relative to the documentation
  • Running examples using workspace provider
  • Running examples that I put in the docs

Tasks

  • 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)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)

Future Work

  • Add support for additional Google image models as they become available on the Generative AI API

Related Issues

Fixes #6408

@psinha40898 psinha40898 changed the title Pyush/google/add image models feat(providers/google): add Imagen 3 image models May 23, 2025
@psinha40898 psinha40898 changed the title feat(providers/google): add Imagen 3 image models feat(provider/google): add Imagen 3 image models May 23, 2025
@psinha40898 psinha40898 force-pushed the pyush/google/add-image-models branch from 753c558 to 9583430 Compare May 23, 2025 20:03
@psinha40898 psinha40898 changed the title feat(provider/google): add Imagen 3 image models feat (providers/google): add Imagen 3 image models May 24, 2025
@psinha40898
Copy link
Contributor Author

psinha40898 commented Jul 3, 2025

When I made this PR I believe it was against main when main was v4. I believe main is v5 now so this PR looks like this now.

Should I make another against v5 @lgrammel?

Thank you!

@lgrammel
Copy link
Collaborator

lgrammel commented Jul 3, 2025

Please rebase this against the current main (formerly v5). Thank you!

@psinha40898 psinha40898 force-pushed the pyush/google/add-image-models branch from 9bb8d68 to 63e2199 Compare July 4, 2025 02:25
@psinha40898
Copy link
Contributor Author

psinha40898 commented Jul 4, 2025

Please rebase this against the current main (formerly v5). Thank you!

Done. Thanks again for this amazing project

@psinha40898
Copy link
Contributor Author

psinha40898 commented Jul 11, 2025

@lgrammel
Hey sorry is something blocking this, or perhaps I overlooked something?

Would be really cool for me to get something useful in to the AI SDK that I love to use every day!

Thanks so much!

@lgrammel lgrammel merged commit 8af9e03 into vercel:main Jul 14, 2025
8 of 9 checks passed
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.

Add imagen 3 to google.image()
2 participants