API realted problem. Like API is correct still showing incorrect

Error: Incorrect API key provided: “sk-RclR*****************************************uFZ”. You can find your API key at OpenAI API. (HTTP status code: 401)

why this is showing? my API is correct and I checked it so many times. How can I solve this while making a chatbot using django ?

worth checking there to make sure thing like you key is still valid, etc. then also worth re reading the django documentation to make sure you have not missed a step.

please remove the ‘"’ and try. i think you are including quotes in your key

Hi @rownakborhan34

Sharing the code that’s making API call will be helpful in helping you.