API key not enabled?

I am trying to build a new Android app that uses my Gemini API key. But, it’s not working. I keep seeing this error:

Error 404: The API Key may be invalid or the project doesn’t have Gemini enabled.

{

“error”: {

“code”: 404,

“message”: “models/gemini-1.5-pro-latest 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.”

How do I enable it?