You're looking at a specific version of this model. Jump to the model overview.
fofr /kontext-old-and-damaged:26f32770
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
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}