qr2ai
/
workflow
- Public
- 15 runs
Run qr2ai/workflow 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
|
|
None
|
negative_prompt |
string
|
|
Things you do not want to see in your image
|
width |
integer
|
1024
Min: 512 Max: 2048 |
The width of the image
|
height |
integer
|
1024
Min: 512 Max: 2048 |
The height of the image
|
number_of_images |
integer
|
1
Min: 1 Max: 10 |
The number of images to generate
|
steps |
integer
|
25
Min: 1 Max: 100 |
The number of steps to run the model for (more steps = better image but slower generation. Best results for this model are around 25 steps.)
|
cfg |
number
|
3.5
Max: 20 |
The guidance scale tells the model how similar the output should be to the prompt.
|
sampler |
string
(enum)
|
uni_pc
Options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, dpm_2, dpm_2_ancestral, lms, dpm_fast, dpm_adaptive, dpmpp_2s_ancestral, dpmpp_sde, dpmpp_sde_gpu, dpmpp_2m, dpmpp_2m_sde, dpmpp_2m_sde_gpu, dpmpp_3m_sde, dpmpp_3m_sde_gpu, ddpm, lcm, ddim, uni_pc, uni_pc_bh2, ipndm, ipndm_v, deis |
An enumeration.
|
scheduler |
string
(enum)
|
normal
Options: normal, karras, exponential, sgm_uniform, simple, ddim_uniform |
An enumeration.
|
shift |
number
|
1.73
Max: 10 |
The timestep scheduling shift; shift values higher than 1.0 are better at managing noise in higher resolutions.
|
output_format |
string
(enum)
|
webp
Options: webp, jpg, png |
Format of the output images
|
output_quality |
integer
|
80
Max: 100 |
Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.
|
seed |
integer
|
Set a seed for reproducibility. Random by default.
|
{
"type": "object",
"title": "Input",
"properties": {
"cfg": {
"type": "number",
"title": "Cfg",
"default": 3.5,
"maximum": 20,
"minimum": 0,
"x-order": 6,
"description": "The guidance scale tells the model how similar the output should be to the prompt."
},
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 12,
"description": "Set a seed for reproducibility. Random by default."
},
"shift": {
"type": "number",
"title": "Shift",
"default": 1.73,
"maximum": 10,
"minimum": 0,
"x-order": 9,
"description": "The timestep scheduling shift; shift values higher than 1.0 are better at managing noise in higher resolutions."
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 25,
"maximum": 100,
"minimum": 1,
"x-order": 5,
"description": "The number of steps to run the model for (more steps = better image but slower generation. Best results for this model are around 25 steps.)"
},
"width": {
"type": "integer",
"title": "Width",
"default": 1024,
"maximum": 2048,
"minimum": 512,
"x-order": 2,
"description": "The width of the image"
},
"height": {
"type": "integer",
"title": "Height",
"default": 1024,
"maximum": 2048,
"minimum": 512,
"x-order": 3,
"description": "The height of the image"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "",
"x-order": 0
},
"sampler": {
"enum": [
"euler",
"euler_cfg_pp",
"euler_ancestral",
"euler_ancestral_cfg_pp",
"heun",
"heunpp2",
"dpm_2",
"dpm_2_ancestral",
"lms",
"dpm_fast",
"dpm_adaptive",
"dpmpp_2s_ancestral",
"dpmpp_sde",
"dpmpp_sde_gpu",
"dpmpp_2m",
"dpmpp_2m_sde",
"dpmpp_2m_sde_gpu",
"dpmpp_3m_sde",
"dpmpp_3m_sde_gpu",
"ddpm",
"lcm",
"ddim",
"uni_pc",
"uni_pc_bh2",
"ipndm",
"ipndm_v",
"deis"
],
"type": "string",
"title": "sampler",
"description": "An enumeration.",
"default": "uni_pc",
"x-order": 7
},
"scheduler": {
"enum": [
"normal",
"karras",
"exponential",
"sgm_uniform",
"simple",
"ddim_uniform"
],
"type": "string",
"title": "scheduler",
"description": "An enumeration.",
"default": "normal",
"x-order": 8
},
"output_format": {
"enum": [
"webp",
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Format of the output images",
"default": "webp",
"x-order": 10
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 80,
"maximum": 100,
"minimum": 0,
"x-order": 11,
"description": "Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality."
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 1,
"description": "Things you do not want to see in your image"
},
"number_of_images": {
"type": "integer",
"title": "Number Of Images",
"default": 1,
"maximum": 10,
"minimum": 1,
"x-order": 4,
"description": "The number of images to generate"
}
}
}
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"
}