Exception: Request failed for https://api.openai.com returned code 401. Truncated server respon

Exception: Request failed for https://api.openai.com returned code 401. Truncated server response: { “error”: { “message”: "Incorrect API key provided: sk-Jy9zg***************************************G11o. You can find your API key at … (use muteHttpExceptions option to examine full response)

1 Like

Hey and welcome to the developer forum :hugs:

Please double check the provided API key is correct. Did you censor the key with stars (*) or are you just literally sending it like that?
Seems like you copied the key from the key page once generated. You can only view/copy the key once, when created

1 Like