-
Notifications
You must be signed in to change notification settings - Fork 379
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
module 'google.generativeai' has no attribute 'ImageGenerationModel' for Image Generating #597
Comments
The code is from Generate images using Imagen 3 , but I think it not accurate as the current api SDK does not support image generation. I found similar example in this notebook that use |
That means currently it isn't possible to generate image by gemini api without vertext ai api? |
@mimonirbd , The model is still in early access and not generally available yet.
|
@Gunand3043 Got it, Thanks. |
Its kinda silly that the docs are nonsense. The code example throws an exception, and the API Docs make the claim that img models are usable, yet it seems they are not. I tried: from google.generativeai.vision_models import ImageGenerationModel Got this error too: The docs have been like this for weeks btw, so not sure what was the plan with this. |
Hi @MarianoMolina, Imagen 3 in the Gemini API is not publicly available yet. Stay tuned for announcements regarding the status of this feature. |
Hi everyone, @Gunand3043 is correct, Imagen is currently in an EAP. The code supporting it is in the In the future we'll be more careful about exposing docs before things are generally available. |
Any update as to when this will be available to the public? |
Bump |
Description of the bug:
I am using this script for gemini api to generate image:
Actual vs expected behavior:
I am using python 3.10 but when I run the code then showig this error:
How to fix it
Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered: