All models


FLUX.2 [pro] Preview
black-forest-labs/flux-2-pro-preview
Black Forest Labs Image GenerationImage EditingPreview
FLUX.2 [pro] Preview is Black Forest Labs' recommended default for production image generation and editing — tracks the latest [pro] weights with strong multi-reference support.
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-pro-preview",
"prompt": "<your prompt>"
}'
# 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-pro-preview", "prompt": "<your prompt>"}'Examples



Parameters
Input
prompt string required
Text prompt for image generation or editing.
height integer optional
Height of the generated image in pixels (minimum 64). Omit to let BFL pick.
input_images array optional
Up to 8 reference images for editing or multi-image composition. Each entry is an HTTPS URL or a data:image/...;base64,... URI.
output_format string optional
Output image format. Defaults to jpeg.
safety_tolerance integer optional
Tolerance for input/output moderation. 0 is the strictest, 5 the most permissive. Defaults to 2.
seed integer optional
Optional seed for reproducible generation.
width integer optional
Width of the generated image in pixels (minimum 64). Omit to let BFL pick.
Output
image: URL to the generated image