# FLUX.2 Pro

Black Forest Labs

Generate images from text prompts with configurable aspect ratio, resolution and output 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 Pro (tool ID: blackforestlabs.flux-2-pro). 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.

**Job:** [Generate images](https://scrollport.com/tools/image-generation-api)

**Current price:** $0.0420/megapixel

**Availability:** Ready to run

## Tool details

**About this tool**

Create one studio-grade image with FLUX 2 Pro. Scrollport pins safety checks and output format, persists the generated JPEG privately, and prices the first output megapixel separately from additional megapixels.

**Inputs and outputs**

### Input

`image_size` string · optional

Value supplied for image size.

`prompt` string · required

Instruction describing the requested generated output.

minLength: 1 · maxLength: 5000

`seed` integer · optional

Value supplied for seed.

### Output

`images` array

Returned images value.

`note` string

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-pro",
  "input": {
    "prompt": "a premium reusable water bottle on a stone plinth, soft editorial studio light",
    "image_size": "landscape_4_3"
  }
}
```

### Output

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

**Errors and limitations**

- `invalid_input`: prompt is required and custom image dimensions must stay inside the published boundsexample: {"prompt":"a premium reusable water bottle on a stone plinth, soft editorial studio light","image_size":"landscape_4_3"}

---

Canonical page: https://scrollport.com/tools/providers/blackforestlabs/flux-2-pro
