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"

}

}

Hello @Kiri ,

To ensure reliable performance for everyone, we are limiting access to the 2.5 models to users who have actively used them in the past. These models are not deprecated and will continue to be served until further notice.
For your new projects, please use our latest models: 3.5 Flash-Lite or 3.8 Flash. This helps us maintain sufficient capacity for both ongoing legacy workflows and new applications.