Skip to main content
FluxPipeline provides support for multiple image generation pipelines, including text-to-image (txt2img), image-to-image (img2img), and inpainting.
Ensure that a volume mount is added to the deployment, as all images generated are dumped inside /data/outputs directory in the container.

Model Optimization Configuration

  • The standard base configuration presented in the UI is sufficient for optimal performance.
  • ControlNet models will not be loaded by default.

Optimization Settings

For optimization, under the optimization config, use:
  • Higher threshold values result in greater speed gains but may degrade image generation accuracy.
  • We recommend a threshold of 0.1, which can provide up to a 40% speed improvement during inference while maintaining reasonable quality.

Supported Pipelines

  1. txt2img - Generates an image from text input.
  2. img2img - Generates an image based on an input image and a given prompt.
  3. inpaint - Modifies specific regions of an image based on a mask and a given prompt.

Example Requests

txt2img

Img2Img

Inpaint

Example Response

Key Notes

  • Ensure volume mounting in deployment for image storage.
  • ControlNet models are not loaded by default.
  • The default configuration in the UI should work optimally for most use cases.
  • Supports multiple pipelines for text-to-image, image-to-image, and inpainting.