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
|
{
"type": "object",
"title": "Input",
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 4,
"description": "Random seed. Set for reproducible generation"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 1,
"description": "Upload an image for inpainting. This will be the base image that will be partially modified."
},
"width": {
"type": "integer",
"title": "Width",
"default": 1408,
"x-order": 5
},
"height": {
"type": "integer",
"title": "Height",
"default": 784,
"x-order": 6
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "High quailty, 4K, UHD",
"x-order": 0,
"description": "Prompt for generated image"
},
"version": {
"type": "number",
"title": "Version",
"default": 0,
"x-order": 14,
"description": "API version number. Different versions may produce different results."
},
"guidance": {
"type": "number",
"title": "Guidance",
"default": 30,
"x-order": 3
},
"margin_x": {
"type": "integer",
"title": "Margin X",
"default": 0,
"x-order": 7,
"description": "Horizontal margin from left edge of canvas"
},
"margin_y": {
"type": "integer",
"title": "Margin Y",
"default": 0,
"x-order": 8,
"description": "Vertical margin from top edge of canvas"
},
"fast_mode": {
"type": "boolean",
"title": "Fast Mode",
"default": false,
"x-order": 15,
"description": "Fast response mode - skip actual generation if true"
},
"overlap_top": {
"type": "boolean",
"title": "Overlap Top",
"default": true,
"x-order": 12,
"description": "Activation Outpaint top overlap"
},
"overlap_left": {
"type": "boolean",
"title": "Overlap Left",
"default": true,
"x-order": 10,
"description": "Activation Outpaint left overlap"
},
"overlap_right": {
"type": "boolean",
"title": "Overlap Right",
"default": true,
"x-order": 11,
"description": "Activation Outpaint right overlap"
},
"overlap_bottom": {
"type": "boolean",
"title": "Overlap Bottom",
"default": true,
"x-order": 13,
"description": "Activation Outpaint bottom overlap"
},
"overlap_percentage": {
"type": "integer",
"title": "Overlap Percentage",
"default": 10,
"x-order": 9,
"description": "Overlap percentage"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 28,
"x-order": 2,
"description": "The number of interfence steps"
}
}
}
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"
}