FLUX.2 [flex]
FLUX.2 [flex] is Black Forest Labs' fine-grained control variant of FLUX.2 — exposes tunable inference steps, guidance, and prompt upsampling for typography-heavy and production workflows.
Quick start
# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/infer \
-H "content-type: application/json" \
-d '{
"model": "black-forest-labs/flux-2-flex",
"prompt": <string>
}'
# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/infer \
-J '{"model": "black-forest-labs/flux-2-flex", "prompt": "<string>"}'Examples



Parameters
Classifier-free guidance scale (1.5–10). Higher values follow the prompt more strictly at the cost of realism.
Height of the generated image in pixels (minimum 64). Omit to let BFL pick.
Up to 8 reference images for editing or multi-image composition. Each entry is an HTTPS URL or a data:image/...;base64,... URI.
Output image format. Defaults to jpeg.
Text prompt for image generation or editing.
Whether BFL should expand short prompts before generation. Defaults to true on flex.
Tolerance for input/output moderation. 0 is the strictest, 5 the most permissive. Defaults to 2.
Optional seed for reproducible generation.
Number of denoising steps (1–50). Higher steps yield more detail at the cost of latency.
Width of the generated image in pixels (minimum 64). Omit to let BFL pick.