continue
continue copied to clipboard
Error: Gemini 2.0 Flash - Unknown error
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
Related/duplicate issues:
- #9262 - Error: Gemini 2.0 Flash - Unknown error (quota exceeded - 429)
- #9239 - Error: Gemini 2.5 Pro - Unknown error (quota exceeded - 429)
- #9153 - Error: Gemini 2.5 Pro - Unknown error (quota exceeded - 429)
- #9251 - Error: Gemini 2.5 Pro - Unknown error (invalid API key - 400)
- #9319 - Gemini exception (UI error with model dropdown)
- #8825 - Bug: Miss content-type header in gemini chat completion stream
- #7241 - Bug: Intermittent "Unexpected response format" error on Gemini models
Hello, this is an error on Google's side, you will need to enter a valid API key. Double check your key and try again