nateraw
/
qrcode-stable-diffusion
Create Stylish AI-Generated QR Codes with Stable Diffusion
- Public
- 55.8K runs
-
T4
- GitHub
Prediction
nateraw/qrcode-stable-diffusion:9cdabf8f8a991351960c7ce2105de2909514b40bd27ac202dba57935b07d29d4IDvzurxizbjue7tk54vkxnlzvztaStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 1234
- prompt
- The french countryside, green pastures, lush environment, vivid colors, animation by studio ghibli
- strength
- 0.9
- batch_size
- 1
- guidance_scale
- 7.5
- negative_prompt
- ugly, disfigured, low quality, blurry, nsfw
- qr_code_content
- https://replicate.com
- num_inference_steps
- 40
- controlnet_conditioning_scale
- 1.5
{ "seed": 1234, "prompt": "The french countryside, green pastures, lush environment, vivid colors, animation by studio ghibli", "strength": 0.9, "batch_size": 1, "guidance_scale": 7.5, "negative_prompt": "ugly, disfigured, low quality, blurry, nsfw", "qr_code_content": "https://replicate.com", "num_inference_steps": 40, "controlnet_conditioning_scale": 1.5 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nateraw/qrcode-stable-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nateraw/qrcode-stable-diffusion:9cdabf8f8a991351960c7ce2105de2909514b40bd27ac202dba57935b07d29d4", { input: { seed: 1234, prompt: "The french countryside, green pastures, lush environment, vivid colors, animation by studio ghibli", strength: 0.9, batch_size: 1, guidance_scale: 7.5, negative_prompt: "ugly, disfigured, low quality, blurry, nsfw", qr_code_content: "https://replicate.com", num_inference_steps: 40, controlnet_conditioning_scale: 1.5 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nateraw/qrcode-stable-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nateraw/qrcode-stable-diffusion:9cdabf8f8a991351960c7ce2105de2909514b40bd27ac202dba57935b07d29d4", input={ "seed": 1234, "prompt": "The french countryside, green pastures, lush environment, vivid colors, animation by studio ghibli", "strength": 0.9, "batch_size": 1, "guidance_scale": 7.5, "negative_prompt": "ugly, disfigured, low quality, blurry, nsfw", "qr_code_content": "https://replicate.com", "num_inference_steps": 40, "controlnet_conditioning_scale": 1.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run nateraw/qrcode-stable-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "9cdabf8f8a991351960c7ce2105de2909514b40bd27ac202dba57935b07d29d4", "input": { "seed": 1234, "prompt": "The french countryside, green pastures, lush environment, vivid colors, animation by studio ghibli", "strength": 0.9, "batch_size": 1, "guidance_scale": 7.5, "negative_prompt": "ugly, disfigured, low quality, blurry, nsfw", "qr_code_content": "https://replicate.com", "num_inference_steps": 40, "controlnet_conditioning_scale": 1.5 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-06-30T02:39:25.006348Z", "created_at": "2023-06-30T02:32:43.529254Z", "data_removed": false, "error": null, "id": "vzurxizbjue7tk54vkxnlzvzta", "input": { "seed": 1234, "prompt": "The french countryside, green pastures, lush environment, vivid colors, animation by studio ghibli", "strength": 0.9, "batch_size": 1, "guidance_scale": 7.5, "negative_prompt": "ugly, disfigured, low quality, blurry, nsfw", "qr_code_content": "https://replicate.com", "num_inference_steps": 40, "controlnet_conditioning_scale": 1.5 }, "logs": "Generating QR Code from content\n 0%| | 0/36 [00:00<?, ?it/s]\n 3%|▎ | 1/36 [00:00<00:21, 1.61it/s]\n 6%|▌ | 2/36 [00:01<00:18, 1.81it/s]\n 8%|▊ | 3/36 [00:01<00:17, 1.89it/s]\n 11%|█ | 4/36 [00:02<00:16, 1.92it/s]\n 14%|█▍ | 5/36 [00:02<00:16, 1.94it/s]\n 17%|█▋ | 6/36 [00:03<00:15, 1.95it/s]\n 19%|█▉ | 7/36 [00:03<00:14, 1.95it/s]\n 22%|██▏ | 8/36 [00:04<00:14, 1.96it/s]\n 25%|██▌ | 9/36 [00:04<00:13, 1.96it/s]\n 28%|██▊ | 10/36 [00:05<00:13, 1.97it/s]\n 31%|███ | 11/36 [00:05<00:12, 1.97it/s]\n 33%|███▎ | 12/36 [00:06<00:12, 1.96it/s]\n 36%|███▌ | 13/36 [00:06<00:11, 1.96it/s]\n 39%|███▉ | 14/36 [00:07<00:11, 1.95it/s]\n 42%|████▏ | 15/36 [00:07<00:10, 1.95it/s]\n 44%|████▍ | 16/36 [00:08<00:10, 1.95it/s]\n 47%|████▋ | 17/36 [00:08<00:09, 1.95it/s]\n 50%|█████ | 18/36 [00:09<00:09, 1.95it/s]\n 53%|█████▎ | 19/36 [00:09<00:08, 1.95it/s]\n 56%|█████▌ | 20/36 [00:10<00:08, 1.94it/s]\n 58%|█████▊ | 21/36 [00:10<00:07, 1.94it/s]\n 61%|██████ | 22/36 [00:11<00:07, 1.94it/s]\n 64%|██████▍ | 23/36 [00:11<00:06, 1.94it/s]\n 67%|██████▋ | 24/36 [00:12<00:06, 1.94it/s]\n 69%|██████▉ | 25/36 [00:12<00:05, 1.94it/s]\n 72%|███████▏ | 26/36 [00:13<00:05, 1.94it/s]\n 75%|███████▌ | 27/36 [00:13<00:04, 1.94it/s]\n 78%|███████▊ | 28/36 [00:14<00:04, 1.93it/s]\n 81%|████████ | 29/36 [00:14<00:03, 1.94it/s]\n 83%|████████▎ | 30/36 [00:15<00:03, 1.93it/s]\n 86%|████████▌ | 31/36 [00:15<00:02, 1.93it/s]\n 89%|████████▉ | 32/36 [00:16<00:02, 1.93it/s]\n 92%|█████████▏| 33/36 [00:17<00:01, 1.93it/s]\n 94%|█████████▍| 34/36 [00:17<00:01, 1.93it/s]\n 97%|█████████▋| 35/36 [00:18<00:00, 1.93it/s]\n100%|██████████| 36/36 [00:18<00:00, 1.92it/s]\n100%|██████████| 36/36 [00:18<00:00, 1.94it/s]", "metrics": { "predict_time": 27.185761, "total_time": 401.477094 }, "output": [ "https://replicate.delivery/pbxt/ELT1NcUX34Y9JRTgMBAC0fdsVJG0j5flt6ksOaouz8YcJfViA/output-0.png" ], "started_at": "2023-06-30T02:38:57.820587Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vzurxizbjue7tk54vkxnlzvzta", "cancel": "https://api.replicate.com/v1/predictions/vzurxizbjue7tk54vkxnlzvzta/cancel" }, "version": "9cdabf8f8a991351960c7ce2105de2909514b40bd27ac202dba57935b07d29d4" }
Generated inGenerating QR Code from content 0%| | 0/36 [00:00<?, ?it/s] 3%|▎ | 1/36 [00:00<00:21, 1.61it/s] 6%|▌ | 2/36 [00:01<00:18, 1.81it/s] 8%|▊ | 3/36 [00:01<00:17, 1.89it/s] 11%|█ | 4/36 [00:02<00:16, 1.92it/s] 14%|█▍ | 5/36 [00:02<00:16, 1.94it/s] 17%|█▋ | 6/36 [00:03<00:15, 1.95it/s] 19%|█▉ | 7/36 [00:03<00:14, 1.95it/s] 22%|██▏ | 8/36 [00:04<00:14, 1.96it/s] 25%|██▌ | 9/36 [00:04<00:13, 1.96it/s] 28%|██▊ | 10/36 [00:05<00:13, 1.97it/s] 31%|███ | 11/36 [00:05<00:12, 1.97it/s] 33%|███▎ | 12/36 [00:06<00:12, 1.96it/s] 36%|███▌ | 13/36 [00:06<00:11, 1.96it/s] 39%|███▉ | 14/36 [00:07<00:11, 1.95it/s] 42%|████▏ | 15/36 [00:07<00:10, 1.95it/s] 44%|████▍ | 16/36 [00:08<00:10, 1.95it/s] 47%|████▋ | 17/36 [00:08<00:09, 1.95it/s] 50%|█████ | 18/36 [00:09<00:09, 1.95it/s] 53%|█████▎ | 19/36 [00:09<00:08, 1.95it/s] 56%|█████▌ | 20/36 [00:10<00:08, 1.94it/s] 58%|█████▊ | 21/36 [00:10<00:07, 1.94it/s] 61%|██████ | 22/36 [00:11<00:07, 1.94it/s] 64%|██████▍ | 23/36 [00:11<00:06, 1.94it/s] 67%|██████▋ | 24/36 [00:12<00:06, 1.94it/s] 69%|██████▉ | 25/36 [00:12<00:05, 1.94it/s] 72%|███████▏ | 26/36 [00:13<00:05, 1.94it/s] 75%|███████▌ | 27/36 [00:13<00:04, 1.94it/s] 78%|███████▊ | 28/36 [00:14<00:04, 1.93it/s] 81%|████████ | 29/36 [00:14<00:03, 1.94it/s] 83%|████████▎ | 30/36 [00:15<00:03, 1.93it/s] 86%|████████▌ | 31/36 [00:15<00:02, 1.93it/s] 89%|████████▉ | 32/36 [00:16<00:02, 1.93it/s] 92%|█████████▏| 33/36 [00:17<00:01, 1.93it/s] 94%|█████████▍| 34/36 [00:17<00:01, 1.93it/s] 97%|█████████▋| 35/36 [00:18<00:00, 1.93it/s] 100%|██████████| 36/36 [00:18<00:00, 1.92it/s] 100%|██████████| 36/36 [00:18<00:00, 1.94it/s]
Prediction
nateraw/qrcode-stable-diffusion:9cdabf8f8a991351960c7ce2105de2909514b40bd27ac202dba57935b07d29d4Input
- seed
- 42
- prompt
- interior of luxury condominium with minimalist furniture and lush house plants and abstract wall paintings | modern architecture by makoto shinkai, ilya kuvshinov, lois van baarle, rossdraws and frank lloyd wright
- strength
- 0.9
- batch_size
- 1
- guidance_scale
- 7.5
- negative_prompt
- ugly, disfigured, low quality, blurry, nsfw
- qr_code_content
- https://replicate.com
- num_inference_steps
- 50
- controlnet_conditioning_scale
- 1.5
{ "seed": 42, "prompt": "interior of luxury condominium with minimalist furniture and lush house plants and abstract wall paintings | modern architecture by makoto shinkai, ilya kuvshinov, lois van baarle, rossdraws and frank lloyd wright", "strength": 0.9, "batch_size": 1, "guidance_scale": 7.5, "negative_prompt": "ugly, disfigured, low quality, blurry, nsfw", "qr_code_content": "https://replicate.com", "num_inference_steps": 50, "controlnet_conditioning_scale": 1.5 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nateraw/qrcode-stable-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nateraw/qrcode-stable-diffusion:9cdabf8f8a991351960c7ce2105de2909514b40bd27ac202dba57935b07d29d4", { input: { seed: 42, prompt: "interior of luxury condominium with minimalist furniture and lush house plants and abstract wall paintings | modern architecture by makoto shinkai, ilya kuvshinov, lois van baarle, rossdraws and frank lloyd wright", strength: 0.9, batch_size: 1, guidance_scale: 7.5, negative_prompt: "ugly, disfigured, low quality, blurry, nsfw", qr_code_content: "https://replicate.com", num_inference_steps: 50, controlnet_conditioning_scale: 1.5 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nateraw/qrcode-stable-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nateraw/qrcode-stable-diffusion:9cdabf8f8a991351960c7ce2105de2909514b40bd27ac202dba57935b07d29d4", input={ "seed": 42, "prompt": "interior of luxury condominium with minimalist furniture and lush house plants and abstract wall paintings | modern architecture by makoto shinkai, ilya kuvshinov, lois van baarle, rossdraws and frank lloyd wright", "strength": 0.9, "batch_size": 1, "guidance_scale": 7.5, "negative_prompt": "ugly, disfigured, low quality, blurry, nsfw", "qr_code_content": "https://replicate.com", "num_inference_steps": 50, "controlnet_conditioning_scale": 1.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run nateraw/qrcode-stable-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "9cdabf8f8a991351960c7ce2105de2909514b40bd27ac202dba57935b07d29d4", "input": { "seed": 42, "prompt": "interior of luxury condominium with minimalist furniture and lush house plants and abstract wall paintings | modern architecture by makoto shinkai, ilya kuvshinov, lois van baarle, rossdraws and frank lloyd wright", "strength": 0.9, "batch_size": 1, "guidance_scale": 7.5, "negative_prompt": "ugly, disfigured, low quality, blurry, nsfw", "qr_code_content": "https://replicate.com", "num_inference_steps": 50, "controlnet_conditioning_scale": 1.5 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-06-30T02:42:12.529235Z", "created_at": "2023-06-30T02:41:45.642584Z", "data_removed": false, "error": null, "id": "4ofvvhzbthezsrx2tbfpdyqqfy", "input": { "seed": 42, "prompt": "interior of luxury condominium with minimalist furniture and lush house plants and abstract wall paintings | modern architecture by makoto shinkai, ilya kuvshinov, lois van baarle, rossdraws and frank lloyd wright", "strength": 0.9, "batch_size": 1, "guidance_scale": 7.5, "negative_prompt": "ugly, disfigured, low quality, blurry, nsfw", "qr_code_content": "https://replicate.com", "num_inference_steps": 50, "controlnet_conditioning_scale": 1.5 }, "logs": "Generating QR Code from content\n 0%| | 0/45 [00:00<?, ?it/s]\n 2%|▏ | 1/45 [00:00<00:23, 1.90it/s]\n 4%|▍ | 2/45 [00:01<00:23, 1.86it/s]\n 7%|▋ | 3/45 [00:01<00:22, 1.86it/s]\n 9%|▉ | 4/45 [00:02<00:22, 1.85it/s]\n 11%|█ | 5/45 [00:02<00:21, 1.85it/s]\n 13%|█▎ | 6/45 [00:03<00:21, 1.84it/s]\n 16%|█▌ | 7/45 [00:03<00:20, 1.85it/s]\n 18%|█▊ | 8/45 [00:04<00:20, 1.84it/s]\n 20%|██ | 9/45 [00:04<00:19, 1.84it/s]\n 22%|██▏ | 10/45 [00:05<00:19, 1.83it/s]\n 24%|██▍ | 11/45 [00:05<00:18, 1.84it/s]\n 27%|██▋ | 12/45 [00:06<00:18, 1.83it/s]\n 29%|██▉ | 13/45 [00:07<00:17, 1.84it/s]\n 31%|███ | 14/45 [00:07<00:17, 1.82it/s]\n 33%|███▎ | 15/45 [00:08<00:16, 1.83it/s]\n 36%|███▌ | 16/45 [00:08<00:15, 1.83it/s]\n 38%|███▊ | 17/45 [00:09<00:15, 1.83it/s]\n 40%|████ | 18/45 [00:09<00:14, 1.82it/s]\n 42%|████▏ | 19/45 [00:10<00:14, 1.83it/s]\n 44%|████▍ | 20/45 [00:10<00:13, 1.83it/s]\n 47%|████▋ | 21/45 [00:11<00:13, 1.82it/s]\n 49%|████▉ | 22/45 [00:12<00:12, 1.81it/s]\n 51%|█████ | 23/45 [00:12<00:12, 1.81it/s]\n 53%|█████▎ | 24/45 [00:13<00:11, 1.81it/s]\n 56%|█████▌ | 25/45 [00:13<00:11, 1.81it/s]\n 58%|█████▊ | 26/45 [00:14<00:10, 1.81it/s]\n 60%|██████ | 27/45 [00:14<00:09, 1.80it/s]\n 62%|██████▏ | 28/45 [00:15<00:09, 1.80it/s]\n 64%|██████▍ | 29/45 [00:15<00:08, 1.80it/s]\n 67%|██████▋ | 30/45 [00:16<00:08, 1.79it/s]\n 69%|██████▉ | 31/45 [00:17<00:07, 1.80it/s]\n 71%|███████ | 32/45 [00:17<00:07, 1.79it/s]\n 73%|███████▎ | 33/45 [00:18<00:06, 1.79it/s]\n 76%|███████▌ | 34/45 [00:18<00:06, 1.79it/s]\n 78%|███████▊ | 35/45 [00:19<00:05, 1.79it/s]\n 80%|████████ | 36/45 [00:19<00:05, 1.78it/s]\n 82%|████████▏ | 37/45 [00:20<00:04, 1.78it/s]\n 84%|████████▍ | 38/45 [00:20<00:03, 1.77it/s]\n 87%|████████▋ | 39/45 [00:21<00:03, 1.77it/s]\n 89%|████████▉ | 40/45 [00:22<00:02, 1.77it/s]\n 91%|█████████ | 41/45 [00:22<00:02, 1.77it/s]\n 93%|█████████▎| 42/45 [00:23<00:01, 1.77it/s]\n 96%|█████████▌| 43/45 [00:23<00:01, 1.77it/s]\n 98%|█████████▊| 44/45 [00:24<00:00, 1.76it/s]\n100%|██████████| 45/45 [00:24<00:00, 1.76it/s]\n100%|██████████| 45/45 [00:24<00:00, 1.81it/s]", "metrics": { "predict_time": 26.914883, "total_time": 26.886651 }, "output": [ "https://replicate.delivery/pbxt/twFC9G6limbaOFO3HTiv2xhJml93wVMe9K479PCBh9uBmfKRA/output-0.png" ], "started_at": "2023-06-30T02:41:45.614352Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/4ofvvhzbthezsrx2tbfpdyqqfy", "cancel": "https://api.replicate.com/v1/predictions/4ofvvhzbthezsrx2tbfpdyqqfy/cancel" }, "version": "9cdabf8f8a991351960c7ce2105de2909514b40bd27ac202dba57935b07d29d4" }
Generated inGenerating QR Code from content 0%| | 0/45 [00:00<?, ?it/s] 2%|▏ | 1/45 [00:00<00:23, 1.90it/s] 4%|▍ | 2/45 [00:01<00:23, 1.86it/s] 7%|▋ | 3/45 [00:01<00:22, 1.86it/s] 9%|▉ | 4/45 [00:02<00:22, 1.85it/s] 11%|█ | 5/45 [00:02<00:21, 1.85it/s] 13%|█▎ | 6/45 [00:03<00:21, 1.84it/s] 16%|█▌ | 7/45 [00:03<00:20, 1.85it/s] 18%|█▊ | 8/45 [00:04<00:20, 1.84it/s] 20%|██ | 9/45 [00:04<00:19, 1.84it/s] 22%|██▏ | 10/45 [00:05<00:19, 1.83it/s] 24%|██▍ | 11/45 [00:05<00:18, 1.84it/s] 27%|██▋ | 12/45 [00:06<00:18, 1.83it/s] 29%|██▉ | 13/45 [00:07<00:17, 1.84it/s] 31%|███ | 14/45 [00:07<00:17, 1.82it/s] 33%|███▎ | 15/45 [00:08<00:16, 1.83it/s] 36%|███▌ | 16/45 [00:08<00:15, 1.83it/s] 38%|███▊ | 17/45 [00:09<00:15, 1.83it/s] 40%|████ | 18/45 [00:09<00:14, 1.82it/s] 42%|████▏ | 19/45 [00:10<00:14, 1.83it/s] 44%|████▍ | 20/45 [00:10<00:13, 1.83it/s] 47%|████▋ | 21/45 [00:11<00:13, 1.82it/s] 49%|████▉ | 22/45 [00:12<00:12, 1.81it/s] 51%|█████ | 23/45 [00:12<00:12, 1.81it/s] 53%|█████▎ | 24/45 [00:13<00:11, 1.81it/s] 56%|█████▌ | 25/45 [00:13<00:11, 1.81it/s] 58%|█████▊ | 26/45 [00:14<00:10, 1.81it/s] 60%|██████ | 27/45 [00:14<00:09, 1.80it/s] 62%|██████▏ | 28/45 [00:15<00:09, 1.80it/s] 64%|██████▍ | 29/45 [00:15<00:08, 1.80it/s] 67%|██████▋ | 30/45 [00:16<00:08, 1.79it/s] 69%|██████▉ | 31/45 [00:17<00:07, 1.80it/s] 71%|███████ | 32/45 [00:17<00:07, 1.79it/s] 73%|███████▎ | 33/45 [00:18<00:06, 1.79it/s] 76%|███████▌ | 34/45 [00:18<00:06, 1.79it/s] 78%|███████▊ | 35/45 [00:19<00:05, 1.79it/s] 80%|████████ | 36/45 [00:19<00:05, 1.78it/s] 82%|████████▏ | 37/45 [00:20<00:04, 1.78it/s] 84%|████████▍ | 38/45 [00:20<00:03, 1.77it/s] 87%|████████▋ | 39/45 [00:21<00:03, 1.77it/s] 89%|████████▉ | 40/45 [00:22<00:02, 1.77it/s] 91%|█████████ | 41/45 [00:22<00:02, 1.77it/s] 93%|█████████▎| 42/45 [00:23<00:01, 1.77it/s] 96%|█████████▌| 43/45 [00:23<00:01, 1.77it/s] 98%|█████████▊| 44/45 [00:24<00:00, 1.76it/s] 100%|██████████| 45/45 [00:24<00:00, 1.76it/s] 100%|██████████| 45/45 [00:24<00:00, 1.81it/s]
Want to make some of these yourself?
Run this model