All right, let me walk you through flux, which is my favorite image generation tool.
It's surpassed diffusion in a lot of ways.
It's actually built by one of the same people who built stable diffusion.
So I'm just going to run this just so you can have a see.
And I'm on the foul website.
It's foul AI.
It's quite useful API for running these sorts of things similar to replicate.
Like you could also get some replicate, but you can see it generated a picture here of a tiger with
the word flux on it.
And um, the really cool thing here is that it's just very good at text as well as being fairly photorealistic
to put a name on here and hit run, and then it will do a pretty good job.
There.
It doesn't seem to be as plagued by the gobbledygook text as previous image generation tools like Dall-E
or Midjourney or Stable Diffusion.
Now, the way I mostly use it is for through API access.
They have a quick start here that kind of shows you how to do it.
The main thing is you need to get your trial key.
If you create an account, you can get your API key from from that account up here.
And then and then you'll have to use that in your local environment.
Let me just bring up the tool here.
The this is a Jupyter notebook which will just let you run a file and called flux specifically.
So you just need to install the file client and then also Python end which will load from any environment
thing that you have.
So if you have a dot env file and you just need to put the file key in there, and then when you load
in then that's going to pull that in.
So it will work.
Now I just made a quick function.
Just takes a prompt and the context are just the different variables.
So in this case I'm just doing this prompt here.
I actually got this from from Twitter Jordan O'Connor.
It's what he uses for his you know, blog post background images, which seem to work pretty well,
which is a good example.
So just show you what I've done.
I've just taken his prompt, and then I've put in these things as variables so you can change the text,
the primary color, the image illustration, etc..
So in this case I've got like flux rules.
And then I've put different colors so you can change all those things.
And then I've put the different illustrations in.
So if I generate this it's just going to give you back this URL, give you back the prompt etc..
But then you can display the URL here and you can see flux rules.
So we can change this to red and and bringing out whatever we want.
We can change these.
So we can say I'm just using cursor by the way.
This should come up ones That match.
Match for practice.
So.
And then just to.
Come up with.
Here we go.
So really cool.
It works.
You can see the color scheme as well.
That's different which is nice but yeah brilliant tool.
Like it works really well and I don't think I'm gonna hire another designer.
And unfortunately, because this just works too well.
It's it's really cheap to run, by the way.
You just need to buy API credits, just like you would buy on OpenAI.
And it's quite reliable as well.
So you can actually run it locally on your computer as well if you want to.
But this is the preferred way for me at least if I'm with this.