Deepseek 401 Authentication Fails, Your api key: ****a205 is invalid
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [x] I'm not able to find a related conversation on GitHub discussions that reports the same bug
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS:Windows Server 2025
- Continue version:1.2.11
- IDE version:
- Model:
- config:
OR link to agent in Continue hub:
Description
I am using Continue in VS Code in Windows Server 2025.
I want to use Deepseek AI models.
I have entered valid API key but it is always giving same error.
401 Authentication Fails, Your api key: ****634a is invalid
I have switched to different available models but it is giving same message.
Please note that I have generated api key a fresh and still it's giving same error. I have waited 1 hour to get API activated (if so) and still getting same error.
OpenAI models like GPT-4o mini etc are working
To reproduce
No response
Log output
Related issues:
- #4433 - not working deepseek api key
- #8516 - API key not valid. Please pass a valid API key.
- #9358 - Error: GPT-5 - 401
- #9177 - Error: GPT-5 - 401
- #7710 - [Bug] API Key error (400/401) despite valid key, cannot resolve ${env:...} (closed)
Hello, this is an error on the deepseek side and means the key is actually invalid. You will need to use a different key.