krunalmangroliya/omnigen2
Public
3
runs
Run krunalmangroliya/omnigen2 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 |
|---|---|---|---|
| instruction |
string
|
Instruction for the model
|
|
| image_input_1 |
string
|
First input image
|
|
| image_input_2 |
string
|
Second input image
|
|
| image_input_3 |
string
|
Third input image
|
|
| width_input |
integer
|
1024
|
Width of the output image
|
| height_input |
integer
|
1024
|
Height of the output image
|
| scheduler |
None
|
euler
|
Scheduler to use
|
| num_inference_steps |
integer
|
50
|
Number of inference steps
|
| negative_prompt |
string
|
(((deformed))), blurry, over saturation, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), fused fingers, messy drawing, broken legs censor, censored, censor_bar
|
Negative prompt
|
| guidance_scale_input |
number
|
5
|
Text guidance scale
|
| img_guidance_scale_input |
number
|
2
|
Image guidance scale
|
| cfg_range_start |
number
|
0
|
CFG range start
|
| cfg_range_end |
number
|
1
|
CFG range end
|
| num_images_per_prompt |
integer
|
1
|
Number of images per prompt
|
| max_input_image_side_length |
integer
|
2048
|
Maximum input image side length
|
| max_pixels |
integer
|
1048576
|
Maximum pixels
|
| seed_input |
integer
|
-1
|
Seed for random number generation
|
{
"type": "object",
"title": "Input",
"required": [
"instruction"
],
"properties": {
"scheduler": {
"enum": [
"euler",
"dpmsolver++"
],
"type": "string",
"title": "scheduler",
"description": "Scheduler to use",
"default": "euler",
"x-order": 6
},
"max_pixels": {
"type": "integer",
"title": "Max Pixels",
"default": 1048576,
"x-order": 15,
"description": "Maximum pixels"
},
"seed_input": {
"type": "integer",
"title": "Seed Input",
"default": -1,
"x-order": 16,
"description": "Seed for random number generation"
},
"instruction": {
"type": "string",
"title": "Instruction",
"x-order": 0,
"description": "Instruction for the model"
},
"width_input": {
"type": "integer",
"title": "Width Input",
"default": 1024,
"x-order": 4,
"description": "Width of the output image"
},
"height_input": {
"type": "integer",
"title": "Height Input",
"default": 1024,
"x-order": 5,
"description": "Height of the output image"
},
"cfg_range_end": {
"type": "number",
"title": "Cfg Range End",
"default": 1,
"x-order": 12,
"description": "CFG range end"
},
"image_input_1": {
"type": "string",
"title": "Image Input 1",
"format": "uri",
"x-order": 1,
"description": "First input image"
},
"image_input_2": {
"type": "string",
"title": "Image Input 2",
"format": "uri",
"x-order": 2,
"description": "Second input image"
},
"image_input_3": {
"type": "string",
"title": "Image Input 3",
"format": "uri",
"x-order": 3,
"description": "Third input image"
},
"cfg_range_start": {
"type": "number",
"title": "Cfg Range Start",
"default": 0,
"x-order": 11,
"description": "CFG range start"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "(((deformed))), blurry, over saturation, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), fused fingers, messy drawing, broken legs censor, censored, censor_bar",
"x-order": 8,
"description": "Negative prompt"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 50,
"x-order": 7,
"description": "Number of inference steps"
},
"guidance_scale_input": {
"type": "number",
"title": "Guidance Scale Input",
"default": 5,
"x-order": 9,
"description": "Text guidance scale"
},
"num_images_per_prompt": {
"type": "integer",
"title": "Num Images Per Prompt",
"default": 1,
"x-order": 13,
"description": "Number of images per prompt"
},
"img_guidance_scale_input": {
"type": "number",
"title": "Img Guidance Scale Input",
"default": 2,
"x-order": 10,
"description": "Image guidance scale"
},
"max_input_image_side_length": {
"type": "integer",
"title": "Max Input Image Side Length",
"default": 2048,
"x-order": 14,
"description": "Maximum input image side length"
}
}
}
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"
}