Skip to content

inference.flux-2.dev.txt2img.v1

{
"type": "object",
"required": [
"type",
"config"
],
"properties": {
"type": {
"type": "string",
"enum": [
"inference.flux-2.dev.txt2img.v0",
"inference.flux-2.dev.txt2img.v1"
]
},
"config": {
"type": "object",
"required": [
"prompt"
],
"properties": {
"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": 1920,
"default": 1024,
"description": "Output image width in pixels."
},
"height": {
"type": "integer",
"minimum": 512,
"maximum": 1920,
"default": 1024,
"description": "Output image height in pixels."
},
"steps": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 28,
"description": "Number of inference steps."
},
"guidance_scale": {
"type": "number",
"minimum": 1,
"maximum": 10,
"default": 4,
"description": "Guidance scale for classifier-free guidance."
},
"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."
}
}
}
}
}