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": <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-pro-preview", "prompt": "<string>"}'

Examples

example
example
example

Parameters

Input
height integer

Height of the generated image in pixels (minimum 64). Omit to let BFL pick.

input_images array

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

Output image format. Defaults to jpeg.

prompt string required

Text prompt for image generation or editing.

safety_tolerance integer

Tolerance for input/output moderation. 0 is the strictest, 5 the most permissive. Defaults to 2.

seed integer

Optional seed for reproducible generation.

width integer

Width of the generated image in pixels (minimum 64). Omit to let BFL pick.

Output
image: URL to the generated image