# FLUX.2 \[max\] image edit

Needs prompt and image urls. Served by fal.ai.

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. Waits up to 40 s for the result; if the generation takes longer, the run stays RUNNING and returns a request_id; poll fal/status and fetch fal/result with model "fal-ai/flux-2-max" and that request_id. Billed once, when the result is ready; a generation that fails is refunded.

- Tool ID: `fal/flux-2-max-edit`
- Name in the catalog: FLUX.2 \[max\] (Black Forest Labs), image edit
- Provider: [fal.ai](/providers/fal.md)
- Capability: [FLUX.2](/tools/image-generation/flux.md)
- Price: from $0.03 per unit
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_unit",
  "amountUsd": 0.03,
  "unitsHeader": "x-fal-billable-units",
  "maxUnits": 40,
  "maxUnitsField": "max_megapixels",
  "fractional": false,
  "multipliers": [
    {
      "addUsd": 0.04
    }
  ]
}
```

Pricing source: [https://fal.ai/models/fal-ai/flux-2-max/edit](https://fal.ai/models/fal-ai/flux-2-max/edit). $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..

Price verification date: 2026-10-08.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "enable_safety_checker": {
      "title": "Enable Safety Checker",
      "type": "boolean",
      "default": true,
      "description": "Whether to enable the safety checker. Disabling it requires account authorization; unauthorized requests are always checked."
    },
    "safety_tolerance": {
      "title": "Safety Tolerance",
      "enum": [
        "1",
        "2",
        "3",
        "4",
        "5"
      ],
      "type": "string",
      "default": "2",
      "description": "The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive."
    },
    "prompt": {
      "title": "Prompt",
      "type": "string",
      "description": "The prompt to generate an image from."
    },
    "seed": {
      "type": "integer",
      "title": "Seed",
      "description": "The seed to use for the generation."
    },
    "image_urls": {
      "title": "Image URLs",
      "items": {
        "type": "string"
      },
      "type": "array",
      "description": "List of URLs of input images for editing"
    },
    "image_size": {
      "enum": [
        "auto",
        "square_hd",
        "square",
        "portrait_4_3",
        "portrait_16_9",
        "landscape_4_3",
        "landscape_16_9"
      ],
      "type": "string",
      "title": "Image Size",
      "default": "auto",
      "description": "The size of the generated image. If `auto`, the size will be determined by the model."
    },
    "output_format": {
      "title": "Output Format",
      "enum": [
        "jpeg",
        "png"
      ],
      "type": "string",
      "default": "jpeg",
      "description": "The format of the generated image."
    },
    "max_megapixels": {
      "type": "number",
      "minimum": 1,
      "maximum": 40,
      "default": 6,
      "description": "Upper 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."
    }
  },
  "required": [
    "prompt",
    "image_urls"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "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
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

This tool uses deferred settlement. Follow its returned task/run instructions; preserve the existing reservation until the result is reconciled.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://fal.ai/models/fal-ai/flux-2-max/edit)

[REST inspection](https://api.agentik.cc/v1/tools/fal/flux-2-max-edit) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/fal/flux-2-max-edit) · [Agent index](/llms.txt)
