lightweight-ai / op_sdxl

  • Public
  • 23.9K runs

Run lightweight-ai/op_sdxl 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
High quailty, 4K, UHD
Prompt for generated image
image
string
Upload an image for inpainting. This will be the base image that will be partially modified.
num_inference_steps
integer
28
The number of interfence steps
guidance
number
30
None
seed
integer
Random seed. Set for reproducible generation
width
integer
1408
None
height
integer
784
None
margin_x
integer
0
Horizontal margin from left edge of canvas
margin_y
integer
0
Vertical margin from top edge of canvas
overlap_percentage
integer
10
Overlap percentage
overlap_left
boolean
True
Activation Outpaint left overlap
overlap_right
boolean
True
Activation Outpaint right overlap
overlap_top
boolean
True
Activation Outpaint top overlap
overlap_bottom
boolean
True
Activation Outpaint bottom overlap
version
number
0
API version number. Different versions may produce different results.
fast_mode
boolean
False
Fast response mode - skip actual generation if true

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"
}