Gemini version 1 throws error 404 when try to analyze image

Am trying to analyze image image using gemini 1 but it throws error **{ “error”: { “code”: 404, “message”: “Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash.”, “status”: “NOT_FOUND” } }**

Here is my Curl php code.

<?php
// Get the image and convert into string 
$img = file_get_contents("https://storage.googleapis.com/generativeai-downloads/images/jetpack.jpg"); 
  
// Encode the image string data into base64 
$data = base64_encode($img); 
  
// Display the output 
//echo $data; 

$image_prompt='what is in this picture';

$payload ='{
"contents":[
    {
      "parts":[
        {"text": "'.$image_prompt.'"},
        {
          "inline_data": {
            "mime_type":"image/png",
            "data": "'.$data.'"
          }
        }
      ]
    }
  ]
}';



$url ="https://generativelanguage.googleapis.com/v1beta/models/gemini-pro-vision:generateContent?key=$google_gimini_apikey";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
$http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);

How do I update the Gemini API ENDPOINT TO VERSION 1.5. Do . please help me out. Thanks

Using gemini-1.5-flash in the url endpoint solved the issue