To get started working with the chat API, you'll first need to sign up for an account with OpenAI, if you don't already have one. com slash sign up. I've left a link to that in the description below. After signing up, you'll have to verify your email and your phone number, but it's really a pretty simple process.
Once you're in, you'll be presented with this overview page, of the API documentation. Here, they have a great quick start tutorial that helps you understand the basics of the API. At a high level, the API is nothing more than a series of prompts provided by us, the API users, and text responses sent back from the API. This stuff gets into the details of concepts like temperature, payload shape, and much more.
But a lot of it is in the context of a React application. We'll cover all of these topics in the context of view during this course. We also have a really cool page filled with examples of things that you might want to build with the API. I definitely recommend clicking through each of these at your leisure.
They were very eye-opening for me and really give some great examples of what all is possible with your text prompts. Besides the chat API, they also offer various other APIs to accomplish different but often complimentary tasks. For instance, the text completion API is optimized for text generation and editing. However, the chat API has comparable abilities to this.
You can also turn speech to text or generate images from text. Though admittedly, I haven't cracked the text to image thing yet, most of what I get back is pretty rough and nothing compared to the results that I get from tools like Mid Journey. All right, in order to start making API calls, we first need to generate an API key in order to secure our requests. You can do that by going to your account here at the top right hand corner and choosing View API Keys.
As you can see, I already have a couple of these keys generated for myself, but you can use this button right here that says Create New Secret Key in order to generate your own key. Make sure to copy and paste this somewhere safe so that you can easily retrieve it in some of the following videos. since you won't be able to view it again from the OpenAI site. I will delete my newly generated key that you see on the screen now and stick with using the one I've generated previously, since I've just shared this very secret key with all of you watching this video.
While we're here, let's also take a quick look at this billing tab. It's important to note that this is a paid API, but there is a generous free trial that gives you a $20 credit that you can use over the span of three months. That should be more than enough to get you through this course, and if you're anything like me, you will have quickly updated your plan to a pay-as-you-go as you find just how useful this API is. To get started working with the chat API, you'll first need to sign up for an account with OpenAI, if you don't already have one.
com slash sign up. I've left a link to that in the description below. After signing up, you'll have to verify your email and your phone number, but it's really a pretty simple process. Once you're in, you'll be presented with this overview page, of the API documentation.
Here, they have a great quick start tutorial that helps you understand the basics of the API. At a high level, the API is nothing more than a series of prompts provided by us, the API users, and text responses sent back from the API. This stuff gets into the details of concepts like temperature, payload shape, and much more. But a lot of it is in the context of a React application.
We'll cover all of these topics in the context of view during this course. We also have a really cool page filled with examples of things that you might want to build with the API. I definitely recommend clicking through each of these at your leisure. They were very eye-opening for me and really give some great examples of what all is possible with your text prompts.
Besides the chat API, they also offer various other APIs to accomplish different but often complimentary tasks. For instance, the text completion API is optimized for text generation and editing. However, the chat API has comparable abilities to this. You can also turn speech to text or generate images from text.
Though admittedly, I haven't cracked the text to image thing yet, most of what I get back is pretty rough and nothing compared to the results that I get from tools like Mid Journey. All right, in order to start making API calls, we first need to generate an API key in order to secure our requests. You can do that by going to your account here at the top right hand corner and choosing View API Keys. As you can see, I already have a couple of these keys generated for myself, but you can use this button right here that says Create New Secret Key in order to generate your own key.
Make sure to copy and paste this somewhere safe so that you can easily retrieve it in some of the following videos. since you won't be able to view it again from the OpenAI site. I will delete my newly generated key that you see on the screen now and stick with using the one I've generated previously, since I've just shared this very secret key with all of you watching this video. While we're here, let's also take a quick look at this billing tab.
It's important to note that this is a paid API, but there is a generous free trial that gives you a $20 credit that you can use over the span of three months. That should be more than enough to get you through this course, and if you're anything like me, you will have quickly updated your plan to a pay-as-you-go as you find just how useful this API is.