0% found this document useful (0 votes)
4 views

Requesting an API Key

Uploaded by

wibaomiab273
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Requesting an API Key

Uploaded by

wibaomiab273
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Requesting an API Key

Before we get to building an AI-powered application, we will need to obtain an OpenAI


API key.
Head over to the OpenAI website and register for a new account. Follow the prompts
to provide your full name, email, password, and date of birth. The organization field can
be left blank. You'll then be asked to provide a mobile phone number to verify your
identity. And finally, OpenAI will send you a verification email.
After verifying your email and logging in to your account, click on your profile at the top
right and click "View API Keys". Before creating a new secret key, click on "Billing" on
the panel to the left. You can click on "Pricing" to see OpenAI's pricing models. For this
course, we will be using "Chat". It is also advisable to set usage limits and apply a
monthly spending limit to avoid unexpected charges. Finally, click on "Set up a paid
account" to set up a payment method when you are ready to proceed.
With a payment method set up, click on "API Keys" on the panel to the left and click
"Create new secret key" to generate an API key for developmental use. Give this key a
name so that it'll be easier to keep track of your keys if you decide to create additional
keys later. You can name this key anything you want!
After clicking "Create secret key" you will be able to view and copy your key. This is the
key we will use in our applications to make API calls to OpenAI. Because you won't be
able to view this key in the future, make sure you copy and store the key now and store
it somewhere safe.
If you run into any issues with OpenAI account creation or API key generation, please
refer to the OpenAI help forums.

Kristian. 2022. ChatGPT Prompt Engineering Tips: Zero, One and Few Shot
Prompting [Blog, 14 December]. Available: https://www.allabtai.com/prompt-
engineering-tips-zero-one-and-few-shot-prompting/ [2023, May 3].
Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B. Xia, F., Chi, E.H., Le, Q.V., et
al. 2022. Chain-of-Thought Prompting Elicits Reasoning in Large Language
Models. Proceedings of the 36th Conference on Neural Information Processing
Systems (NeurIPS 2022). 28 November-29 December. New Orleans Convention
Center. Available: https://proceedings.neurips.cc/paper_files/paper/2022/hash/
9d5609613524ecf4f15af0f7b31abca4-Abstract-Conference.html [2023, May 4].
Weng, L. 2023. Prompt Engineering [Blog,15 March].
Available: https://lilianweng.github.io/posts/2023-03-15-prompt-engineering/ [2
023, May 3].

You might also like