Many developers who are incorporating the OpenAI API in their apps are considering enabling a BYOK (Bring Your Own Key) feature for their users or implementing an OAuth solution.
Surprisingly, OpenAI’s current terms of service, usage policies, and documentations are silent on this matter. I’m sure many in this community would appreciate explicit guidelines - as this could have significant implications on how we build and scale applications.
This is especially concerning given that some apps already allow users to bring their own keys as part of their business model. What if their apps are taken down due to policy violations they weren’t even aware of? I think this matter requires urgent attention.
Critical Questions:
Is it permitted for users of our apps to bring their own OpenAI API key for chat/text generation?
If BYOK is allowed what are the best practices for securely enabling users to input their own API keys?
Does OpenAI’s API support OAuth for authentication or plan to add this feature?
You’re right, there used to be something more specific in the documentation about BYOK applications, but the best answer I can currently offer is this:
…You may not make your access credentials or account available to others outside your organization, and you are responsible for all activities that occur using your credentials.
Do not share API keys, it’s a bad idea and it’s also against OpenAI’s policies.
OpenAI API keys are not intended for end users, their intended use is for developers who want to integrate OpenAI’s products into their services.
BYOK applications are not specifically banned, they are great for Open Source development or when you’re creating something for MegaCorp-9000® who wants to manage their own access & usage. It’s a really bad idea to create a “make AI do xyz” website that requires the user to share their API so that said website can make calls on their behalf.
Regarding question 3:
There’s currently no support for this feature, and I haven’t heard about any plans to add it.
Understandable,
Multiple people have already asked for clarification on the subject, and OpenAI has been made aware of the issue. There is not much else we can do at this point other than waiting.
This is the community developer forum. OpenAI staff are rarely here. If you’re seeking a response directly from OpenAI, your best bet is to head over to https://help.openai.com/en/ or email them directly at support@openai.com.