WEBVTT

00:00.160 --> 00:05.360
Okay, we're about to go and do some final tinkering for today with N810, but I do want to set your

00:05.360 --> 00:12.360
expectations about API's, costs, integrations and all that stuff, which is so cool to the time we're

00:12.360 --> 00:13.720
going to spend together.

00:14.440 --> 00:19.960
I want to say that that we're going to do a ton of different integrations, and some of them come with

00:19.960 --> 00:20.640
costs.

00:20.760 --> 00:25.120
They are all optional and you are always in control.

00:25.160 --> 00:29.760
First and foremost, you should make decisions about what you want to spend money on and what you do

00:29.760 --> 00:30.240
not.

00:30.280 --> 00:35.320
There's no need to spend anything at all, but it is with you to make that call as you go.

00:35.360 --> 00:37.080
I will give you the alternatives.

00:37.080 --> 00:39.600
You can do some research to understand what you'd rather do.

00:39.760 --> 00:44.280
If you want to spend a couple of dollars on something like OpenAI, then, then you should do so.

00:44.480 --> 00:46.520
If you don't, you don't need to do it.

00:46.520 --> 00:50.520
There'll be plenty of alternatives, and you can always go and look for other integrations that will

00:50.520 --> 00:51.120
be free.

00:51.160 --> 00:53.400
That would that would be an alternative to what we do.

00:53.400 --> 00:55.600
So so please do keep that in mind.

00:56.360 --> 00:57.280
Uh n810.

00:57.440 --> 01:01.680
The cloud version that we're going to use in weeks one and two for simplicity, because it's so quick

01:01.680 --> 01:02.560
to get up and running.

01:02.560 --> 01:05.440
Has this two week free trial, at least for me now.

01:05.560 --> 01:07.720
And then it becomes $24 a month.

01:07.720 --> 01:13.240
But in week three, we're going to move to self-hosting so that it's free and running on your computer.

01:13.240 --> 01:16.600
But it's just slightly more technical, so I'm waiting until week three to get there.

01:16.920 --> 01:21.360
If, however you want to do that from the get go, then you absolutely can just just do it.

01:21.360 --> 01:24.640
If you if you know what you're doing, you're already a bit technical, then just do the self-hosted

01:24.640 --> 01:25.800
version instead.

01:25.840 --> 01:29.280
You can you can check out any docs and they're perfectly clear.

01:29.440 --> 01:34.760
And then I want to say again that that all of the integrations that we do are optional.

01:34.760 --> 01:37.440
You can always switch it up for a different integration.

01:37.440 --> 01:41.240
And almost everything we do has a free tier.

01:41.640 --> 01:43.920
One of the exceptions is OpenAI.

01:44.440 --> 01:47.200
Uh, OpenAI, which which we will use in a second.

01:47.200 --> 01:48.400
We're going to set up an account with it.

01:48.400 --> 01:50.360
If you don't have it already, they are.

01:50.400 --> 01:55.800
It's extremely cheap to do most of what we will be doing, but they have this thing that they need to

01:55.800 --> 02:02.430
take a minimum upfront of $5 balance that you then do like a pay as you go against.

02:02.430 --> 02:06.190
And for some people that's very tiresome and you don't need to use it.

02:06.190 --> 02:10.750
You can use Open Router as the swap in replacement at all times.

02:10.790 --> 02:12.950
On this course use Open Router.

02:12.950 --> 02:14.470
It's free as you saw.

02:14.630 --> 02:18.990
Now open router the free models they have some rate limits which means that there'll be a point when

02:18.990 --> 02:20.470
it might complain and throw an error.

02:20.470 --> 02:23.190
And you'll have to wait a bit of time and come back and try again.

02:23.190 --> 02:28.270
So there's stuff like that that you'd have to get used to, and that that's the the life of being on

02:28.270 --> 02:29.590
the free plan.

02:29.590 --> 02:34.790
If that bothers you too much, then you might need to to spend that $5.

02:34.830 --> 02:36.470
Get your OpenAI balance.

02:36.470 --> 02:42.630
And I would suggest, if you can, that this is something it's it's a OpenAI is the one to pick because

02:42.630 --> 02:44.310
it's so common out there.

02:44.310 --> 02:50.270
So many of your, your clients or potentially future clients or future employers will be interested

02:50.270 --> 02:51.070
in hearing that.

02:51.070 --> 02:52.870
You've got some OpenAI experience.

02:52.870 --> 02:55.430
So it's the one to, to to try out.

02:55.470 --> 02:56.950
Of course, any of them are great.

02:56.950 --> 03:01.430
If you'd rather use anthropic, which is my personal favorite, then for sure do that.

03:01.430 --> 03:05.070
Or if you like Gemini, which also has a great free tier.

03:05.070 --> 03:09.150
If you go direct to Google to AI studio, you can absolutely do that.

03:09.150 --> 03:15.750
All of the models work basically exactly the same way in Nw10 as you will see, and you can pick whichever

03:15.750 --> 03:17.510
one you feel most comfortable with.

03:17.550 --> 03:20.110
We'll be setting up OpenAI next for people that want that.

03:20.110 --> 03:22.030
But you can also stick with Open router.

03:22.710 --> 03:26.750
And yeah, so so do do have open Router as your free alternative.

03:26.790 --> 03:27.990
We used it earlier.

03:27.990 --> 03:32.350
You can use it again and pick any free model or a paid model if you'd rather.

03:32.390 --> 03:36.310
That's an also an easy way to be using trying out different models.

03:36.350 --> 03:42.950
Go through open router and please don't feel like you need to stick to the integrations that I will

03:42.950 --> 03:44.310
be covering on this course.

03:44.550 --> 03:49.470
The great thing about Nw10 is that there's so many integrations to choose from, and you should try

03:49.470 --> 03:51.270
and pick up the techniques that.

03:51.310 --> 03:55.910
How do you go about setting up these integrations and don't just apply it to that integration, but

03:55.910 --> 04:02.030
see if you can't apply that to different integrations, to experiment yourself, to try new things.

04:02.030 --> 04:04.660
The documentation is also terrific with N810.

04:04.700 --> 04:09.260
Every integration is really well documented, so you should be able to take this in a different direction.

04:09.260 --> 04:10.980
And that's the best way to learn.

04:10.980 --> 04:15.540
The best way to learn is not to do exactly what I do, but try and take it in a slightly different direction.

04:15.580 --> 04:17.260
Make make it work doing what I do first.

04:17.300 --> 04:20.780
If you have any problems but then go off, experiment with something different.

04:20.780 --> 04:22.380
Do a different integration.

04:22.380 --> 04:27.780
There's going to be so many to choose from that you'll be able to take this and solve all sorts of different

04:27.780 --> 04:28.500
problems.

04:28.500 --> 04:30.100
And that is the joy of it.

04:30.100 --> 04:32.860
And it's also where the true expertise is built.

04:32.900 --> 04:33.340
Okay.

04:33.380 --> 04:35.460
With that, let's go back to it.

04:35.460 --> 04:37.580
Let's go and do some experimenting.

04:37.700 --> 04:37.980
Okay.

04:38.020 --> 04:41.020
First up we're going to set up an OpenAI account.

04:41.020 --> 04:42.140
If you don't have one already.

04:42.140 --> 04:45.700
And this is super optional if you'd rather stick with open router.

04:45.740 --> 04:46.300
Absolutely.

04:46.300 --> 04:47.220
We could do that.

04:47.220 --> 04:50.020
So the website to go to is called platforms.

04:51.780 --> 04:53.100
Platform OpenAI.

04:53.780 --> 04:54.500
Here we go.

04:54.540 --> 04:56.020
Here is platform OpenAI.

04:56.540 --> 05:01.340
And if you don't already have an account with this not the same as ChatGPT.

05:01.620 --> 05:04.740
ChatGPT is a subscription account.

05:04.780 --> 05:09.020
You can either have ChatGPT for free or you can pay a monthly amount.

05:09.140 --> 05:10.820
That's not what we're doing here.

05:10.900 --> 05:18.540
We want to have API access so that we can connect to the model, to the LLM itself that sits behind

05:18.580 --> 05:19.340
ChatGPT.

05:19.580 --> 05:21.260
So we're not coming into the product.

05:21.260 --> 05:23.860
We're coming into their underlying models.

05:23.980 --> 05:25.860
That's why we've gone to platform OpenAI.

05:26.580 --> 05:29.700
And I'm pressing the sign up button if I don't already have an account.

05:29.700 --> 05:35.740
And it's allowing me to create an account and I can carry on with, with my Google auth or with Apple

05:35.740 --> 05:39.380
or Microsoft, uh, and, or just just go with an email address.

05:39.380 --> 05:42.700
And I will go in now with Google to set up an account.

05:42.700 --> 05:46.380
And I'm coming in now for the first time with my Google account.

05:46.580 --> 05:50.900
And it's then going to ask me a couple of questions like, uh, date of birth and stuff like that,

05:50.900 --> 05:52.140
which I will go through.

05:52.260 --> 05:54.180
And then I will see you on the other side.

05:54.180 --> 05:56.620
So the first thing I want to know is an organization name.

05:56.620 --> 06:00.660
And if you're just doing this for yourself as part of, of building your skills, you could give it

06:00.660 --> 06:03.930
your name and with, with, uh, education or something, so I'll say.

06:04.970 --> 06:06.090
Education.

06:06.290 --> 06:10.170
And then you can put down whatever you are a business professional.

06:10.450 --> 06:12.690
Uh, whatever best suits you.

06:12.690 --> 06:15.090
And then create that organization.

06:15.290 --> 06:17.450
Uh, you can invite your team later.

06:17.930 --> 06:22.370
And actually, it's got something right here to set up your key immediately.

06:22.370 --> 06:23.130
But I'm going to press.

06:23.130 --> 06:24.410
I'll do this later.

06:24.410 --> 06:30.050
So we go through it, and, and you would then want to go through the screen to set up your credits.

06:30.050 --> 06:32.810
I'll also show you how we do it through the other screens as well.

06:32.810 --> 06:34.330
But you can just quickly do it here.

06:34.330 --> 06:36.450
I'm going to press I'll buy credits later.

06:36.450 --> 06:42.410
And we are now here inside the OpenAI platform with our account set up.

06:42.530 --> 06:47.770
And again, I hate to belabor the point, but I do want to make it really clear that we are in the OpenAI

06:47.810 --> 06:48.690
platform.

06:48.810 --> 06:56.410
This is our path, uh, as professionals, to connect to the underlying AI, to build our own products.

06:56.450 --> 07:00.050
This is different to ChatGPT, which isn't platforms.

07:00.050 --> 07:00.490
OpenAI.

07:00.810 --> 07:03.210
It's like ChatGPT, which is a product.

07:03.210 --> 07:09.050
We're going to make other products a bit like ChatGPT ourselves, and our products and ChatGPT both

07:09.050 --> 07:11.290
connect into the underlying AI.

07:11.610 --> 07:12.890
That's what we're looking at here.

07:12.890 --> 07:14.050
It's the platform.

07:14.050 --> 07:15.930
There's no monthly subscription.

07:15.930 --> 07:22.250
There's an amount that you pay a very small amount every time that you make a call, a request to the

07:22.250 --> 07:22.650
AI.

07:22.770 --> 07:26.010
And that amount is typically measured in fractions of a cent.

07:26.130 --> 07:28.330
Each individual call very, very cheap.

07:28.610 --> 07:34.450
So the two steps you need to do at this point, one of them is setting up an API key, and one of them

07:34.450 --> 07:38.010
is putting your $5 minimum balance on there.

07:38.130 --> 07:43.290
And you may have done both of those as part of the welcome flow, but if not, that is what we will

07:43.290 --> 07:44.170
do right now.

07:44.490 --> 07:50.250
First of all, setting up our API key, which you do by going to the settings menu up here.

07:50.810 --> 07:55.650
Now we're on our settings and you click on API keys right here.

07:55.650 --> 07:57.610
And we're now looking at API keys.

07:57.610 --> 08:00.930
And there's a button to create a new secret key.

08:01.170 --> 08:02.770
That's the name of an API key.

08:02.970 --> 08:08.000
That is how when we're in Nw10, we'll be able to identify ourselves to open AI.

08:08.320 --> 08:12.320
And now I'm going to press the Create New Secret key button.

08:12.360 --> 08:13.960
I leave it owned by me.

08:14.000 --> 08:19.000
I give it any name I want and select project.

08:19.000 --> 08:21.240
I choose default project.

08:21.360 --> 08:24.800
You want to do nothing fancy here, otherwise you might get problems later.

08:24.800 --> 08:25.960
Keep everything normal.

08:25.960 --> 08:27.280
All permissions.

08:27.280 --> 08:28.560
You do everything normal.

08:28.560 --> 08:31.080
And then you press create secret key.

08:31.440 --> 08:34.040
And when you press that it comes up with a key.

08:34.200 --> 08:37.640
And you now copy this to your clipboard by pressing this button.

08:37.960 --> 08:40.080
And then you put it somewhere safe.

08:40.120 --> 08:44.560
You paste it into somewhere where you store these things like a notepad, being sure that you don't

08:44.560 --> 08:50.680
use any kind of fancy editor that's going to try and make characters look nice and add hyphen long hyphens

08:50.680 --> 08:51.800
or anything like that.

08:51.840 --> 08:54.440
Use something that's very simple.

08:54.560 --> 09:00.200
Um, or just just, just keep this copied so that you can paste it into n-r10 in just a second.

09:00.200 --> 09:04.240
Copy it and don't put anything else in your clipboard because we're about to use it.

09:04.240 --> 09:05.920
And then you can say done.

09:06.120 --> 09:09.840
And in case you're copying down my key, I'm going to press the delete button right now.

09:10.040 --> 09:12.360
Uh, you can create as many keys as you want.

09:12.400 --> 09:18.160
If you ever have a problem connecting to OpenAI, just come back here, create another key.

09:18.200 --> 09:19.000
There's no harm.

09:19.000 --> 09:20.480
Revoke any any old ones.

09:20.480 --> 09:21.880
Create another one.

09:21.880 --> 09:23.400
They are easy to create.

09:23.520 --> 09:24.920
That is your API key.

09:25.040 --> 09:30.080
Keep it safe and you are welcome to stick with open router if you don't want to spend money.

09:30.080 --> 09:34.200
But if you want to use OpenAI, you do need to give them the $5 balance.

09:34.360 --> 09:36.720
So the way you do that is again, you're on settings.

09:36.720 --> 09:37.920
Here we are in settings.

09:37.920 --> 09:40.120
You come over to the left here to billing.

09:40.240 --> 09:42.120
You click on billing that make this a bit bigger for you.

09:42.120 --> 09:42.800
There we go.

09:43.200 --> 09:48.120
Uh, you come to billing and then you have to press the add payment details.

09:48.120 --> 09:51.480
It says here does not reflect your status of your ChatGPT account.

09:51.520 --> 09:53.680
ChatGPT totally different.

09:53.680 --> 09:59.360
This is using the API, the API to connect and run the LLM add payment details.

09:59.360 --> 10:00.120
We press.

10:00.240 --> 10:08.350
This is where you would set up your credit card and put on your your $5 minimum balance by going through

10:08.350 --> 10:14.710
this, uh, and uh, once you've done that, you will you'll be able to top it up with your $5 payment

10:14.710 --> 10:19.550
and be sure to have the auto reload set off.

10:19.590 --> 10:25.630
Auto reload is saying, when I've spent my $5, should I come back and automatically add on another

10:25.630 --> 10:26.510
$5?

10:26.510 --> 10:30.430
You don't want to do that while you're starting out, not until you're really comfortable with what's

10:30.430 --> 10:31.110
going on.

10:31.110 --> 10:32.910
So keep auto reload off.

10:33.190 --> 10:34.550
Put your $5 on.

10:34.790 --> 10:40.470
Now, I note in some countries it can take some time before OpenAI clears that, so it may not work

10:40.510 --> 10:41.230
immediately.

10:41.230 --> 10:45.830
You might need to wait until the funds have definitely been cleared and the OpenAI has them.

10:45.990 --> 10:50.190
Uh, and you can see billing history to get any information on that.

10:50.310 --> 10:56.230
Um, so be sure that that you are happy that you have gone to, to, to to billing history and that

10:56.230 --> 11:02.430
you can see that you've got your $5 on there and, uh, then you should be ready to go.

11:02.670 --> 11:06.990
By the way, you can see other things here that might be useful for you if you go to usage.

11:07.030 --> 11:09.950
You can track how much you're actually using it.

11:09.950 --> 11:10.750
Over time.

11:10.750 --> 11:17.110
You can see how you are spending against your $5, and I suspect you will spend at a very slow pace.

11:17.150 --> 11:21.510
It's super cheap to use this unless you scale up to lots of users.

11:21.510 --> 11:26.750
And for good API hygiene it's always useful to keep keep this bookmarked.

11:26.790 --> 11:28.550
Come back to this usage page.

11:28.590 --> 11:33.430
Take a look at what you're spending, and only top up your accounts with the amount that you're comfortable

11:33.430 --> 11:33.870
with.

11:34.030 --> 11:39.070
The very worst case you can imagine is that you might somehow accidentally spend all of the amount you've

11:39.110 --> 11:39.710
topped up.

11:39.870 --> 11:45.030
So be sure that you keep that to a number that you're comfortable with, and always keep an eye on your

11:45.030 --> 11:45.630
usage.

11:45.750 --> 11:47.510
That is a good best practice.

11:47.750 --> 11:48.350
Okay.

11:48.390 --> 11:51.150
With that, you've now set up your OpenAI account.

11:51.190 --> 11:53.950
You've got yourself an OpenAI API key.

11:54.190 --> 11:57.270
You've put your $5 minimum balance on there.

11:57.510 --> 12:05.790
We are now ready to go back to Nh10 and build an AI agent that connects to OpenAI and does stuff.

12:05.870 --> 12:06.630
Let's go.
