Back to Edit images

FLUX.2 Flash Edit

Black Forest Labs

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

Use this tool with your AI agent

  1. Copy the prompt
  2. Paste it into your agent
  3. 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.

Already connected
Your agent can use that connection.
New user
Your agent will guide you through setup, sign-in and authorisation.

Provider access is included.

Connect your first agent to receive $1 trial credit.

Current price
$0.0070/megapixel
Availability
Ready to run

Tool 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.

Inputs and outputs

Input

enable_prompt_expansionboolean · optional

Value supplied for enable prompt expansion.

guidance_scalenumber · optional

Value supplied for guidance scale.

minimum: 0 · maximum: 20

image_sizestring · optional

Value supplied for image size.

image_urlsarray · required

Value supplied for image urls.

minItems: 1 · maxItems: 4

num_imagesinteger · optional

Value supplied for num images.

minimum: 1 · maximum: 4

promptstring · required

Instruction describing the requested generated output.

minLength: 1 · maxLength: 5000

seedinteger · optional

Value supplied for seed.

Output

imagesarray

Returned images value.

notestring

Returned note value.

Example request and output

Inspect returns this reviewed example, its estimated cost and the current input schema. Run calculates the estimate for your actual input.

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
  }
}

Output

{
  "note": "images returned as artifacts",
  "images": [
    {
      "width": 1024,
      "height": 1024,
      "content_type": "image/png"
    }
  ]
}
Errors and limitations
  • 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}