You're looking at a specific version of this model. Jump to the model overview.
usamaehsan /flux2-klein-4b-edit:0c2c23c4
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 |
|---|---|---|---|
| image |
array
|
Input image(s). 1 for editing, up to 4 references
|
|
| prompt |
string
|
Edit instruction or generation prompt
|
|
| aspect_ratio |
None
|
custom
|
custom = use width/height. A fixed ratio snaps to a pre-warmed size at `resolution` (fastest). match_input_image = nearest fixed ratio to the first image.
|
| resolution |
None
|
1024
|
Long side for fixed aspect ratios (ignored when aspect_ratio=custom)
|
| width |
integer
|
0
Max: 2048 |
Output width (0 = use input size)
|
| height |
integer
|
0
Max: 2048 |
Output height (0 = use input size)
|
| num_inference_steps |
integer
|
4
Min: 1 Max: 8 |
Steps (model distilled for 4)
|
| guidance_scale |
number
|
1
Max: 10 |
None
|
| seed |
integer
|
Random seed
|
|
| output_format |
None
|
jpg
|
None
|
| output_quality |
integer
|
90
Min: 1 Max: 100 |
None
|
| eager |
boolean
|
False
|
Debug: skip the compiled blocks for this call
|
| sage |
boolean
|
True
|
Debug: false = exact SDPA attention for this call
|
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'}