continue icon indicating copy to clipboard operation
continue copied to clipboard

Error: Gemini 2.0 Flash - Unknown error

Open yuvalbh12 opened this issue 9 months ago • 2 comments

Error Details

Model: Gemini 2.0 Flash Provider: gemini Status Code: N/A

Error Output

{"error":{"message":"{\n  \"error\": {\n    \"code\": 400,\n    \"message\": \"API key not valid. Please pass a valid API key.\",\n    \"status\": \"INVALID_ARGUMENT\",\n    \"details\": [\n      {\n        \"@type\": \"type.googleapis.com/google.rpc.ErrorInfo\",\n        \"reason\": \"API_KEY_INVALID\",\n        \"domain\": \"googleapis.com\",\n        \"metadata\": {\n          \"service\": \"generativelanguage.googleapis.com\"\n        }\n      },\n      {\n        \"@type\": \"type.googleapis.com/google.rpc.LocalizedMessage\",\n        \"locale\": \"en-US\",\n        \"message\": \"API key not valid. Please pass a valid API key.\"\n      }\n    ]\n  }\n}\n","code":400,"status":"Bad Request"}}

Additional Context Please add any additional context about the error here

yuvalbh12 avatar Feb 07 '26 13:02 yuvalbh12

Related issues:

  • #10217
  • #10208
  • #10186
  • #9910

continue avatar Feb 07 '26 13:02 continue

Hello, this error usually means the Gemini API key being used is not valid. You can verify your API key at https://aistudio.google.com/apikey and update your Continue configuration.

We receive a large volume of these issues, so closing for now. If you believe this is a bug on Continue's side (e.g. a valid key not being passed correctly), please open a new issue with more details about your setup.

RomneyDa avatar Mar 19 '26 21:03 RomneyDa