App: Local Image Generation: Flux (text2image_flux)

The text2image_flux app is one of the apps that provide image generation functionality in Nextcloud and act as an image generation backend for the :ref:`Nextcloud Assistant app<ai-app-assistant>` and :ref:`other apps making use of the image generation functionality<t2i-consumer-apps>`. It also provides image editing (image-to-image) from a text prompt. The text2image_flux app specifically runs only open source models and does so entirely on-premises. Nextcloud can provide customer support upon request, please talk to your account manager for the possibilities.

Providers

The app registers the following Task Processing providers:

Select the providers in the Nextcloud AI admin settings. For the Enhanced provider, also install and enable a text-to-text backend such as :ref:`llm2<ai-app-llm2>`.

Default output size is 1024x1024. You can override the size per task (WxH format) or change the default via the DEFAULT_SIZE deploy option (see :ref:`Configuration <ai-app-text2image_flux-configuration>` below).

Requirements

Installation

  1. Make sure the :ref:`Nextcloud Assistant app<ai-app-assistant>` is installed

  2. :ref:`Install AppAPI and setup a Deploy Demon<ai-app_api>`

  3. Install the Local Image Generation: Flux ExApp via the "Apps" page in the Nextcloud web admin user interface

  4. Optionally install a text-to-text provider such as :ref:`llm2<ai-app-llm2>` if you want to use the Enhanced text-to-image provider

  5. Select the Flux providers in the Nextcloud AI admin settings

Configuration

You can set the following environment variables in the :ref:`Deploy Options <ai-app_api_deploy_options>` when installing or redeploying the ExApp:

Scaling

It is currently not possible to scale this app, we are working on this. Throughput is lower than with :ref:`text2image_stablediffusion2<ai-app-text2image_stablediffusion2>` because Flux generation is slower. We do appreciate real-world feedback on capacity.

App store

You can also find the app in our app store, where you can write a review: https://apps.nextcloud.com/apps/text2image_flux

Repository

You can find the app's code repository on GitHub where you can report bugs and contribute fixes and features: https://github.com/nextcloud/text2image_flux

Nextcloud customers should file bugs directly with our Support system.

Ethical AI Rating

Rating: Yellow

Positive:

Negative:

Learn more about the Nextcloud Ethical AI Rating in our blog.

Known Limitations