🎉 New Year Sale: Get 20% OFF on all plans — Use code NEWYEAR2026.

Upgrade now
QR Code Generator thumbnail

ModelsLab/QR Code Generator

qr-code-generator
QR Code Generator transforms plain QR codes into visually appealing, image-based designs while keeping them fully scannable
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v5/controlnet

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"prompt": "A giant whale flying in the sky",
"init_image": "https://assets.modelslab.com/generations/2d219313-b15f-4e19-8abe-a770dd03425a",
"model_id": "qr-code-generator",
"width": "1024",
"height": "1024",
"controlnet_conditioning_scale": "0.7",
"auto_hint": true,
"tomesd": true,
"negative_prompt": "((body)), ((human)),((female)),((woman)),((person)),((girl)),(normal quality), (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime), text, cropped, out of frame, (low quality), (worst quality), paintings, sketches,lowres, text, cropped, worst quality, low quality, normal quality, signature, watermark, username, blurry,skech,logo,blurry, drawing, sketch, poor quality, ugly, low resolution, saturated, high contrast, oversharpened,low quality, bad anatomy, worst quality,((deformed)), ((deformed objects)), (disfigured), cropped, jpeg artifacts, error, mutation,noise, duplication, bad proportions, UnrealisticDream",
"guidance_scale": "7.5",
"num_inference_steps": "31",
"controlnet_type": "qrcode",
"controlnet_model": "qrcode",
"strength": "5",
"base64": "no",
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
promptpromptEnter Prompt for generating QR image
imageinit_imageUpload your QR image here
Modelmodel_idselect the model_id
Widthwidthwidth of the image that need to be generated
Heightheightheight of the generated output
image strengthcontrolnet_conditioning_scale0.1 (Creative) takes min refrance from init image and 1.0 takes max refrance from init image
auto_hintauto_hintAutomatically process control input
tomesdtomesdNo description available
Negative Promptnegative_promptThings you do not want in the generated image
guidance_scale"guidance_scaleHow closely to follow the prompt (1-10)
Stepsnum_inference_stepsNumber of inference steps
controlnet_typecontrolnet_typeControlNet type (must match model)
controlnet_modelcontrolnet_modelControlNet model type
StrengthstrengthHow much to follow prompt vs original (1=more prompt, 0.1=minimal change)
base64base64Get response as a base64 string. Pass init_image, mask_image, and control_image as base64 strings to get base64 response