ModelsLab/QR Code Generator
qr-code-generatorQR Code Generator transforms plain QR codes into visually appealing, image-based designs while keeping them fully scannable
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 Name | Parameter | Technical Description |
|---|---|---|
| prompt | prompt | Enter Prompt for generating QR image |
| image | init_image | Upload your QR image here |
| Model | model_id | select the model_id |
| Width | width | width of the image that need to be generated |
| Height | height | height of the generated output |
| image strength | controlnet_conditioning_scale | 0.1 (Creative) takes min refrance from init image and 1.0 takes max refrance from init image |
| auto_hint | auto_hint | Automatically process control input |
| tomesd | tomesd | No description available |
| Negative Prompt | negative_prompt | Things you do not want in the generated image |
| guidance_scale" | guidance_scale | How closely to follow the prompt (1-10) |
| Steps | num_inference_steps | Number of inference steps |
| controlnet_type | controlnet_type | ControlNet type (must match model) |
| controlnet_model | controlnet_model | ControlNet model type |
| Strength | strength | How much to follow prompt vs original (1=more prompt, 0.1=minimal change) |
| base64 | base64 | Get response as a base64 string. Pass init_image, mask_image, and control_image as base64 strings to get base64 response |