Skip to content

inference.flux-2.max.txt2img.v1

View markdown

The inference.flux-2.max.txt2img.v1 job generates an image from a text prompt using FLUX.2 Max.

{
"type": "inference.flux-2.max.txt2img.v1",
"config": {
"prompt": "a serene mountain landscape at golden hour"
}
}

Additional configuration:

  • width (integer; default 1024)
  • height (integer; default 1024)
  • seed (integer)
  • safety_tolerance (integer; default 2)

This job type is also available under its partner alias inference.partner.flux-2.max.txt2img.v1.

{
"type": "object",
"required": [
"type",
"config"
],
"properties": {
"type": {
"type": "string"
},
"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": 256,
"maximum": 2048,
"multipleOf": 16,
"default": 1024,
"description": "Output width in pixels. Must be a multiple of 16."
},
"height": {
"type": "integer",
"minimum": 256,
"maximum": 2048,
"multipleOf": 16,
"default": 1024,
"description": "Output height in pixels. Must be a multiple of 16."
},
"seed": {
"type": "integer",
"description": "Random seed for reproducible results."
},
"safety_tolerance": {
"type": "integer",
"minimum": 0,
"maximum": 5,
"default": 2,
"description": "Safety filter tolerance level. 0 is strict, 5 is permissive."
}
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}