qr2ai
/
qr_code_ai_art_generator
QR Code AI Art Generator
- Public
- 2.9K runs
-
T4
Run qr2ai/qr_code_ai_art_generator with an API
Use one of our client libraries to get started quickly.
Set the REPLICATE_API_TOKEN
environment variable
export REPLICATE_API_TOKEN=<paste-your-token-here>
Learn more about authentication
Install Replicate’s Node.js client library
npm install replicate
Run qr2ai/qr_code_ai_art_generator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
import Replicate from "replicate";
const replicate = new Replicate();
const input = {
seed: 7649977190,
border: 2,
prompt: "surreal concept art of a futuristic house floating on a cloud with waterfall, peaceful and modern, cosy, minimalistic, big windows, natural lighting, sci-fi, lots of details, intricate scene, correct, digital painting, fine tuned, 64k",
guidance_scale: 5.7,
negative_prompt: "Foreboding mystical, unblended, worst quality, normal quality, low quality, low res, blurry, ugly, disfigured, nsfw, people, animal, character, anime",
qr_code_content: "qr2ai.com",
controlnet_conditioning_scale: 1.11
};
const output = await replicate.run("qr2ai/qr_code_ai_art_generator:3c11545581fedfd84313395213d8805dc23fca60c46f24cd86fb9df407ae7113", { input });
import { writeFile } from "node:fs/promises";
for (const [index, item] of Object.entries(output)) {
await writeFile(`output_${index}.png`, item);
}
//=> output_0.png written to disk