{
message: ‘Incorrect API key provided: “sk-e4IG******************************************gQ”;. You can find your API key at https://beta.openai.com.’,
type: ‘invalid_request_error’,
param: null,
code: ‘invalid_api_key’
}
The key I have is good. The playground works, and I am even able to build finetunes. I was working with this key for hours training a chatbot. Then I took break for a couple of hours and when I came back, nothing was working.
I have tried creating a new key, but it doesn’t help. Any advice?
I’m going to reboot everything and see what happens. But I want to point out that the apikey in that error message is coming from the openai endpoint., and it appears to by my key (asterisks not withstanding.) They key is definitely getting to the server. aaaaaand… no dice Still not working.
I’m having the same issue right now too. Worked when I went to bed last night, no changes in the code…doesn’t work today. Tried creating new API keys, nothing works.
Certainly there must be something more to this than just clearing cache and restarting browser. I’m having the same issue. The error message with the partial API key does not match the one I generated in my account. I’m running into this issue on the image generation website. Is there any other resolution to getting this to work? i have purchased credits that will expire and I cannot use Dall-E-2.
Same here,
“error”: {
“message”: “Incorrect API key provided: sk-eXBr0***************************************PQrq. You can find your API key at https://beta.openai.com.”,
“type”: “invalid_request_error”,
“param”: null,
“code”: “invalid_api_key”
}
+1, definitely a problem with their API. I minted a brand new key and just used the CURL example from the completion endpoint and got the same error.
$ curl https://api.openai.com/v1/completions -H "Content-Type: application/json" -H "Authorization: Bearer $OPENAI_API_KEY" -d '{
"model": "text-davinci-003",
"prompt": "Translate this into 1. French, 2. Spanish and 3. Japanese:\n\nWhat rooms do you have available?\n\n1.",
"temperature": 0.3,
"max_tokens": 100,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 538 100 280 100 258 1075 990 --:--:-- --:--:-- --:--:-- 2077{
"error": {
"message": "Incorrect API key provided: sk-MY7LJ***************************************8qrE. You can find your API key at https://beta.openai.com.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
}
}
same issue here today
I generated the API key and as soon as I used it
It throws an error that:
ChatGPTError: ChatGPT error 401: {
“error”: {
“message”: “Incorrect API key provided: sk-R7aMV***************************************oKYo. You can find your API key at OpenAI API”,
“type”: “invalid_request_error”,
“param”: null,
“code”: “invalid_api_key”
}
}