Imagen 3 sample returns HTTP 404

Hi,
I’m trying to run the following sample code from the Google AI Imagen 3 documentation - Создавайте изображения с помощью Imagen 3  |  Gemini API  |  Google AI for Developers

I’m using Python 3.12. Unfortunately, using the latest generative-ai package of the imagen branch, as instructed, returns an HTTP 404 only.

google.api_core.exceptions.NotFound: 404 models/imagen-3.0-generate-001 is not found for API version v1beta, or is not supported for predict. Call ListModels to see the list
of available models and their supported methods.

Does anyone observe same issue or has it running?

Cheers, JoKi

2 Likes

Jochen, stupid question - did you use list_models() to see if the model shows up? It isn’t in everyone’s list.

1 Like

Hi,
Yes, I noticed and requested to be added to the private preview program now.

Given I’m in the Trusted Tester program and I already have access to Imagen 3 on Vertex AI I (wrongly) assumed to have access on Google AI Studio and Gemini API, too.

Well, implementation in the Gemini SDK for .NET to support Imagen 3 is done based on the code for Vertex AI. For now, need access to test only.

1 Like