For designers, its hard to integrate without breaking the color scheme of the whole design.

And to the audience, they just look plain and boring.

What I particularly love is that theyre not trying to replace human artists.

A QR code generated by Ai.

Lucas Gouveia / How-To Geek

AI QR codes have carved out a little domain of their own.

AI-powered QR codes are not just pretty and creativetheseQR codes work.

you’re free to scan any of them with your phone and see for yourself.

QR code in the style of traditional Japanese ink art.

nhciao / Reddit

The best part is that you dont need any technical know-how to create them.

Most of the time, its as simple as typing a text prompt and hitting Enter.

Just as easily as you wouldcreate a regular QR in a net web surfer.

Brown houses in a lakeside town turned into a QR code.

nhciao / Reddit

Here’s how it’s possible for you to create your own pretty quick response codes using AI.

Its fast and effortless.

I tested every QR code generation AI on Replicate and found a clear winner: Illusion.

QR Code in the style of colorful traditional Japanese art.

nhciao / Reddit

Go toIllusion on Replicateand click Sign in with GitHub.

Youll be redirected to GitHub where you could either sign up or sign into GitHub.

It only takes a few steps to join.

Colorful QR code in the shape of abstract shapes and flowers.

HOLUPREDICTIONS / Reddit

Sometimes Replicate will let you fire off the model without signing in first.

Now for the fun part.

bang out your prompt and paste the link under QR Code Content.

Three steps to generating a beautiful QR code using AI and prompt engineering.

Scroll down to Image File and delete the link thats present by default.

Now just hit Enter or click “Run.”

Itll take a few seconds to process and output a stunning QR code.

Various input settings for the QR code generator.

The first thing you’re able to adjust is the Negative Prompt.

you could write things here that you want to exclude from your output.

Keywords like low quality, blurry, or distorted are always good choices.

Other AI QR code generator settings on the Replicate Playground.

Next up, we have the number of inference steps.

The higher this number, the more detailed and higher quality the output.

But thats only up to a point.

AI generated oil painting in the shape of a spiral.

andreasjansson / illusion

After a limit, it just adds to the processing time with barely any gains in the quality.

The guidance scale is pretty simple.

It just determines how closely the output will stick to your initial prompt.

AI generated QR code in the shape of a mountainside forest and lake.

The default is 7.5.

But I found that anything between 4 and 8 works just fine.

you’re able to safely leave the Seed configs untouched.

The width and height are self-explanatorythats how you set the resolution of your output image.

Youll have to leave this section blank to generate QR codes though.

ControlNet Condition Scale is the one setting youll be fiddling with the most.

It controls how QR code-like the final output will look.

The higher this number, the more your output looks like a regular QR code.

Set it lower, and itll create more artistic and blended variants.

Its one 1 by default.

Anything above 2 turns the output into a regular black and white QR code.

Numbers below 1 usually return a nice picture, but its unscannable (pretty much useless).

Most prompts have a sweet spot between 1 and 2.

I set my input to 1.37.

The border is another interesting setting.

you might use a higher number here to get clearly defined edges on the output.

Setting it to 1 or 0 returns a boundless code that stretches to cover the entire canvas.

Here is the final result.

Some Pro Tips

Not every generation made with Illusion is going to be usable.

It can be hit-and-miss (especially when the parameters arent carefully selected).

With the right configuration, almost every output should be functional.

But I recommend you check and double-check the QR codes before putting them to use.

Scan them on different screens, under different lighting, and from different distances.

Stock Androidcamera apps in some phones (like Samsungs) just dont read these artistic QR codes.

But iPhones seem to be far better at reading them by default.

I tested the QR codes with the stockiPhone 12 Procamera, and it read them well every single time.

I also suggest keeping the border set to three or four.

Your QR codes wont “blend” perfectly into their surroundings, but itll give you more usable results.

Another way to get more usable QR codes is to use shortened URL codes.

Longer texts are harder to work into QR codes.

Finally, some prompts just work better as QR codes.

Prompts with clearly defined visual structures (architecture, abstract shapes, machinery) play nicer with QR codes.

There you have it.