Repository navigation
1.4.0 — FLUX.2 models and image controls
FLUX.2 models and image controls
ai-ui 1.4.0 adds FLUX.2 Pro and Flex image generation/editing, an image-model
selector above the composer, and model-specific image settings.
Features
- Select Automatic, FLUX.2 Pro, FLUX.2 Flex, or another enabled image
model per chat. This does not change the text-completion model. - Explicit model selection rotates only through enabled replicas of that
canonical model. Automatic uses the complete enabled operation pool,
including GPT-Image if those deployments remain enabled. - Configure FLUX resolution and PNG/JPEG output; Flex additionally exposes
steps and guidance. GPT-specific settings remain separate. Only applicable
parameters are sent to the selected model; safety controls are not weakened. - Use the trusted Azure BFL provider endpoint discovered from account metadata.
The adapter supports synchronous inline-base64 image responses. URL-only,
asynchronous and redirect responses fail explicitly rather than triggering
unsafe downloads or credential forwarding. - Preserve the selected model/options for a submitted turn, and continue edits
from the latest successful stored image across region changes. Explicit
retries use the current composer options without deleting earlier outputs. - English/German controls, demo fixtures, FLUX screenshots and regression tests
cover desktop and mobile use.
Upgrade and enable
- Back up the persistent data volume.
- Update the existing container to
ghcr.io/daknoblo/ai-ui:1.4.0, retaining the
same volume and environment settings. Recreate it and fully reload the browser. - In Foundry mode, Refresh deployments to discover provider endpoints.
- Explicitly enable the desired FLUX replicas under both Image generation
and Image edits, then save. Newly discovered models are not auto-enabled. - Select the image model above the composer and adjust its settings. Keep GPT
deployments checked only if Automatic should continue to include them.
The 1.4 image tag follows this minor series. 1.3 remains on the previous
series. Existing chats, documents and embeddings are retained; no embedding
reindex is needed for adding image models.
FLUX requires a Foundry/AI Services account and these DataActions:
Microsoft.CognitiveServices/accounts/MaaS/images/generations/actionMicrosoft.CognitiveServices/accounts/AIServices/providers/action
Permission correction: The initially documented MaaS image action alone is
insufficient: the BFL provider route also requires AIServices/providers/action.
This additional permission allows provider model actions, not just FLUX images.
Assign the custom role only to the required resources and explicitly approve
this broader inference scope. Neither key-reading nor management permissions
are required. OpenAI User alone does not cover the BFL provider API.
Existing installations can update the role, wait for RBAC propagation and
retry; no application image update is required for this correction.
Manual endpoint mode can use recognizable FLUX model deployment names, but
does not provide Foundry replica pools; custom aliases need Foundry metadata.
Validation
- Full Go race tests, vet, static build, formatting and golangci-lint passed.
- A single uninterrupted run passed all 32 English/German desktop/mobile
browser groups. The screenshot gallery now contains 35 screenshots. - 10 live Azure image requests passed through actual application HTTP
handlers and the new adapter: generation and editing for Pro/Flex in Sweden
and Poland (eight requests), plus two manual-endpoint Flex requests. - Live tests verified valid PNG/JPEG output, expected dimensions, exact Flex
parameters, durable storage and exact latest-image bytes across edits. - Live requests used an in-memory Azure CLI operator bearer token. They do not
prove the production application's service-principal authorization or actual
API-key authentication. No credentials were saved and no production data was
used.
Regional replicas share model-specific quotas within a region; round-robin
does not eliminate throttling or automatically retry billed image requests.
Publishing this release does not update production containers.
Verified publication
- Release workflow 36456489174
passed all Go/browser gates, both architecture vulnerability scans, signing
and promotion. - Source:
f19390464e59ba02b5195c2bb21f05ada6526006. - Image index:
sha256:5fa3977240d0c0e7692f394b8beb2e963c0b76d28c441b425e5a5e922a3c0d58. 1.4.0,1.4andlatestresolve to that index;1.3.0and1.3
retain their previous digest.- Cosign verified the exact version-tag workflow identity and GitHub Actions
OIDC issuer. Both platforms include SPDX-2.3 SBOMs and provenance matching
version 1.4.0 and the source revision. - Published Linux amd64 and arm64 images started as UID/GID 65532 and passed
the binary health check in isolated, network-disabled, read-only containers. - Live GitHub Pages documentation shows release 1.4.0 and its upgrade link;
all 35 gallery images loaded, including both translated FLUX screenshots. - Machine-readable verification is attached as a release asset.