I encountered a 404 error when calling the Gemini API for Gemini 2.5 Flash

Is anyone else experiencing this?

{

“error”: {

"code": 404,

"message": "This model models/gemini-2.5-flash is no longer available to new users. Please update your code to use models/gemini-3.6-flash for the latest features and improvements. We recommend you to use the Interactions API.",

"status": "NOT_FOUND"

}

}