continue icon indicating copy to clipboard operation
continue copied to clipboard

Deepseek 401 Authentication Fails, Your api key: ****a205 is invalid

Open hemangshah36 opened this issue 11 months ago • 2 comments

Before submitting your bug report

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


hemangshah36 avatar Jan 02 '26 09:01 hemangshah36

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)

continue avatar Jan 02 '26 09:01 continue

Hello, this is an error on the deepseek side and means the key is actually invalid. You will need to use a different key.

RomneyDa avatar Jan 22 '26 21:01 RomneyDa