lightweight-ai / brush

  • Public
  • 32 runs
Iterate in playground

Run lightweight-ai/brush 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
mask
string
White-Black mask image (white=keep, black=edit)
prompt
string
Prompt to guide generation
negative_prompt
string
ugly, low quality
Negative prompt
invert_mask
boolean
True
Invert mask
blended
boolean
False
Apply blurred blending
control_strength
number
1
BrushNet control strength
guidance_scale
number
12
Classifier-free guidance scale
num_inference_steps
integer
50
Diffusion steps
seed
integer
42
Random seed
randomize_seed
boolean
False
Randomize seed

Output schema

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

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