Skip to content

inference.flux-2.flex.img2img.v1

{
"type": "object",
"required": [
"type",
"config"
],
"properties": {
"type": {
"type": "string",
"enum": [
"inference.flux-2.flex.img2img.v1"
]
},
"config": {
"type": "object",
"required": [
"prompt"
],
"properties": {
"images": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"items": {
"type": "string",
"format": "filename",
"example": "input.jpg",
"description": "The filename of an input image."
},
"description": "Input images for editing. Flex model supports up to 8 images. If not specified, uses uploaded files."
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 32768,
"examples": [
"Replace the background with a forest"
],
"description": "Text description of the edit to be applied. Supports up to 32K tokens."
},
"width": {
"type": "integer",
"minimum": 64,
"maximum": 4096,
"multipleOf": 16,
"description": "Output width in pixels. Must be a multiple of 16. If not specified, uses input image dimensions."
},
"height": {
"type": "integer",
"minimum": 64,
"maximum": 4096,
"multipleOf": 16,
"description": "Output height in pixels. Must be a multiple of 16. If not specified, uses input image dimensions."
},
"seed": {
"type": "integer",
"description": "Random seed for reproducible results."
},
"safety_tolerance": {
"type": "integer",
"minimum": 0,
"maximum": 5,
"default": 2,
"description": "Safety filter tolerance level. 0 is strict, 5 is permissive."
},
"steps": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 50,
"description": "Number of inference iterations."
},
"guidance": {
"type": "number",
"minimum": 1.5,
"maximum": 10,
"default": 4.5,
"description": "Prompt adherence control. Higher values follow the prompt more closely."
}
}
}
}
}