---
title: "POST /bfl/v1/flux-2-max"
method: POST
path: "/bfl/v1/flux-2-max"
---

# POST /bfl/v1/flux-2-max

`POST /bfl/v1/flux-2-max`

Generate or edit images using the Flux 2 Max model based on text prompts. <a href='https://docs.bfl.ai/flux_2/flux2_image_editing#flux-2-image-editing-parameters' target='_blank'>Official documentation</a>

## Request body

- Pro2Request
  - `prompt` string, required — Image description. Note: Flux supports multilingual understanding, but English performs best in testing.
  - `input_image` string — Reference image 1, URL or base64
  - `input_image_2` string — Reference image 2, URL or base64
  - `input_image_3` string — Reference image 3, URL or base64
  - `input_image_4` string — Reference image 4, URL or base64
  - `image_prompt` string — Reference image, base64 encoded
  - `width` string — Width of generated image. Range: 256-1440, must be a multiple of 32. Default: 1024
  - `height` string — Height of generated image. Range: 256-1440, must be a multiple of 32. Default: 768
  - `seed` string — Random seed
  - `output_format` 'jpeg' | 'png' — Output format
  - `safety_tolerance` integer — Safety tolerance level for input and output adjustment. Range: 0-6, where 0 is strictest and 6 is most permissive. Default: 2
  - `webhook_url` string — Asynchronous callback URL

## Response `200`

Request successful

- object
  - `status` string, required
  - `message` string, required
  - `data` object, required

## Other responses

- `400` — Parameter error
- `401` — Authorization failed

---

[API](https://skmtc.net/ttapi/apis/flowmusic-api-docs.md) · [All operations](https://skmtc.net/ttapi/apis/flowmusic-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ttapi/flowmusic-api-docs/versions/f27f8a59dbd0/schema)
