Lesson 5 - OpenAI: Limit Extensions, Billing, and Beyond β
Start an AI Automation Businessπ
2024-07-31
Transcript β
[00:00] welcome to the next lesson in this course where we're going to be navigating everything we need to know about open AI we're going to be integrating open ai's API with zap here and really understanding the dashboard now before we jump into the dashboard let's go ahead and understand pricing so we come down here on this article here we're going to be able to get pricing for everything associated with the API as you see here in the AK context which is the API we use in zapier we get around a th000 Tok tokens for 3 cents
[00:31] for input and 6 cents for 1,000 tokens for output now if you remember in that zapier video we went over a 4K and a 16k model of gbt 3.5 that is where this comes into play the 4K model cost around 015 and the 16k cost around 003 if we scroll down here we can look at older versions of models from open Ai and if we come down here a little bit more we get the image model so this has to do with D we call upon the API for
[01:02] Del for dealing with a 1024x 1024 image that's going to cost around 2 cents per image furthermore if we call upon the transcription and translation model whisper it's going to cost around 0.6 per minute as you see here it is very flexible with their model they say you can start experimenting they'll give you $5 of free credit and you can start using it during the first three months you can pay as you go and you can just choose whichever model best fits your use case as you'll see in all these different for tutorials to sign up for open AI all you got to do is come up
[01:33] here to this top right hit sign up and simply input your email or sign up with one of these other options perfect once we have signed up and logged in we'll go to a dashboard like this we got a lot of different tabs we can choose here we got our account up here let's go ahead and dive into everything we need to know about the open AI API dashboard and when it comes to AI automation the first most important thing that you need to know about this dashboard is coming down to this link right here which is the view status page this is going to be useful if you find yourself getting multiple
[02:04] errors or it seems like the model is not working go ahead and check up on this use page because sometimes the systems are just down therefore that's why so many errors are incurring coming back to the dashboard here another good rule of thumb is the playground the use case you can use a playground for is if the open AI servers are down like I showed before you can start messing around with the playground to still get answers so this is still useful in the sense of if chat gbt is down or if open AI API is down you can use the playground to still
[02:35] access the models in a different realm if you come to the examples tab it's going to give you different prompts and ways to approach issues such as summarize for a second grade if I click that it will go ahead and give me the prompt that was used in order to get that specific output or as you see here they made a whole prompt with Marv the sastic chat bot you are Marv a chat bot that reluctantly answers questions or sarcastic responses how many pan how many pounds to a kilogram this again there are 2.2 P pounds in a kilogram please make a note of this so you can do
[03:06] funny stuff like that but this just gives you examples to better understand how to prompt engineer API reference think of this as API documentation which you'll see later in this course when we access other uh platforms such as stripe or MailChimp this essentially is their own documentation when it comes to API calls this is actually what zappier uses in order to integrate it into their backend so now we know a general gist of where the tabs take us and what they mean let's go ahead and check out our own personal profile here and what we need to know about it if I come up here to the top right here this is going to
[03:37] give us a ton of different options here such as visiting chat gbt's regular UI or visiting delay but for us what we need to care about is going to manage account once we're in manage account we can go ahead and change our organization name and behind me is the organization ID that's used in specific context depending if whatever program you're using requests that API for us all we need to care about when setting it up for zapier is going to be your API Keys which is found right over here okay let's go ahead and create our secret key here that we're going to use for zapier
[04:09] all we need to do is come over here say create secret key move myself up here we're just going to go ahead and put uh course key I'm going to delete it so don't try to copy it I'm going go to create this key and as you see that is a key here we're going to go ahead and copy this coming over to zapier we're going to go ahead and select an app of open AI we going to go ahead and hit continue here and then we can go ahead and hit add new connection just going to load and essentially we want to go ahead and put in our API key now you could put
[04:40] your organization ID but it's not actually important here we're going to go ahead and continue we're going to put in our API key we're going to say yes connect once connected we see it right there so now we can start using open AI within our zap your flows cool little thumb here is you can go ahead and test connection you can reconnect you can edit the name here so I'm just going to put test so I can delete it later and essentially now we have successfully integrated open AI with zap it doesn't stop there though we want to go ahead and type in chat gbt we to want to go ahead and hit
[05:10] connect input our API key yes continue connect Chad gbt and there you go now chat gbt is connected as well and we are good to go we have open AI connected and chat gbt connected we be able to start creating AI automations now the next most important thing you can find on your open AI dashboard is going to be usage which is right over here essentially this is going to give you the cost associated with your openai per month you see above me it gives you a whole chart and then it tells you by day
[05:41] how much AI has been used now when running an a automation agency they will provide you with a cap around 250 I believe or 100 per month you can go ahead and request a higher cap if you feel like your AI is going to be at a higher usage limit for that month or for continuing months in order to request a higher usage limit you're going to go to your billing overview and then usage limit there you'll be able to set a soft limit and a hard limit and use their form if you need to request a higher limit as you see here in usage limits if
[06:12] I go to request increase it will bring me to a form like this where I'll simply put in the email put in the rate increase that I'm requesting and the reason why the billing also shows your payment method your billing history preferences and pricing now for your reference you can come over here if I click this it'll take me straight to Chad gbt that's pretty cool and then if I click this it would take me straight to Del Del is an image generated software I'd have to log in in order to start using it but it would take me straight to Deli and essentially you can read the terms and policies here you can
[06:42] invite a team member here and you can manage your account like I showed earlier perfect now you have successfully integrated open AI API with zappier you understand everything you need to know about the dashboard and you can perfectly navigate if you wanted to increase a limit understand the cost Associated per month and and more let's go ahead and jump into our next lesson here where we build out an entire webflow landing page and see how we can optimize of Chad gbt I'll see you there