Skip to content

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.

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

Schema

{
"type": "object",
"required": [
"type",
"config"
],
"properties": {
"type": {
"type": "string",
"enum": [
"inference.flux-fast.schnell.txt2img.v0",
"inference.flux-fast.schnell.txt2img.v1"
]
},
"config": {
"type": "object",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"minLength": 3,
"maxLength": 4096,
"examples": [
"puppies in a cloud, 4k"
],
"description": "Input description of desired output."
},
"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."
}
}
}
}
}