Skip to content

inference.flux-2.klein.img2img.v1

{
"type": "object",
"required": [
"type",
"config"
],
"properties": {
"type": {
"type": "string",
"enum": [
"inference.flux-2.klein.4b.img2img.v1",
"inference.flux-2.klein.9b.img2img.v1",
"inference.flux-2.klein.img2img.v1"
]
},
"config": {
"type": "object",
"required": [
"prompt"
],
"properties": {
"images": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"items": {
"type": "string",
"format": "filename",
"example": "input.png",
"description": "The filename of the input image."
},
"description": "Input images to transform. Up to 8 images can be provided. Each image must be ≤1920x1920 pixels."
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 32768,
"examples": [
"A serene mountain landscape at sunset, photorealistic, 4k"
],
"description": "Text description of the image to generate. Supports up to 32K tokens."
},
"width": {
"type": "integer",
"minimum": 512,
"maximum": 2048,
"description": "Output image width in pixels. If not specified, defaults to first input image's width."
},
"height": {
"type": "integer",
"minimum": 512,
"maximum": 2048,
"description": "Output image height in pixels. If not specified, defaults to first input image's height."
},
"steps": {
"type": "integer",
"minimum": 1,
"maximum": 4,
"default": 4,
"description": "Number of inference steps for distilled models (4b/9b)."
},
"guidance_scale": {
"type": "number",
"minimum": 1,
"maximum": 10,
"default": 1,
"description": "Guidance scale for classifier-free guidance in distilled models (4b/9b)."
},
"style_preset": {
"type": "string",
"enum": [
"3d-model",
"analog-film",
"anime",
"cinematic",
"comic-book",
"digital-art",
"enhance",
"fantasy-art",
"isometric",
"line-art",
"low-poly",
"neon-punk",
"origami",
"photographic",
"pixel-art",
"texture",
"craft-clay"
],
"description": "Style preset to apply to the prompt."
},
"seed": {
"type": "integer",
"minimum": 0,
"maximum": 18446744073709552000,
"description": "Random seed for reproducible results."
}
}
}
}
}