Open mimonirbd opened 1 month ago
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 ImageGenerationModel
from vertexai.preview.vision_models
. it does make sense as the output is vertexai.preview.vision_models.GeneratedImage
object.
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.
Preview: Imagen 3 in the Gemini API is available as an early access release in private preview. It's not yet generally available.
@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:
File "/usr/local/lib/python3.10/site-packages/google/generativeai/vision_models/_vision_models.py", line 695, in
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 imagen
branch, but if you're not part of the EAP you won;'t be able to access it.
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