How to Integrate ChatGPT APIs | Complete Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey what's up guys welcome back to my YouTube channel and in today's video I am going to show how to use or integrate chat jpt apis in any language and by watching this video you will be able to integrate any API of the chat GPT like text completion image creation or others and I will explain you everything about how you can create apis and how to integrate it so video is going to more important and before start I request you to subscribe my YouTube channel so let's dive into so basically first of all to indicate the chat GPT API you have to do two necessary things first one you must have an account on chat repeat so it is super simple sign up form and after that you have to login it and the second step is to generate a API key so you just have to click on this icon and here you have to click on view API keys so here you can see my existing case and I am not able to copy it that's why I am going to generate new one so as you can see key is generated and you must have to copy it this time otherwise you will not be able to copy it after that just copy it and you must have to save it somewhere like this and after that ok and then you can go to the usage of the apis so here you can see we have 18 dollar credit on the free trial and from the 18 dollar we have used 0.09 dollar so after that we have to pay for this API and then go back to the main page and also from this URL you can create your account on chatgpt and here you can see examples and quick start tutorials of the apis so I am going to click on text completion first and in this page you can also see introduction quick start and libraries of that apis models tutorials and usage and here I am going to scroll down so you can read it it's up to you and then on the classification I am going to click on open in background so here you can see you can test from here and I am going to cut this text and view code and then if you click on call then you can see other languages called Python node.js and Json but I am gonna copy call code just copy it and to indicate the call code you must have a postman software and you may know about Postman it is used to test apis and here you have to click on import and then paste a call code so as you can see our call code is imported into Postman now I am going to test it so before test we have to put the API key so we have stored here copied and here in the headers authorization you have to paste it there and then go back to body in the body this is the Json this is the model prompt and in the prompt you have to mention the text for example hello this is no one go for to all the other parameters like tokens frequency and then I am gonna send it so as you can see response is written and here you can see this is the text which we have to show Numan nice to meet you how can I help you so this is a text we can use to show somewhere in the question answers area like these question answers the same thing and then I am gonna tell you how you can copy into your language and first of all here you can see the icon of the code you have to click on it and here you have to click on this one so this call code will return into the code like PHP Java Python and any other language is C Sharp it is C here you can see Ruby shell so you can get the code from there you just have to copy this code and you have to paste in your website so by this way you can use chat GPT API in your language and after that I am going to test image creation API so just go back to the open API platform and then scroll down and here you can see imagination just scroll down from there and this also give us the call code you just have to copy it and you can also copy the other codes like python node.js again go back to postman and import into paste it and here you can see headers we again have to paste the key just copy from there and you have to paste it there and in the body in the prompt you can see it is giving the request and it will create the image from this request just send it and we're just saying a white card image so let's see how it works and this is the URL of the image click on it and just send it here you can copy it and paste into the browser so this also work like the browser because I give it get so here you can see it has generated a cat and we can also generate variations of the image so just go back to the chat GPT API and scroll down so here you can see the images variation code and you can copy and paste into your website and the other apis like speech to text just scroll down so you have to copy and paste into Postman and here you can see we have to give the MP3 file so it will generate MP3 file to the text so this is how it works and if this API give us the python code then you can convert by using some online website like python to PHP and many other languages so this is how we can integrate and use chat DPT apis and let's see how much usage we have used just go back in the usage scroll down you can see we have been used 0.11 but before it was 0.9 so almost we have used 0.3 Dollar in two call cars and after the free tile you have to pay for it so I hope this must be useful that how to use and integrate jgpt apis in your language and by using Postman you can integrate into your website easily I hope you must find this video useful finally thanks for watching
Info
Channel: FineGap
Views: 1,537
Rating: undefined out of 5
Keywords: integrate chat gpt api, chatgpt, openai, integrate chatbot api to website, integrate chatgpt api to website, create and integrate chatgpt api, how to use chatgpt api, how to integrate chatgpt, chatgpt api key, openai api, use chatgpt api into your website, integrate chatgpt api to any language, image generation api, how to create chatgpt api key, api in chatbot, api integration in chatbot, chatbot api, chatbot api integration, api chatbot, integrate chatbot in website, chatbot
Id: YPV3Mg-BWbE
Channel Id: undefined
Length: 5min 51sec (351 seconds)
Published: Fri Mar 31 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.