When attempting to use imagen-3.0-fast-generate-001 I get the error
ClientError: 404 NOT_FOUND. {'error': {'code': 404, 'message': 'models/imagen-3.0-fast-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.', 'status': 'NOT_FOUND'}}
Steps to reproduce
from google import genai
from google.genai import types
from PIL import Image
from io import BytesIO
import base64
client = genai.Client(api_key='###')
response = client.models.generate_images(
#model='imagen-3.0-generate-002',
model = 'imagen-3.0-fast-generate-001',
prompt= "give me an image backdrop for a childrens book. The premise is santa clause hires new helpers. ",
config=types.GenerateImagesConfig(
number_of_images= 1,
)
)
Note that if I change the model id to imagen-3.0-generate-002, it works fine. According to this documentation
https://cloud.google.com/vertex-ai/generative-ai/docs/models#imagen-models
imagen-3.0-fast-generate-001 should be generally available, so not sure why it isn't working.
When attempting to use
imagen-3.0-fast-generate-001I get the errorSteps to reproduce
Note that if I change the model id to
imagen-3.0-generate-002, it works fine. According to this documentationhttps://cloud.google.com/vertex-ai/generative-ai/docs/models#imagen-models
imagen-3.0-fast-generate-001should be generally available, so not sure why it isn't working.