All models

Flux 1 Kontext Max

black-forest-labs/flux-1-kontext-max

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-1-kontext-max",
    "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-1-kontext-max", "prompt": "<your prompt>"}'

Parameters

Input
prompt string required

Text prompt for image generation or editing.

aspect_ratio optional

Output aspect ratio, from 3:7 to 7:3. Defaults to 1:1.

input_image optional

Optional base64 encoded image or URL to edit.

output_format string optional

Output image format. Defaults to jpeg.

prompt_upsampling boolean optional

Whether to upsample the prompt. Defaults to false.

safety_tolerance integer optional

Moderation tolerance. 0 is strictest and 6 is most permissive.

seed optional

Optional seed for reproducible generation.

Output