FLUX.2 Flash Edit

Edit one or more images from a text instruction with configurable output size and format.

by Black Forest LabsReady to run$0.0070 per megapixel

Example

You ask your agent

“Change the background of this burger photo to deep cobalt blue and keep the burger exactly as it is.”

You get

Result
PNG image file
Size
1024 × 1024 px
What your agent sends and gets back (JSON)

Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.

Request

{
  "tool_id": "blackforestlabs.flux-2-flash-edit",
  "input": {
    "prompt": "change the plain studio background to deep cobalt blue while preserving the burger",
    "image_size": "square_hd",
    "image_urls": [
      "https://storage.googleapis.com/falserverless/example_outputs/flux-2-flash-edit-input.png"
    ],
    "num_images": 1
  }
}

Response

{
  "note": "images returned as artifacts",
  "images": [
    {
      "width": 1024,
      "height": 1024,
      "content_type": "image/png"
    }
  ]
}

Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use FLUX.2 Flash Edit (tool ID: blackforestlabs.flux-2-flash-edit). Ask me for the details you need, then show me the result.

Provider access is included. If your agent isn't connected to Scrollport yet, it will help you set that up.

No agent yet? Create your account on the web and connect one from your dashboard later.

Questions

Is FLUX.2 Flash Edit by Black Forest Labs free?

Scrollport has no free tier: it costs $0.0070 per megapixel, paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.

Do I need an API key from Black Forest Labs?

No. Your agent runs it through your Scrollport connection (MCP, the Scrollport CLI or the HTTP API), and Scrollport handles access to Black Forest Labs, so you don't sign up with Black Forest Labs or manage an API key.

Details

About this tool

Apply a targeted edit with FLUX 2 Flash while preserving the source composition. fal bills each resized input megapixel and each generated output megapixel; all outputs are persisted as private PNG artifacts.

All inputs and outputs

Input

enable_prompt_expansionboolean · optional
guidance_scalenumber · optional

minimum: 0 · maximum: 20

image_sizestring · optional
image_urlsarray · required

Public URLs of the source images.

minItems: 1 · maxItems: 4

num_imagesinteger · optional

minimum: 1 · maximum: 4

promptstring · required

Instruction describing the requested generated output.

minLength: 1 · maxLength: 5000

seedinteger · optional

Output

imagesarray

Images returned for the request.

notestring

Note about how the result was produced or limited.

Errors and limits
  • invalid_input: image_urls must contain one to four public image URLsexample: {"prompt":"change the bottle cap to deep cobalt blue while preserving the product photograph","image_urls":["https://storage.googleapis.com/falserverless/example_outputs/flux-2-flash-edit-input.png"],"image_size":"square_hd","num_images":1}