Incorrect API is generated in the OpenAI account

API contains “None” in the key which is unusual.
For example, sk-None-kr*************
How can I fix it?

This is not unusual—well, it’s not a problem anyway…

This is just how API keys which are not a project key are now formatted.

There are actually 3 prefixes for new keys now,

  1. sk-proj-
  2. sk-None-
  3. sk-svcacct-

So, what you have done, is in the Dashboard, you navigated to your user keys section and created a new key there. That’s why it’s sk-None- because it is associated with you as a user and not with any particular project.

To “fix” it, you jest need to make a new API key from here:

not from here:

Thank you for the detailed instruction. Done :slight_smile:

1 Like

Seems like OpenAI changed the API key format again. The charset after the prefixes used to be 48 characters long, now it’s much longer than that and includes underscores…

It’s been challenging to maintain a strict input validation. This was the third time and I’m letting it go, I wish OpenAI have at least informed their developers for such changes or announce it somewhere but nothing I’m aware of… I 'll relax the api key input validation in my apps.

(First time seeing sk-None-**** btw.)