Gemini 2.0 can't be found within the Models list

,

Hi, everyone!
I’m trying to use Batch Prediction, following the guide

I receive an error:

The PublisherModel gemini-2.0-flash-001 does not exist, or may have been moved. Please try to search for the model in Model Garden

I know:

  • I authorized to Google via: gcloud auth application-default login
  • I’m 100% sure, that this model exist in the Garden.
  • I have activated following APIs: Activated Google APIs
  • I used following snippet to create a Client instance:
gemini_client = genai.Client(
   vertexai=True,
   http_options=HttpOptions(api_version="v1"),
   project=bigquery_client.project,
   location=bigquery_client.location
)

output_table = f"{input_table.project}.{input_table.dataset_id}.ai_response__{int(dt.datetime.now().timestamp())}"

job = gemini_client.batches.create(
    model=gemini.name,
    src=f"bq://{input_table.project}.{input_table.dataset_id}.{input_table.table_id}",
    config=CreateBatchJobConfig(dest=f"bq://{output_table}"),
)

:red_exclamation_mark:It might be important point, but I use europe-west2 (London) region, but within the guide there is no any limitations on region to use.

Do you have any ideas why I can’t find the model and use this approach?

Well, I found following, that actually it’s not available in europe-west2, but as far as I see in documentation - Gemini 2.0 supported region is europe-west4

And I tried to get all available models by following client.model.list() in eu-west4 region and it returned me 404.

Then I switched region to us-central1 and it stopped returning me 404, but list of models is empty. Do you have any guess what can I do with this?

1 Like

Hey @Vladislav_Bakanov
Welcome to the community!
I was able to get the list of models. Request you to try the code snippet from the mentioned available regions.
Thank you!