runvnc/controlnet4

Public
88.6K runs

Run runvnc/controlnet4 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
image
string
Input image
prompt
string
Prompt for the model
structure
None
Structure to condition on
num_samples
None
1
Number of samples (higher values may OOM)
image_resolution
None
512
Resolution of image (square)
ddim_steps
integer
20
Steps
strength
number
1
Control strength
scale
number
9

Min: 0.1

Max: 30

Scale for classifier-free guidance
seed
integer
Seed
eta
number
0
Controls the amount of noise that is added to the input data during the denoising diffusion process. Higher value -> more noise
preprocessor_resolution
integer
512
Preprocessor resolution
a_prompt
string
Best quality, extremely detailed
Additional text to be appended to prompt
n_prompt
string
Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality
Negative prompt
low_threshold
integer
100

Min: 1

Max: 255

[canny only] Line detection low threshold
high_threshold
integer
200

Min: 1

Max: 255

[canny only] Line detection high threshold

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}