Skip to content

Black Forest Labs · fal.ai · Image edit

FLUX.2 [max]

FLUX.2 [max] (Black Forest Labs), image edit, served by fal.ai. The OpenAPI schema for the fal-ai/flux-2-max/edit queue. Price: $0.07 for the first processed megapixel and $0.03 per additional one, input images counted as processed megapixels, metered by fal after the call (x-fal-billable-units) and billed at that reading; the reservation is the bound you declare and the difference is refunded.

From $0.03 / unitfal.aiImagefal/flux-2-max-editListed

Activation pending; your agent will see it as unavailable until then.

Use this tool with your agent

Give this to your agent
Use my connected Agentik MCP server. I want to use the tool fal/flux-2-max-edit (FLUX.2 [max] (Black Forest Labs), image edit). Call inspect_tool with {"tool_id": "fal/flux-2-max-edit"} first and tell me the price before anything runs. Ask me for the inputs it needs; never invent values, IDs or file URLs. When I confirm, call run_tool with tool_id "fal/flux-2-max-edit" and my inputs, follow it with get_run if it is still running, and give me the result and the price Agentik reports. If the tool is unavailable, say so and use discover_tools to propose an alternative.
Show the prompt

Paste it into Claude, ChatGPT or Codex: your agent takes it from there, and shows the price before it runs.

Parameters

NameTypeRequiredDescription
image_sizestringNoThe size of the generated image. If `auto`, the size will be determined by the model. Options: auto, square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9.
promptstringYesThe prompt to generate an image from.
image_urlsstring[]YesList of URLs of input images for editing
safety_tolerancestringNoThe safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive. Options: 1, 2, 3, 4, 5.
output_formatstringNoThe format of the generated image. Options: jpeg, png.
enable_safety_checkerbooleanNoWhether to enable the safety checker. Disabling it requires account authorization; unauthorized requests are always checked.
seedintegerNoThe seed to use for the generation.
max_megapixelsnumberNoUpper bound of the processed megapixels, input images and output together, in megapixels (default 6, max 40). The reservation is this bound at the unit price; after the call the megapixels fal meters are billed and the rest is refunded. Declare at least the real amount: a larger input is still processed but is never billed above the reservation.

How your agent calls it

First inspect_tool for the current schema and price, then run_tool with the published example after confirming your inputs:

{
  "tool_id": "fal/flux-2-max-edit",
  "input": {
    "prompt": "make the cube blue, keep everything else",
    "image_urls": [
      "https://storage.googleapis.com/falserverless/example_inputs/flux2/max.jpg"
    ],
    "max_megapixels": 6
  }
}

Price and billing

Price
From $0.03 / unit
Model
Per unit
Detail
The provider’s price, with no markup. Billed for measured usage.
  • The provider’s price, 0% markup.
  • One prepaid balance for every provider; your agent sees the price before it runs.
  • Pay for measured usage; unused reservations are released.