Gemini 1.5 Flash: 404 Error - Model not found for API version v1

​Error Text:
​Error: Unexpected Response:
{
“error”: {
“code”: 404,
“message”: “models/gemini-1.5-flash is not found for API version v1, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.”,
“status”: “NOT_FOUND”
}
}
kotlinx.serialization.MissingFieldException: Field ‘details’ is required for type with serial name ‘com.google.ai.client.generativeai.common.server.GRpcError’, but it was missing at path: $.error