Source: https://ailoot.ai/models/en/black-forest-labs-flux-2-pro/
Canonical: https://ailoot.ai/models/en/black-forest-labs-flux-2-pro/
Language: en

# Black Forest Labs: FLUX.2 Pro

[Markdown](https://ailoot.ai/models/en/black-forest-labs-flux-2-pro/index.md) · [JSON](https://ailoot.ai/models/en/black-forest-labs-flux-2-pro/facts.json)

## [Black Forest Labs: FLUX.2 Pro](https://ailoot.ai/models/en/black-forest-labs-flux-2-pro/)

FLUX.2 \[pro\] is Black Forest Labs’ production image model for text-led creation and reference-guided editing. Its documented profile combines photorealistic detail, text and color control with a reference/output pixel budget and up to 4-megapixel images.

- [**Ailoot Ultra · Images** `POST /v1/images/generations` `black-forest-labs/flux.2-pro`](https://ailoot.ai/models/en/black-forest-labs-flux-2-pro/#method-0)

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

FLUX.2 \[pro\] is Black Forest Labs’ production-focused image-generation and editing model. The manufacturer presents it as the default choice for most FLUX.2 visual tasks: create a new image from text or revise a scene using visual references. Its family capabilities include photorealistic materials and lighting, readable text, exact-color instructions and consistent subjects across related edits. The returned artifact is an image to use in a product scene, editorial composition, design concept or visual communication.

#### Prepare a production brief

Begin with the subject, what it is doing or how it is arranged, the style, and the setting or light. The manufacturer’s prompt guide gives more attention to early words and recommends placing the essential subject and action before decorative details. It suggests 10–30 words for quick concepts and 30–80 for ordinary projects, with longer descriptions for complex scenes. Those ranges are prompt-writing guidance, not a text-context limit.

An original catalog brief might show a brushed-steel lamp on a warm-grey tabletop, with a three-quarter view that reveals the switch and shade. Specify the surface, illumination and viewpoint that make the product recognizable. For an infographic or marketing image, settle the visible wording and hierarchy first; quote the exact title, identify its placement and name the style and size of the lettering. Inspect labels, quantities and product details at the final display size.

The family guide documents both natural-language and JSON-structured prompts. A structured scene brief can keep the subject, background, light and composition in separate fields so one requirement can be revised clearly. It also supports hex-color descriptions: associate the code with the specific object or text to color. Describe the desired appearance positively, because the documented FLUX.2 prompting flow does not provide negative prompts.

#### Edit with references and a shared pixel budget

The exact \[pro\] request profile offers eight reference-image positions; the maker’s interactive interface separately supports ten. Assign each picture a role, such as subject appearance, clothing, product design, room or style. For an existing scene, state the element to change and which composition, surroundings and visual details should remain. The published examples include furniture composites, background or weather changes, replacement objects and text revisions.

Reference capacity also depends on output size. The producer’s \[pro\] guide specifies a 9-megapixel total budget for input plus output. Its examples allow eight references at 1-megapixel output and seven at 2-megapixel output, reducing reference capacity as the requested result grows. Plan the source set and output together instead of treating the maximum slot count as available for every output size. Use the references that establish necessary information and identify their intended contribution.

For a product composite, the first image could supply the product and the second a room, while a third establishes a material finish. Explain how they should become one coherent scene. If the result changes a shape, marking or identity meant to remain, target that issue in the follow-up rather than replacing the entire brief. The practical result is the revised picture with reference fidelity and the specific change compared against its inputs.

#### Prompt expansion and fixed versus preview profiles

The exact \[pro\] specification enables prompt upsampling by default. Its disable\_pup control stops that expansion when a carefully written instruction should be used as supplied. Retain the chosen setting when comparing versions, because the same short concept and an expanded description are different generation inputs. This is a maker-profile control, rather than a guarantee that every requested detail appears correctly.

The documentation distinguishes the plain \[pro\] endpoint as a fixed snapshot from \[pro\] Preview, where subsequent model improvements are introduced. Their request and response shapes are the same, while their underlying weights differ. Keep the exact selected profile with the image and references. The separate Preview label should not silently replace a plain \[pro\] selection when a revision depends on the same documented model choice.

#### Dimensions, formats and the selected asset

The family guide documents output up to 4 megapixels, with explicit dimensions at least 64×64 and multiples of 16. It recommends up to 2 megapixels for most use cases. Width and height establish the intended framing; a square product image, portrait layout and wide editorial scene distribute space differently. The exact request lists JPEG, PNG and WebP output, with JPEG as the default, and an optional seed.

The \[max\] profile has a separate grounding-search feature, while \[flex\] exposes sampling steps and guidance and \[klein\] has a smaller, four-reference profile. Select the edition around the required work rather than importing those controls into \[pro\]. For the selected asset, retain the actual image, final prompt, references, dimensions and model label. The producer’s FLUX.2 signed result links expire after ten minutes, so retrieve the image instead of relying on its temporary location. Review subject identity, colors, text, composition and the edited details before placing the result in the customer-facing material.

**Ailoot Ultra · Images** `POST /v1/images/generations` `black-forest-labs/flux.2-pro`

[`black-forest-labs/flux.2-pro`](https://ailoot.ai/models/en/#m=black-forest-labs%2Fflux.2-pro&route=Ultra&caller=black-forest-labs%2Fflux.2-pro&fmt=images)

Black Forest Labs /`black-forest-labs/flux.2-pro`

### Overview

FLUX.2 \[pro\] is Black Forest Labs’ production image model for text-led creation and reference-guided editing. Its documented profile combines photorealistic detail, text and color control with a reference/output pixel budget and up to 4-megapixel images.

Accepted inputs

Text · Images

Results

Images

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Images** `POST /v1/images/generations`

Input types

`text`, `image`

Output types

`image`

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits black-forest-labs/flux.2-pro | Default— |
| Field`prompt` | Type`string` | RequirementRequired | Values & limits Minimum length: 1 | Default— |
| Field`aspect_ratio` | Type`string` | RequirementOptional | Values & limits 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 21:9, auto | Default— |
| Field`output_format` | Type`string` | RequirementOptional | Values & limits png, jpeg | Default— |
| Field`n` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 Maximum: 1 | Default— |
| Field`input_references` | Type`array` | RequirementOptional | Values & limits Minimum items: 0 Maximum items: 8 | Default— |
| Field`provider` | Type`object` | RequirementOptional | Values & limits | Default— |

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, prompt |
| Parameter`material_types` | Contracttext, image |

Lifecycle: `synchronous_result_then_owned_library`

`GET /v1/media/tasks/{task_id}` · actual returned task\_id or media library record

`GET /v1/media/assets/{asset_id}/content`

`GET /v1/media/assets`

`GET /v1/media/assets/{asset_id}`

### Pricing

##### How the final charge is calculated

The displayed rates estimate the cost before generation. The final charge is calculated from the cost recorded for the original generation. Measured output duration and forecast quantities are not the final billable quantity.

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode

Not specified When fast mode is selected

Flex mode

Not specified When flex mode is selected

Maximum reasoning effort

Not specified When maximum reasoning effort uses the default adjustment

#### Estimated rates for comparison

#### Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

| Configuration | Rate schedule | Forecast quantity | Billing unit | Charge |
| --- | --- | --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Forecast quantity— | Billing unit— | Charge Input · Input tokens · Estimate for comparison only **—** / 1K tokens Output · Output tokens · Estimate for comparison only **—** / 1K tokens Input · Cache read · Estimate for comparison only **—** / 1K tokens Input · Cache write · Estimate for comparison only **—** / 1K tokens Input · Cache write, 1 hour · Estimate for comparison only **—** / 1K tokens |
| Configurationoutput image megapixel | Rate schedule— | Forecast quantity— | Billing unitper output image megapixel | Charge Output · output image megapixel · Estimate for comparison only **$0.06** per output image megapixel |
| ConfigurationEstimated generation cost | Rate schedule— | Forecast quantityone generation estimate | Billing unit— | Charge Output · Estimated generation cost · Estimate for comparison only **$0.06** estimate before generation This estimate is not an additional charge or a fixed rate for the completed generation. |

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

### Example requests

#### Ailoot Ultra · Images

curl

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p={'model': 'black-forest-labs/flux.2-pro', 'prompt': 'a red panda astronaut floating in space, studio lighting'}

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/images/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import base64, json, os, subprocess
from pathlib import Path
from urllib.parse import urlsplit, urljoin

def save_images(items):
    if not items: raise SystemExit("No completed images; retain the full response")
    for index, item in enumerate(items):
        encoded=item.get("b64_json")
        uri=item.get("url", "")
        if not encoded and uri.startswith("data:image/"):
            header, separator, encoded=uri.partition(",")
            if not separator or ";base64" not in header: raise SystemExit("Unsupported image data URI")
        if encoded:
            raw=base64.b64decode(encoded,validate=True)
        elif uri:
            uri=urljoin("https://api.ailoot.ai",uri)
            parsed=urlsplit(uri)
            if parsed.scheme!="https" or not parsed.netloc or parsed.username or parsed.password:
                raise SystemExit("Invalid returned image URL")
            owned=parsed.netloc=="api.ailoot.ai" and parsed.path.startswith("/v1/media/assets/") and parsed.path.endswith("/content")
            args=["curl","--fail-with-body","--silent","--show-error",uri]
            if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
            temporary=Path(f"image-{index}.bin")
            subprocess.run(args+["-o",str(temporary)],check=True)
            raw=temporary.read_bytes()
            temporary.unlink()
        else: raise SystemExit("Image has neither bytes nor URL")
        if not raw: raise SystemExit("Empty image result")
        ext="png" if raw.startswith(b"\x89PNG") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "svg" if raw.lstrip().startswith((b"<svg",b"<?xml")) else "bin"
        Path(f"image-{index}.{ext}").write_bytes(raw)
    print("Every returned image saved; complete response metadata retained")
save_images(json.loads(Path("result.json").read_text())["data"])
PY_RESULT
```

### Receive and save results

#### Ailoot Ultra · Images

Download each returned image or save its Base64 contents

- `GET /v1/media/tasks/{task_id}`
- `GET /v1/media/assets/{asset_id}/content`
- `GET /v1/media/assets`
- `GET /v1/media/assets/{asset_id}`

Other content reads

Read existing owned assets

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/media/assets \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o owned-assets.json
# Preserve every returned asset and follow its exact signed content URL. Do not construct a signed token.
```

##### Keep all completed results

Save every completed image; retrieve each returned URL or decode its Base64 contents.

Retain the complete response and headers, every actual output, original returned identifiers and all usage fields. Recover the original operation without submitting creation again.

##### If the original response needs checking

Keep the returned X-Client-Request-ID for reconciliation. Read only actual returned task\_id/asset\_id values or the owned media library; never build a task URL from the operation ID and never resubmit creation.

Response fields

| Field | Type |
| --- | --- |
| Field`created` | Type |
| Field`data[].url` | Type |
| Field`data[].b64_json` | Type |
| Field`usage` | Type |

### Aliases

#### Model aliases

**Ailoot Ultra** [`black-forest-labs/flux.2-pro`](https://ailoot.ai/models/en/#m=black-forest-labs%2Fflux.2-pro&route=Ultra&caller=black-forest-labs%2Fflux.2-pro&fmt=images)

#### Method path aliases

`/v1/images`

#### Related caller IDs

[`black-forest-labs/flux.2-pro`](https://ailoot.ai/models/en/#m=black-forest-labs%2Fflux.2-pro&route=Ultra&caller=black-forest-labs%2Fflux.2-pro&fmt=images)

FAQ · Black Forest Labs: FLUX.2 Pro

What inputs and results are available?

`POST /v1/images/generations` · `black-forest-labs/flux.2-pro`: `text`, `image` → `image`

Which fields does the request use?

`POST /v1/images/generations` · `black-forest-labs/flux.2-pro`: `model`, `prompt`, `aspect_ratio`, `output_format`, `n`, `input_references`, `provider`

What limits apply?

`POST /v1/images/generations` · `black-forest-labs/flux.2-pro`: `n.minimum`: `1`; `n.maximum`: `1`

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

## The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

## Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription

Choose a discounted plan for your regular requests.

Promo code: up to 50% off

Enter your code at checkout. The price updates to reflect the current promotion.

Spending in your history

The model, tokens and amount are recorded for each request.

[Choose a subscription](https://ailoot.ai/docs/en/billing/subscriptions/) · [View model prices](https://ailoot.ai/models/en/)

## Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application

Add text, image, video and audio generation to paid features in your service.

Reseller licence

Send a description of your project and how you provide access. Request written terms for use and resale.

Documents on the website

The service offer, licence agreement and data processing policy are available before you connect.

[Request a reseller licence](mailto:support@ailoot.ai) · [Service offer and licence agreement](https://ailoot.ai/legal/offer?lang=en)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
