From 619ad717353d8b9d5f4d9049b1ce1b168c5851b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A1=E9=82=89=E7=A5=90=E4=B8=80=20/=20Yuichi=20Watana?= =?UTF-8?q?be?= Date: Thu, 6 Jul 2023 06:54:27 +0900 Subject: [PATCH] docs: added instructions for obtaining OpenAI API key to README (#421) * docs: added instructions for obtaining OpenAI API key to README * docs: move 'Getting an OpenAI API key' before 'Other examples' --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index da1a2804d..1f708af70 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,17 @@ func main() { ``` +### Getting an OpenAI API Key: + +1. Visit the OpenAI website at [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys). +2. If you don't have an account, click on "Sign Up" to create one. If you do, click "Log In". +3. Once logged in, navigate to your API key management page. +4. Click on "Create new secret key". +5. Enter a name for your new key, then click "Create secret key". +6. Your new API key will be displayed. Use this key to interact with the OpenAI API. + +**Note:** Your API key is sensitive information. Do not share it with anyone. + ### Other examples: