
andreasjansson / kontext-monkey-island
- Public
- 9 runs
Run andreasjansson/kontext-monkey-island 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
|
Text description of what you want to generate, or the instruction on how to edit the given image.
|
|
input_image |
string
|
Image to use as reference. Must be jpeg, png, gif, or webp.
|
|
aspect_ratio |
string
(enum)
|
match_input_image
Options: 1:1, 16:9, 21:9, 3:2, 2:3, 4:5, 5:4, 3:4, 4:3, 9:16, 9:21, match_input_image |
Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image.
|
megapixels |
string
(enum)
|
1
Options: 1, 0.25 |
Approximate number of megapixels for generated image
|
num_inference_steps |
integer
|
30
Min: 4 Max: 50 |
Number of inference steps
|
guidance |
number
|
2.5
Max: 10 |
Guidance scale for generation
|
seed |
integer
|
Random seed for reproducible generation. Leave blank for random.
|
|
output_format |
string
(enum)
|
webp
Options: webp, jpg, png |
Output image format
|
output_quality |
integer
|
80
Max: 100 |
Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs
|
disable_safety_checker |
boolean
|
False
|
Disable NSFW safety checker
|
lora_strength |
number
|
1
|
Strength of the lora
|
{
"type": "object",
"title": "Input",
"required": [
"prompt",
"input_image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 6,
"description": "Random seed for reproducible generation. Leave blank for random."
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Text description of what you want to generate, or the instruction on how to edit the given image."
},
"guidance": {
"type": "number",
"title": "Guidance",
"default": 2.5,
"maximum": 10,
"minimum": 0,
"x-order": 5,
"description": "Guidance scale for generation"
},
"megapixels": {
"enum": [
"1",
"0.25"
],
"type": "string",
"title": "megapixels",
"description": "Approximate number of megapixels for generated image",
"default": "1",
"x-order": 3
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 1,
"description": "Image to use as reference. Must be jpeg, png, gif, or webp."
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"21:9",
"3:2",
"2:3",
"4:5",
"5:4",
"3:4",
"4:3",
"9:16",
"9:21",
"match_input_image"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image.",
"default": "match_input_image",
"x-order": 2
},
"lora_strength": {
"type": "number",
"title": "Lora Strength",
"default": 1,
"x-order": 11,
"description": "Strength of the lora"
},
"output_format": {
"enum": [
"webp",
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Output image format",
"default": "webp",
"x-order": 7
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 80,
"maximum": 100,
"minimum": 0,
"x-order": 8,
"description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 30,
"maximum": 50,
"minimum": 4,
"x-order": 4,
"description": "Number of inference steps"
},
"disable_safety_checker": {
"type": "boolean",
"title": "Disable Safety Checker",
"default": false,
"x-order": 9,
"description": "Disable NSFW safety checker"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "string",
"title": "Output",
"format": "uri"
}