anotherjesse
/
illusion-diffusion-hq-img2img
- Public
- 26.1K runs
Run anotherjesse/illusion-diffusion-hq-img2img with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
prompt |
string
|
The prompt to guide QR Code generation.
|
|
qr_code_content |
string
|
The website/content your QR Code will point to.
|
|
negative_prompt |
string
|
ugly, disfigured, low quality, blurry, nsfw
|
The negative prompt to guide image generation.
|
num_inference_steps |
integer
|
40
Min: 20 Max: 100 |
Number of diffusion steps
|
guidance_scale |
number
|
7.5
Min: 0.1 Max: 30.0 |
Scale for classifier-free guidance
|
seed |
integer
|
Seed
|
|
width |
integer
|
768
|
Width out the output image
|
height |
integer
|
768
|
Height out the output image
|
num_outputs |
integer
|
1
Min: 1 Max: 4 |
Number of outputs
|
image |
string
|
Optional Input image for img2img
|
|
prompt_strength |
number
|
0.8
Max: 1.0 |
Strength of prompt
|
control_image |
string
|
Input image for control. If none is provided, a QR code will be generated
|
|
controlnet_conditioning_scale |
number
|
1.0
Max: 4.0 |
The outputs of the controlnet are multiplied by `controlnet_conditioning_scale` before they are added to the residual in the original unet.
|
border |
integer
|
1
Max: 4 |
QR code border size
|
qrcode_background |
string
(enum)
|
gray
Options: gray, white |
Background color of raw QR code
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 5,
"description": "Seed"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 9,
"description": "Optional Input image for img2img"
},
"width": {
"type": "integer",
"title": "Width",
"default": 768,
"x-order": 6,
"description": "Width out the output image"
},
"border": {
"type": "integer",
"title": "Border",
"default": 1,
"x-order": 13,
"description": "QR code border size",
"minimum": 0,
"maximum": 4
},
"height": {
"type": "integer",
"title": "Height",
"default": 768,
"x-order": 7,
"description": "Height out the output image"
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "The prompt to guide QR Code generation."
},
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"x-order": 8,
"description": "Number of outputs",
"minimum": 1,
"maximum": 4
},
"control_image": {
"type": "string",
"title": "Control Image",
"format": "uri",
"x-order": 11,
"description": "Input image for control. If none is provided, a QR code will be generated"
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 7.5,
"x-order": 4,
"description": "Scale for classifier-free guidance",
"minimum": 0.1,
"maximum": 30.0
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "ugly, disfigured, low quality, blurry, nsfw",
"x-order": 2,
"description": "The negative prompt to guide image generation."
},
"prompt_strength": {
"type": "number",
"title": "Prompt Strength",
"default": 0.8,
"x-order": 10,
"description": "Strength of prompt",
"minimum": 0.0,
"maximum": 1.0
},
"qr_code_content": {
"type": "string",
"title": "Qr Code Content",
"x-order": 1,
"description": "The website/content your QR Code will point to."
},
"qrcode_background": {
"enum": [
"gray",
"white"
],
"type": "string",
"title": "qrcode_background",
"description": "Background color of raw QR code",
"default": "gray",
"x-order": 14
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 40,
"x-order": 3,
"description": "Number of diffusion steps",
"minimum": 20,
"maximum": 100
},
"controlnet_conditioning_scale": {
"type": "number",
"title": "Controlnet Conditioning Scale",
"default": 1.0,
"x-order": 12,
"description": "The outputs of the controlnet are multiplied by `controlnet_conditioning_scale` before they are added to the residual in the original unet.",
"minimum": 0.0,
"maximum": 4.0
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}