Skip to content

Provider Flux

h-avoyan edited this page Jun 18, 2026 · 3 revisions

Flux

Mode: image · Models: 5

Vendor: Black Forest Labs · Official API docs: docs.bfl.ml

Flux (by Black Forest Labs) is a family of high-quality text-to-image models with crisp detail and strong prompt adherence. The Kontext models add reference-guided editing — generate from a prompt and one or more input images.

Models

id Name Input type Notes
flux-2-pro Flux 2 Pro t2i Multi-image input, up to 2K
flux-2-max Flux 2 Max t2i Highest quality
flux-2-flex Flux 2 Flex t2i Flexible / cost-aware
flux-kontext-max Flux Kontext Max t2i Reference-guided editing
flux-kontext-pro Flux Kontext Pro t2i Reference-guided editing

CLI

# text-to-image
gen-ai generate -m flux-2-pro -p "studio shot of a ceramic cup, soft light" --ar 4:3

# multi-image reference (Kontext)
gen-ai generate -m flux-kontext-pro -p "place the product on a marble table" -i ./product.png

MCP

{ "name": "picsart_generate",
  "arguments": {
    "model": "flux-2-pro",
    "prompt": "studio shot of a ceramic cup, soft light",
    "aspectRatio": "4:3",
    "count": 1
  } }

Parameters — flux-2-pro

Param CLI flag Type Values
prompt -p text required
aspectRatio --ar enum 1:1 · 5:3 · 3:5 · 4:3 · 3:4
count -n enum 1 · 2 · 4 · 6 · 8 · 10
imageUrls -i file reference image(s) for editing

Source: gen-ai models info flux-2-pro --json. Kontext models share this surface and use imageUrls as the edit reference.

Pricing

gen-ai pricing flux-2-pro -n 4

Cost scales with resolution/quality and the number of outputs (count).

Clone this wiki locally