WEBVTT

00:01.580 --> 00:07.010
All right, let me walk you through flux, which is my favorite image generation tool.

00:07.040 --> 00:10.130
It's surpassed diffusion in a lot of ways.

00:10.160 --> 00:13.370
It's actually built by one of the same people who built stable diffusion.

00:13.370 --> 00:16.820
So I'm just going to run this just so you can have a see.

00:16.850 --> 00:18.860
And I'm on the foul website.

00:18.860 --> 00:20.180
It's foul AI.

00:20.660 --> 00:25.160
It's quite useful API for running these sorts of things similar to replicate.

00:25.190 --> 00:30.740
Like you could also get some replicate, but you can see it generated a picture here of a tiger with

00:30.740 --> 00:31.940
the word flux on it.

00:31.970 --> 00:38.690
And um, the really cool thing here is that it's just very good at text as well as being fairly photorealistic

00:38.840 --> 00:43.010
to put a name on here and hit run, and then it will do a pretty good job.

00:46.490 --> 00:46.820
There.

00:47.480 --> 00:54.950
It doesn't seem to be as plagued by the gobbledygook text as previous image generation tools like Dall-E

00:54.950 --> 00:57.320
or Midjourney or Stable Diffusion.

00:57.590 --> 01:01.610
Now, the way I mostly use it is for through API access.

01:01.610 --> 01:04.730
They have a quick start here that kind of shows you how to do it.

01:04.760 --> 01:06.860
The main thing is you need to get your trial key.

01:06.890 --> 01:11.300
If you create an account, you can get your API key from from that account up here.

01:12.200 --> 01:15.440
And then and then you'll have to use that in your local environment.

01:15.500 --> 01:19.160
Let me just bring up the tool here.

01:19.250 --> 01:27.080
The this is a Jupyter notebook which will just let you run a file and called flux specifically.

01:27.350 --> 01:33.500
So you just need to install the file client and then also Python end which will load from any environment

01:33.620 --> 01:34.250
thing that you have.

01:34.250 --> 01:40.700
So if you have a dot env file and you just need to put the file key in there, and then when you load

01:40.970 --> 01:43.820
in then that's going to pull that in.

01:43.820 --> 01:45.050
So it will work.

01:45.140 --> 01:46.940
Now I just made a quick function.

01:46.940 --> 01:49.970
Just takes a prompt and the context are just the different variables.

01:49.970 --> 01:54.050
So in this case I'm just doing this prompt here.

01:54.080 --> 01:57.560
I actually got this from from Twitter Jordan O'Connor.

01:57.620 --> 02:04.560
It's what he uses for his you know, blog post background images, which seem to work pretty well,

02:04.830 --> 02:06.180
which is a good example.

02:06.180 --> 02:10.530
So just show you what I've done.

02:10.560 --> 02:17.460
I've just taken his prompt, and then I've put in these things as variables so you can change the text,

02:17.490 --> 02:20.850
the primary color, the image illustration, etc..

02:21.000 --> 02:23.580
So in this case I've got like flux rules.

02:23.610 --> 02:26.790
And then I've put different colors so you can change all those things.

02:26.790 --> 02:29.340
And then I've put the different illustrations in.

02:29.910 --> 02:38.790
So if I generate this it's just going to give you back this URL, give you back the prompt etc..

02:38.790 --> 02:43.170
But then you can display the URL here and you can see flux rules.

02:43.290 --> 02:52.590
So we can change this to red and and bringing out whatever we want.

02:52.620 --> 02:53.850
We can change these.

02:53.850 --> 02:57.480
So we can say I'm just using cursor by the way.

02:57.900 --> 03:03.330
This should come up ones That match.

03:06.300 --> 03:09.690
Match for practice.

03:16.830 --> 03:17.430
So.

03:17.460 --> 03:19.140
And then just to.

03:22.350 --> 03:23.280
Come up with.

03:27.450 --> 03:28.200
Here we go.

03:29.520 --> 03:30.660
So really cool.

03:30.690 --> 03:31.620
It works.

03:31.650 --> 03:33.420
You can see the color scheme as well.

03:33.450 --> 03:37.950
That's different which is nice but yeah brilliant tool.

03:37.980 --> 03:43.230
Like it works really well and I don't think I'm gonna hire another designer.

03:43.410 --> 03:46.230
And unfortunately, because this just works too well.

03:46.410 --> 03:49.230
It's it's really cheap to run, by the way.

03:49.320 --> 03:52.410
You just need to buy API credits, just like you would buy on OpenAI.

03:52.770 --> 03:54.990
And it's quite reliable as well.

03:55.080 --> 03:58.860
So you can actually run it locally on your computer as well if you want to.

03:58.890 --> 04:03.420
But this is the preferred way for me at least if I'm with this.
