- Introduction
- Setting Up Chat GPT with Postman
- Creating API Keys
- Configuring Postman
- Sending Requests
- Viewing Images
- Advanced Usage
- Integration with Salesforce
Introduction
Foreign, how to generate the image using charge gbt using Postman. So if you want to learn something new, so please watch this article Until Then, and please subscribe the channel if you are new in this website and please turn on the Bell icon for more updates. So you never will miss any kind of update from my site, so let’s get started without any further delay.
Setting Up Chat GPT with Postman
So, first of all, let me show you the process: how to configure this chat GPT with Postman and how to generate the images based on your input. All right, so let me open the documentary part regarding this chat GPT. So here this is the URL platform dot openai.com. Under this website, you can see lots of tab like tab menu like overview, So based on this overview, you can check, like GPT, GPT, best practices speech to tags – everything you can see like this, like image generation, I’m going to discuss about this image generation right and This is the documentation part about this set GPT and API references. You can take some references from here if you want to integrate this chat GPT inside any kind of programming language. Let’S say PEX programming language sees our PHP python, load.js any kind of things, and if you are working in Salesforce, so you can use a packs of lwc component using this kind of things right so before that you have to create your own account inside this website.
Creating API Keys
Once you created your account now you have to go to this personal or it can be anything, don’t worry about it and you can check your. You know view API keys, so I already created some keys here. You can see you can generate new key based on your requirement, and this is a free version. If you need like the pro version, you can subscribe this. You know like this website and based on your requirement, you can use it so once you click on this upgrade now you can see this different types of pricing about this chat. Gpt like this one right here so based on your requirement, you can you know, sign up or you know, purchase this paid version so right now, I’m using free version.
Configuring Postman
So for this you know like API references, just click on this images. So today we will discuss about this like how to create the image. So this is the post request. You can see this HTTP has colon slash API dot, openai.com, slash, VI, images and generation. So this is the base URL here you can see and you have to pass something regarding this content type authorization barrier and your API key and then you have to pass the body and prompt prompt is nothing is a kind of you know, user inputs from the End user and size you can make it the size based on your requirement. This is some required parameter. You can read out this article and you can generate your. You know image so before that. Let me configure this chat GPT using Postman.
Sending Requests
So let me open the postman here so right now this is the postman. I already created some workplaces, so you can see my workplaces right, open, AI. I have lots of post requests, guest requests, something like that. So once you click this get models, I already created like models, so there are so many models inside. You know this open chat, repeat here right, so just click on this API or just you can create like models here, and we have lots of model here like list of models right so based on your requirement, you can try it all right. So now just click on these images, so I already copy this URL in my Postman. You can see in image generator, and this is the post request. That’S why you can change and you can make it like get pause put patch based on your. You know, requirement. So here API slash this URL Images, slash generation right so under this authorization or header just come to this header part under this header party, you have to pass like authorization so, based on this document, I am just using like header h, means header, and this is A authorization – and this is the body so here in the postman, you can select authorization barrier and my you know secret key or you know like open API key. So you will be get this key inside your account once you click on this personal and just view your API key right. So this is the way to find out your API key and you can generate new one or you can use a adjusting one. If you have so just come here and once you authorize the authorization part is done now, you have to pass like like Postman token. This is the by default. Parameter, don’t worry about it right! So here you can see this different types of things. Just you have to pass this like authorization right like authorization barrier and then you know API keys, so once you’ve done it now come to this body, part under this body part I have this pumped and I’m just passing this Google, because I want to create Google Image inside this, you know like chat GPT, so just you have to pass this parameter like prompt and Google. It can be anything in your case like Google, Amazon, Microsoft. Any kind of you know like image you want, so you can pass that parameter here. So just once you’ve done it just click on this send button.
Viewing Images
You will be see the output here so in the bottom after some time, if you see like 200 okay means your request successfully done, and this is the success request now you can see 200. Okay. This is a success. Let me show you the request, so it’s created here, you can see the created and data data under the data we have URL once you click on this URL. It’S open me another tag inside Postman and it’s always like get because I need to get this image so once you’ve done it immediately. Postman is a very smart tool. So that’s why it’s automatic configure this. You know like everything regarding this image like stac. This is the some parameter regarding this image. So don’t worry about it so once you done it just click on this send button, and after some time you will be see like Google image inside this Postman. Now you can see that Google here, if you need let’s say I – want to open this URL outside the postman, just copy it and open in new tab, and you will be see this Google image here now. You can see it’s loading here like Google, you can change the parameter based on your requirement.
Advanced Usage
So let me change this parameter here and let me click on this image generator and this time I want to get some image and other images. Let’S say I want to pass like, let’s say, Batman or Spider-Man, like Spider Man. I want to get this image like Spiderman image, so once you pass this parameter, you will be see the Spider-Man image inside this Postman. So just click on this URL image. Url click on this send button, and now you will be see the Spider-Man image here. So it’s okay, still some progress is going on so now immediately you can see the Spiderman image. So if you need like more uh like separate tab, just copy this URL paste it into your, you know browser window here like this. Now you can see the Spider-Man images like this right, so suppose I want to configure my image size, my own, so how to configure that very simple. Just go to the image generator here and under the this body you have to pass another parameter. That is called size so size here, and you will see this size here inside this. You know the API so just come to this API here and we have size this this so just copy it and paste it into here and now this and you will be seeing this kind of image, like 10 24 by 1024 length of width of this image. So once you generate this image, just click on this in url click on the send button.
Integration with Salesforce
So now you can see this is the image of this inspired man right. You can integrate this API in lwc and based on this, you know like this parameter. We can take some input from the user and based on this input, we can implement. This kind of you know like feature inside our lwc, and we can show this image inside Salesforce any record page app, page and home page. So this is how to integrate open. Ai chat, GPT inside Postman so guys. I hope you learned something new in this article. If you feel like this is a very more informative for us. So please subscribe the channel and please turn on the Bell icon for more update. So you never will miss any kind of update from my side so till then bye, bye, take care, see ya. Thank you for watching guys. Thank you.
Learn how to generate and view images using Chat GPT with Postman, and integrate this functionality into Salesforce.
Tags: chat gpt whatsapp, chat gpt whatsapp bot, chat gpt with whatsapp, chatbot api whatsapp, chatbot con whatsapp, chatgpt, chatgpt en whatsapp, chatgpt on whatsapp, chatgpt whatsapp, chatgpt whatsapp bot, como usar chatgpt en whatsapp, gpt on whatsapp, how to make chatgpt whatsapp bot, how to use chatgpt, how to use chatgpt on whatsapp, send a message on whatsapp using chatgpt, using chatgpt on whatsapp, whatsapp, whatsapp chatbot, whatsapp chatbot using gpt