continue
continue copied to clipboard
Error: Gemini 2.5 Pro - Unknown error
Error Details
Model: Gemini 2.5 Pro 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
https://github.com/continuedev/continue/issues/new/choose
Related/Duplicate Issues
Exact duplicates with same error:
- #9239 - Error: Gemini 2.5 Pro - Unknown error
- #9153 - Error: Gemini 2.5 Pro - Unknown error
Related Gemini model selection/configuration issues:
- #9208 - Cannot add new google gemini model
- #9163 - "Cannot read properties of undefined (reading 'title')" when trying to select Google models
- #9058 - [Bug] Uncaught TypeError: Cannot read properties of undefined (reading 'title') when switching models
- #8993 - 'title' being read as undefined
Related Gemini error issues:
- #7241 - Bug: Intermittent "Unexpected response format" error on Gemini models with inconsistent state logging
- #7849 - Gemini 2.5 Flash - unable to submit request because it has a stopSequences value of 10 but the supported range is from 1 to 6
- #8980 - 400 Error with Gemini 3 Pro via OpenRouter when calling tools
Hi @pipox101w-blip, this is an issue with your Gemini API key, you will need to use a different key or address this in the google console.