okaris
/
omni-bg
- Public
- 49 runs
Run okaris/omni-bg 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 |
---|---|---|---|
job_id |
string
|
Job ID for the model. Randomly generated if not provided
|
|
image |
string
|
Base image for the model
|
|
subject |
string
|
Subject of the image
|
|
placed_on |
string
|
Where the subject is placed
|
|
background |
string
|
Background description
|
|
camera_orientation |
string
|
Camera orientation
|
|
camera_angle |
string
|
Camera angle
|
|
main_light_direction |
string
|
Main light direction
|
|
proposed_background |
string
|
Proposed background
|
|
proposed_brightness |
number
|
Proposed brightness
|
|
prompt_suffix |
string
|
,high quality, medium format, f/32, realistic, cinematic, RAW
|
Prompt suffix
|
prompt_prefix |
string
|
photograph
|
Starting prompt for the model. Gets added with other variables as needed
|
negative_prompt |
string
|
|
Negative prompt for the model. Not necessary, but can be used to guide the model
|
override_prompt |
string
|
|
Override prompt for the model. Not necessary, but can be used to guide the model
|
background_brightness |
number
|
0.5
Min: -1 Max: 1 |
Background brightness for the model
|
force_center |
boolean
|
False
|
Force the subject to be centered
|
seed |
integer
|
-1
|
Random seed for the model. Leave as -1 for random seed
|
height |
integer
|
768
|
Height of the output image. Must be divisible by 32, but this is handled automatically
|
width |
integer
|
1024
|
Width of the output image. Must be divisible by 32, but this is handled automatically
|
final_step_upscale_4x |
boolean
|
False
|
Final step upscale 4x for the model
|
debug_mode |
boolean
|
False
|
Debug mode for the model
|
object_padding |
number
|
0.1
Max: 1 |
Object padding for the model. Percent of the object width
|
first_pass_steps |
integer
|
10
Min: 10 Max: 50 |
Number of steps for the first pass
|
first_pass_i2i_strength |
number
|
1
Max: 1 |
I2I strength for the first pass. Must be 1.0 unless you feel like experimenting
|
first_pass_pag_scale |
number
|
2
Min: 0.5 Max: 5 |
PAG scale for the first pass. 1 or 2 seem to work best
|
first_pass_guidance_scale |
number
|
4
Min: 1 Max: 14 |
Guidance scale for the first pass
|
first_pass_outpaint_strength |
number
|
1
Max: 1 |
Outpaint strength for the first pass
|
first_pass_depth_strength |
number
|
0
Max: 1 |
Depth strength for the first pass. For the first pass we want more flexibility, so 0.0 is a good starting point
|
first_pass_line_strength |
number
|
1
Max: 1 |
Line strength for the first pass
|
skip_second_pass |
boolean
|
False
|
Skip the second pass
|
second_pass_steps |
integer
|
10
Min: 10 Max: 50 |
Number of steps for the second pass
|
second_pass_i2i_strength |
number
|
0.5
Max: 1 |
I2I strength for the second pass
|
second_pass_pag_scale |
number
|
1
Min: 0.5 Max: 5 |
PAG scale for the second pass
|
second_pass_guidance_scale |
number
|
4
Min: 1 Max: 14 |
Guidance scale for the second pass
|
second_pass_outpaint_strength |
number
|
1
Max: 1 |
Outpaint strength for the second pass
|
second_pass_depth_strength |
number
|
1
Max: 1 |
Depth strength for the second pass. We now want to lock in the depth, so 1.0 is a good starting point
|
second_pass_line_strength |
number
|
1
Max: 1 |
Line strength for the second pass
|
skip_light_pass |
boolean
|
False
|
Skip the light pass
|
light_pass_steps |
integer
|
10
Min: 10 Max: 50 |
Number of steps for the light pass. This is a two step process and takes 1.9x steps
|
light_pass_guidance_scale |
number
|
7
Min: 1 Max: 14 |
Guidance scale for the light pass
|
light_mix_scale |
number
|
0.5
Max: 1 |
Mix scale for the light pass. 0.5 is a good starting point
|
{
"type": "object",
"title": "Input",
"required": [
"image",
"subject",
"placed_on",
"background",
"camera_orientation",
"camera_angle",
"main_light_direction",
"proposed_background",
"proposed_brightness"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 16,
"description": "Random seed for the model. Leave as -1 for random seed"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 1,
"description": "Base image for the model"
},
"width": {
"type": "integer",
"title": "Width",
"default": 1024,
"x-order": 18,
"description": "Width of the output image. Must be divisible by 32, but this is handled automatically"
},
"height": {
"type": "integer",
"title": "Height",
"default": 768,
"x-order": 17,
"description": "Height of the output image. Must be divisible by 32, but this is handled automatically"
},
"job_id": {
"type": "string",
"title": "Job Id",
"x-order": 0,
"description": "Job ID for the model. Randomly generated if not provided"
},
"subject": {
"type": "string",
"title": "Subject",
"x-order": 2,
"description": "Subject of the image"
},
"placed_on": {
"type": "string",
"title": "Placed On",
"x-order": 3,
"description": "Where the subject is placed"
},
"background": {
"type": "string",
"title": "Background",
"x-order": 4,
"description": "Background description"
},
"debug_mode": {
"type": "boolean",
"title": "Debug Mode",
"default": false,
"x-order": 20,
"description": "Debug mode for the model"
},
"camera_angle": {
"type": "string",
"title": "Camera Angle",
"x-order": 6,
"description": "Camera angle"
},
"force_center": {
"type": "boolean",
"title": "Force Center",
"default": false,
"x-order": 15,
"description": "Force the subject to be centered"
},
"prompt_prefix": {
"type": "string",
"title": "Prompt Prefix",
"default": "photograph",
"x-order": 11,
"description": "Starting prompt for the model. Gets added with other variables as needed"
},
"prompt_suffix": {
"type": "string",
"title": "Prompt Suffix",
"default": ",high quality, medium format, f/32, realistic, cinematic, RAW",
"x-order": 10,
"description": "Prompt suffix"
},
"object_padding": {
"type": "number",
"title": "Object Padding",
"default": 0.1,
"maximum": 1,
"minimum": 0,
"x-order": 21,
"description": "Object padding for the model. Percent of the object width"
},
"light_mix_scale": {
"type": "number",
"title": "Light Mix Scale",
"default": 0.5,
"maximum": 1,
"minimum": 0,
"x-order": 40,
"description": "Mix scale for the light pass. 0.5 is a good starting point"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 12,
"description": "Negative prompt for the model. Not necessary, but can be used to guide the model"
},
"override_prompt": {
"type": "string",
"title": "Override Prompt",
"default": "",
"x-order": 13,
"description": "Override prompt for the model. Not necessary, but can be used to guide the model"
},
"skip_light_pass": {
"type": "boolean",
"title": "Skip Light Pass",
"default": false,
"x-order": 37,
"description": "Skip the light pass"
},
"first_pass_steps": {
"type": "integer",
"title": "First Pass Steps",
"default": 10,
"maximum": 50,
"minimum": 10,
"x-order": 22,
"description": "Number of steps for the first pass"
},
"light_pass_steps": {
"type": "integer",
"title": "Light Pass Steps",
"default": 10,
"maximum": 50,
"minimum": 10,
"x-order": 38,
"description": "Number of steps for the light pass. This is a two step process and takes 1.9x steps"
},
"skip_second_pass": {
"type": "boolean",
"title": "Skip Second Pass",
"default": false,
"x-order": 29,
"description": "Skip the second pass"
},
"second_pass_steps": {
"type": "integer",
"title": "Second Pass Steps",
"default": 10,
"maximum": 50,
"minimum": 10,
"x-order": 30,
"description": "Number of steps for the second pass"
},
"camera_orientation": {
"type": "string",
"title": "Camera Orientation",
"x-order": 5,
"description": "Camera orientation"
},
"proposed_background": {
"type": "string",
"title": "Proposed Background",
"x-order": 8,
"description": "Proposed background"
},
"proposed_brightness": {
"type": "number",
"title": "Proposed Brightness",
"x-order": 9,
"description": "Proposed brightness"
},
"first_pass_pag_scale": {
"type": "number",
"title": "First Pass Pag Scale",
"default": 2,
"maximum": 5,
"minimum": 0.5,
"x-order": 24,
"description": "PAG scale for the first pass. 1 or 2 seem to work best"
},
"main_light_direction": {
"type": "string",
"title": "Main Light Direction",
"x-order": 7,
"description": "Main light direction"
},
"background_brightness": {
"type": "number",
"title": "Background Brightness",
"default": 0.5,
"maximum": 1,
"minimum": -1,
"x-order": 14,
"description": "Background brightness for the model"
},
"final_step_upscale_4x": {
"type": "boolean",
"title": "Final Step Upscale 4X",
"default": false,
"x-order": 19,
"description": "Final step upscale 4x for the model"
},
"second_pass_pag_scale": {
"type": "number",
"title": "Second Pass Pag Scale",
"default": 1,
"maximum": 5,
"minimum": 0.5,
"x-order": 32,
"description": "PAG scale for the second pass"
},
"first_pass_i2i_strength": {
"type": "number",
"title": "First Pass I2I Strength",
"default": 1,
"maximum": 1,
"minimum": 0,
"x-order": 23,
"description": "I2I strength for the first pass. Must be 1.0 unless you feel like experimenting"
},
"first_pass_line_strength": {
"type": "number",
"title": "First Pass Line Strength",
"default": 1,
"maximum": 1,
"minimum": 0,
"x-order": 28,
"description": "Line strength for the first pass"
},
"second_pass_i2i_strength": {
"type": "number",
"title": "Second Pass I2I Strength",
"default": 0.5,
"maximum": 1,
"minimum": 0,
"x-order": 31,
"description": "I2I strength for the second pass"
},
"first_pass_depth_strength": {
"type": "number",
"title": "First Pass Depth Strength",
"default": 0,
"maximum": 1,
"minimum": 0,
"x-order": 27,
"description": "Depth strength for the first pass. For the first pass we want more flexibility, so 0.0 is a good starting point"
},
"first_pass_guidance_scale": {
"type": "number",
"title": "First Pass Guidance Scale",
"default": 4,
"maximum": 14,
"minimum": 1,
"x-order": 25,
"description": "Guidance scale for the first pass"
},
"light_pass_guidance_scale": {
"type": "number",
"title": "Light Pass Guidance Scale",
"default": 7,
"maximum": 14,
"minimum": 1,
"x-order": 39,
"description": "Guidance scale for the light pass"
},
"second_pass_line_strength": {
"type": "number",
"title": "Second Pass Line Strength",
"default": 1,
"maximum": 1,
"minimum": 0,
"x-order": 36,
"description": "Line strength for the second pass"
},
"second_pass_depth_strength": {
"type": "number",
"title": "Second Pass Depth Strength",
"default": 1,
"maximum": 1,
"minimum": 0,
"x-order": 35,
"description": "Depth strength for the second pass. We now want to lock in the depth, so 1.0 is a good starting point"
},
"second_pass_guidance_scale": {
"type": "number",
"title": "Second Pass Guidance Scale",
"default": 4,
"maximum": 14,
"minimum": 1,
"x-order": 33,
"description": "Guidance scale for the second pass"
},
"first_pass_outpaint_strength": {
"type": "number",
"title": "First Pass Outpaint Strength",
"default": 1,
"maximum": 1,
"minimum": 0,
"x-order": 26,
"description": "Outpaint strength for the first pass"
},
"second_pass_outpaint_strength": {
"type": "number",
"title": "Second Pass Outpaint Strength",
"default": 1,
"maximum": 1,
"minimum": 0,
"x-order": 34,
"description": "Outpaint strength for the second pass"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output",
"x-cog-array-type": "iterator"
}