# inference.flux-fast.schnell.txt2img.v1

Source: https://docs.prodia.com/job-types/inference-flux-fast-schnell-txt2img-v1/

The `inference.flux-fast.schnell.txt2img.v1` job generates an image based on
the text prompt provided in the configuration. This job type is limited to
fixed resolutions and defaults to the `1024x1024` resolution.

```json
{
    "type": "inference.flux-fast.schnell.txt2img.v1",
    "config": {
        "prompt": "puppies in the clouds, 4k",
    }
}
```

<img src="./inference.flux-fast.schnell.txt2img.v1.md.assets/output-1024x1024.jpg" />

```json
{
    "type": "inference.flux-fast.schnell.txt2img.v1",
    "config": {
        "prompt": "puppies in the clouds, 4k",
        "resolution": "1024x576"
    }
}
```

<img src="./inference.flux-fast.schnell.txt2img.v1.md.assets/output-1024x576.jpg" />

## Schema

```json
{
	"type": "object",
	"required": [
		"type",
		"config"
	],
	"additionalProperties": false,
	"properties": {
		"type": {
			"type": "string",
			"enum": [
				"inference.flux-fast.schnell.txt2img.v1"
			]
		},
		"config": {
			"type": "object",
			"required": [
				"prompt"
			],
			"additionalProperties": false,
			"properties": {
				"prompt": {
					"type": "string",
					"minLength": 3,
					"maxLength": 4096,
					"examples": [
						"puppies in a cloud, 4k"
					],
					"description": "Input description of desired output."
				},
				"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": "Apply a visual theme to your output image."
				},
				"steps": {
					"type": "integer",
					"default": 4,
					"minimum": 1,
					"maximum": 4,
					"description": "Amount of computational iterations to run. More is typically higher quality."
				},
				"resolution": {
					"type": "string",
					"default": "1024x1024",
					"enum": [
						"1024x1024",
						"1024x768",
						"1024x576",
						"768x1024",
						"640x640",
						"576x1024",
						"512x512"
					],
					"description": "Output image resolution WxH"
				},
				"seed": {
					"type": "integer",
					"examples": [
						42,
						531286735183442
					],
					"description": "A randomness initializer for image reproducability."
				},
				"progressive": {
					"type": "boolean",
					"default": false,
					"description": "When using JPEG output, return a progressive JPEG."
				}
			}
		}
	}
}
```
