# inference.flux-2.klein.txt2img.v1

Source: https://docs.prodia.com/job-types/inference-flux-2-klein-txt2img-v1/

## Schema

```json
{
	"type": "object",
	"required": [
		"type",
		"config"
	],
	"properties": {
		"type": {
			"type": "string",
			"enum": [
				"inference.flux-2.klein.4b.txt2img.v1",
				"inference.flux-2.klein.9b.txt2img.v1",
				"inference.flux-2.klein.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": 2048,
					"default": 1024,
					"description": "Output image width in pixels."
				},
				"height": {
					"type": "integer",
					"minimum": 512,
					"maximum": 2048,
					"default": 1024,
					"description": "Output image height in pixels."
				},
				"steps": {
					"type": "integer",
					"minimum": 1,
					"maximum": 4,
					"default": 4,
					"description": "Number of inference steps for 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."
				}
			}
		}
	}
}
```
