You're looking at a specific version of this model. Jump to the model overview.

fofr /sandbox:1a8a5e59

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Prompt for generated image. If you include the `trigger_word` used in the training process you are more likely to activate the trained object, style, or concept in the resulting image.
flux_layers_to_patch
string
double_blocks.0.img_mod.lin.weight=1.0 double_blocks.0.img_mod.lin.bias=1.0 double_blocks.0.img_attn.qkv.weight=1.0 double_blocks.0.img_attn.qkv.bias=1.0
Flux Dev layers to patch. A new line separated list of layers with values or a regular expression matching multiple layers, for example: `double_blocks.*attn=1.01`.
flux_model_layers_to_patch
string (enum)
all

Options:

all, custom (use a regular expression), double_block layers, double_block text layers, double_block image layers, single_block layers, attn (attention) layers, mlp (multi-layer perceptron) layers, mod (modulation) layers, proj (projection) layers, qkv (query, key, value) layers, lin (linear) layers, double_block 0, double_block 1, double_block 2, double_block 3, double_block 4, double_block 5, double_block 6, double_block 7, double_block 8, double_block 9, double_block 10, double_block 11, double_block 12, double_block 13, double_block 14, double_block 15, double_block 16, double_block 17, double_block 18, single_block 0, single_block 1, single_block 2, single_block 3, single_block 4, single_block 5, single_block 6, single_block 7, single_block 8, single_block 9, single_block 10, single_block 11, single_block 12, single_block 13, single_block 14, single_block 15, single_block 16, single_block 17, single_block 18, single_block 19, single_block 20, single_block 21, single_block 22, single_block 23, single_block 24, single_block 25, single_block 26, single_block 27, single_block 28, single_block 29, single_block 30, single_block 31, single_block 32, single_block 33, single_block 34, single_block 35, single_block 36, single_block 37

An enumeration.
flux_model_layers_value
number
1.01

Max: 2

The new value for the selected layers
weights_and_biases_to_patch
string (enum)
weights and biases

Options:

weights and biases, just weights, just biases

An enumeration.
flux_model_layers_regular_expressions
array
[]
A set of regular expressions and their target values. Each regular expression should be on a new line and the target value should be a float. For example: double_blocks\.([0-9]+)\.(img|txt)_(mod|attn|mlp)\.(lin|qkv|proj|0|2)\.(weight|bias)=1.01
aspect_ratio
string (enum)
1:1

Options:

1:1, 16:9, 21:9, 3:2, 2:3, 4:5, 5:4, 3:4, 4:3, 9:16, 9:21

Aspect ratio for the generated image in text-to-image mode. The size will always be 1 megapixel, i.e. 1024x1024 if aspect ratio is 1:1. To use arbitrary width and height, set aspect ratio to 'custom'. Note: Ignored in img2img and inpainting modes.
num_outputs
integer
1

Min: 1

Max: 4

Number of images to output.
num_inference_steps
integer
28

Min: 1

Max: 50

Number of inference steps. More steps can give more detailed images, but take longer.
guidance_scale
number
3

Max: 10

Guidance scale for the diffusion process. Lower values can give more realistic images. Good values to try are 2, 2.5, 3 and 3.5
max_shift
number
1.15

Max: 10

Maximum shift
base_shift
number
0.5

Max: 10

Base shift
output_format
string (enum)
webp

Options:

webp, jpg, png

Format of the output images
output_quality
integer
95

Max: 100

Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.
seed
integer
Set a seed for reproducibility. Random by default.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'items': {'format': 'uri', 'type': 'string'},
 'title': 'Output',
 'type': 'array'}