lightweight-ai
/
lwjay
- Public
- 0 runs
-
L40S
Run lightweight-ai/lwjay 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
|
1280
|
None
|
height |
integer
|
1024
|
None
|
overlap_percentage |
integer
|
10
|
None
|
resize_option |
string
|
Full
|
Input image resize option: (Full, 50%, 33%, 25%, Custom)
|
custom_resize_percentage |
integer
|
50
|
None
|
alignment |
string
(enum)
|
Middle
Options: Middle, Left, Right, Top, Bottom |
Input image alignment option perspective to background image
|
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
|
{
"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": 1280,
"x-order": 5
},
"height": {
"type": "integer",
"title": "Height",
"default": 1024,
"x-order": 6
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "High quailty, 4K, UHD",
"x-order": 0,
"description": "Prompt for generated image"
},
"guidance": {
"type": "number",
"title": "Guidance",
"default": 30,
"x-order": 3
},
"alignment": {
"enum": [
"Middle",
"Left",
"Right",
"Top",
"Bottom"
],
"type": "string",
"title": "alignment",
"description": "Input image alignment option perspective to background image",
"default": "Middle",
"x-order": 10
},
"overlap_top": {
"type": "boolean",
"title": "Overlap Top",
"default": true,
"x-order": 13,
"description": "Activation Outpaint top overlap"
},
"overlap_left": {
"type": "boolean",
"title": "Overlap Left",
"default": true,
"x-order": 11,
"description": "Activation Outpaint left overlap"
},
"overlap_right": {
"type": "boolean",
"title": "Overlap Right",
"default": true,
"x-order": 12,
"description": "Activation Outpaint right overlap"
},
"resize_option": {
"type": "string",
"title": "Resize Option",
"default": "Full",
"x-order": 8,
"description": "Input image resize option: (Full, 50%, 33%, 25%, Custom)"
},
"overlap_bottom": {
"type": "boolean",
"title": "Overlap Bottom",
"default": true,
"x-order": 14,
"description": "Activation Outpaint bottom overlap"
},
"overlap_percentage": {
"type": "integer",
"title": "Overlap Percentage",
"default": 10,
"x-order": 7
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 28,
"x-order": 2,
"description": "The number of interfence steps"
},
"custom_resize_percentage": {
"type": "integer",
"title": "Custom Resize Percentage",
"default": 50,
"x-order": 9
}
}
}
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"
}