Unlock exclusive introductory pricing for the newly launched Gemini 3.5 Flash.
R

Black Forest Labs/FLUX 2 FLEX

Theo Yรชu cแบงu:$0.192
Ngร y phรกt hร nh:Nov 25, 2025

FLUX 2 FLEX is the versatile, adaptable model designed for flexible deployment across various use cases and hardware configurations. It offers scalable performance with adjustable quality settings, making it ideal for applications requiring dynamic resource allocation. This model provides the best balance between quality, speed, and resource efficiency.

Mแป›i
Sแปญ dแปฅng thฦฐฦกng mแบกi

What is FLUX.2 Flex

FLUX.2 is the โ€œflexibleโ€ (managed API) member of the FLUX.2 product family from Black Forest Labs. It is designed for developers and creative teams who need:

  • explicit control over generation parameters (inferenceย steps,ย guidance scale, etc.) so they can trade speed for fidelity during iterative workflows;
  • robustย typography / text renderingย and very fine detail handling (infographics, UI mockups, product labels); and
  • reliableย multi-reference editingย (combine elements across several photos while maintaining identity/consistency).

FLUX.2 is offered as multiple product variants (Pro, Flex, Dev, Klein) that target different usage patterns โ€” Flex sits between Pro (highest quality + fixed latency) and Dev (open-weight checkpoint for research/local use).

Key features (what FLUX.2 Flex brings to the table)

  • Controllable generation:ย explicit parameters (steps, guidance scale) to balance speed vs. prompt fidelity.
  • High-resolution output:ย capable of production outputs up toย 4 megapixelsย (4MP) while preserving detail.
  • Multi-reference inputs:ย accepts multiple reference images (Flex supports up toย 10ย reference images; Dev/Pro numbers vary by tier). This enables consistent character/product renderings across outputs.
  • Improved typography and text rendering:ย BFL emphasizes substantially improved rendering of glyphs, kerning and multi-line layouts โ€” making FLUX.2 attractive for UI, packaging and infographics.
  • Managed API with megapixel pricing (predictable cost model):ย pricing for Flex uses a per-megapixel model (see Pricing section).

Technical details of FLUX.2 Flex

Core architecture: FLUX.2 uses aย latent flow-matchingย backbone (flow transformer) combined with a vision-language model (BFL states it couples a Mistral-3 24B VLM with a rectified flow transformer). The VAE used by FLUX.2 was re-trained to improve the learnability/quality/compression tradeoff. These choices help with world knowledge, compositional logic and tighter prompt adherence.

FLUX.2 : typical generation times reportedย ~22 sย (text-only) andย ~40 sย (with input image), accepts up toย 10ย inputs and is priced aroundย $0.048 per megapixelย (input + output combined) on CometAPI.

Model name:ย black-forest-labs/flux-2-flex

Input constraints:ย Flex accepts multiple inputs (up to 10 inputs in the managed offering) and a total input megapixel limit is enforced (quote a 14MP maximum aggregated input ). Output resolution beyond 4MP is typically downsampled or limited by the service.

Benchmark performance of FLUX.2 Flex

Human-style win-rate evaluation (vendor benchmark): In BFLโ€™s published head-to-head tests, FLUX.2 variants (notably ) showed strong win rates vs. contemporary open models:ย ~66.6%ย win rate in text-to-image,ย 59.8%ย in single-reference editing andย 63.6%ย in multi-reference editing vs. other open models cited. BFL also presented an ELO vs. per-image cost chart placing FLUX.2 variants in theย ~1030โ€“1050 ELOย band at per-image costs in theย 2โ€“6 centย range .

Limitations of FLUX.2 Flex

  • Cost scaling with references / resolution:ย Flex uses per-megapixel pricing. Adding multiple reference images or raising output resolution increases cost linearly under the advertised megapixel model . For workflows that iterate with many references, cost can accumulate quickly.
  • Prompt/consistency failure modes:ย Although FLUX.2 improves character consistency, complex multi-attribute prompts can still produce failures (artifacts, unexpected blending, or pose/identity drift) depending on prompt design and number of references.
  • Content & safety:ย While BFL reports strong resilience in moderation/violative-input tests, image models are not perfect; risks remain for generating copyrighted material, impersonation, or unsafe content.
  • Ad and marketing image variantsย where the same model/actor/product must remain consistent across many scenes or backgrounds (multi-reference consistency).
  • Product photography & virtual try-onย (preserve product details across backgrounds).
  • Editorial/fashion spreadsย requiring the same identity across many shots.
  • Rapid prototyping and researchย (dev checkpoint allows experimentation, fine-tuning and LoRA/adapter workflows).

How to access Flux.2 Flex API

Step 1: Sign Up for API Key

Log in toย cometapi.com. If you are not our user yet, please register first. Sign into yourย CometAPI console. Get the access credential API key of the interface. Click โ€œAdd Tokenโ€ at the API token in the personal center, get the token key: sk-xxxxx and submit.

Step 2: Send Requests to Flux.2 Flex API

Select the โ€œblack-forest-labs/flux-2-flexย โ€endpoint to send the API request and set the request body. The request method and request body are obtained from our website API doc. Our website also provides Apifox test for your convenience. Replace <YOUR_API_KEY> with your actual CometAPI key from your account.

Insert your question or request into the content fieldโ€”this is what the model will respond to . Process the API response to get the generated answer.

Step 3: Retrieve and Verify Results

Process the API response to get the generated answer. After processing, the API responds with the task status and output data.

CometAPIย Now Supporting Replicate Format Models:ย ๐Ÿ”นย black-forest-labs/flux-2-proย ๐Ÿ”นย black-forest-labs/flux-2-devย ๐Ÿ”นย black-forest-labs/flux-2-flex

Limited Time Promotion: Lower than Replicate Official Pricing!

๐Ÿ‘‡ย Start Building Nowย Create Predictions โ€“ API Doc

โšก Flexible Selection:

  • Pro: Designed for high-efficiency production and fast delivery.
  • Flex: Maximizes image quality with adjustable parameters.
  • Dev: Developer-friendly optimization.

Giรก cแบฃ cho Black Forest Labs/FLUX 2 FLEX

Khรกm phรก mแปฉc giรก cแบกnh tranh cho Black Forest Labs/FLUX 2 FLEX, ฤ‘ฦฐแปฃc thiแบฟt kแบฟ ฤ‘แปƒ phรน hแปฃp vแป›i nhiแปu ngรขn sรกch vร  nhu cแบงu sแปญ dแปฅng khรกc nhau. Cรกc gรณi linh hoแบกt cแปงa chรบng tรดi ฤ‘แบฃm bแบฃo bแบกn chแป‰ trแบฃ tiแปn cho nhแปฏng gรฌ bแบกn sแปญ dแปฅng, giรบp dแป… dร ng mแปŸ rแป™ng quy mรด khi yรชu cแบงu cแปงa bแบกn tฤƒng lรชn. Khรกm phรก cรกch Black Forest Labs/FLUX 2 FLEX cรณ thแปƒ nรขng cao cรกc dแปฑ รกn cแปงa bแบกn trong khi vแบซn kiแปƒm soรกt ฤ‘ฦฐแปฃc chi phรญ.

Comet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
Theo Yรชu cแบงu:$0.192
Theo Yรชu cแบงu:$0.24
-20%

Mรฃ mแบซu vร  API cho Black Forest Labs/FLUX 2 FLEX

Truy cแบญp mรฃ mแบซu toร n diแป‡n vร  tร i nguyรชn API cho Black Forest Labs/FLUX 2 FLEX ฤ‘แปƒ tแป‘i ฦฐu hรณa quy trรฌnh tรญch hแปฃp cแปงa bแบกn. Tร i liแป‡u chi tiแบฟt cแปงa chรบng tรดi cung cแบฅp hฦฐแป›ng dแบซn tแปซng bฦฐแป›c, giรบp bแบกn khai thรกc toร n bแป™ tiแปm nฤƒng cแปงa Black Forest Labs/FLUX 2 FLEX trong cรกc dแปฑ รกn cแปงa mรฌnh.

#!/bin/bash
# Get your CometAPI key from https://api.cometapi.com/console/token
# Export it as: export COMETAPI_KEY="your-key-here"

curl --location --request POST 'https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-flex/predictions' \
--header "Authorization: Bearer $COMETAPI_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
    "input": {
        "prompt": "Fluffy cotton candy sculpted into voluminous 3D letters spelling FLEX in swirls of bubblegum pink, baby blue, and soft lavender, held on a wooden stick in front of a vintage pastel cotton candy cart. Shot on Kodak Portra 160, bright midday summer sunlight, the spun sugar texture catching light with wispy translucent edges",
        "input_images": [
            "https://replicate.delivery/xezq/Q9jOVfT4nmT6YaUGe7fwMe85kYPNziFq18j850Sg6YvPlk0WB/tmpzq6ncmxa.jpg"
        ],
        "aspect_ratio": "16:9",
        "resolution": "2 MP",
        "steps": 30,
        "guidance": 4.5,
        "prompt_upsampling": true,
        "output_format": "jpg",
        "output_quality": 90,
        "safety_tolerance": 2,
        "seed": 42
    }
}'

cURL Code Example

#!/bin/bash
# Get your CometAPI key from https://api.cometapi.com/console/token
# Export it as: export COMETAPI_KEY="your-key-here"

curl --location --request POST 'https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-flex/predictions' \
--header "Authorization: Bearer $COMETAPI_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
    "input": {
        "prompt": "Fluffy cotton candy sculpted into voluminous 3D letters spelling FLEX in swirls of bubblegum pink, baby blue, and soft lavender, held on a wooden stick in front of a vintage pastel cotton candy cart. Shot on Kodak Portra 160, bright midday summer sunlight, the spun sugar texture catching light with wispy translucent edges",
        "input_images": [
            "https://replicate.delivery/xezq/Q9jOVfT4nmT6YaUGe7fwMe85kYPNziFq18j850Sg6YvPlk0WB/tmpzq6ncmxa.jpg"
        ],
        "aspect_ratio": "16:9",
        "resolution": "2 MP",
        "steps": 30,
        "guidance": 4.5,
        "prompt_upsampling": true,
        "output_format": "jpg",
        "output_quality": 90,
        "safety_tolerance": 2,
        "seed": 42
    }
}'

Python Code Example

import os
import requests

COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"

url = "https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-flex/predictions"

headers = {
    "Authorization": f"Bearer {COMETAPI_KEY}",
    "Content-Type": "application/json"
}

payload = {
    "input": {
        "prompt": "Fluffy cotton candy sculpted into voluminous 3D letters spelling 'FLEX' in swirls of bubblegum pink, baby blue, and soft lavender, held on a wooden stick in front of a vintage pastel cotton candy cart. Shot on Kodak Portra 160, bright midday summer sunlight, the spun sugar texture catching light with wispy translucent edges",
        "input_images": [
            "https://replicate.delivery/xezq/Q9jOVfT4nmT6YaUGe7fwMe85kYPNziFq18j850Sg6YvPlk0WB/tmpzq6ncmxa.jpg"
        ],
        "aspect_ratio": "16:9",
        "resolution": "2 MP",
        "steps": 30,
        "guidance": 4.5,
        "prompt_upsampling": True,
        "output_format": "jpg",
        "output_quality": 90,
        "safety_tolerance": 2,
        "seed": 42
    }
}

response = requests.post(url, headers=headers, json=payload)
result = response.json()

print(f"Status Code: {response.status_code}")
print(f"Task ID: {result.get('id')}")
print(f"Status: {result.get('status')}")
print(f"Model: {result.get('model')}")

JavaScript Code Example

const COMETAPI_KEY = process.env.COMETAPI_KEY || "<YOUR_COMETAPI_KEY>";

const url = "https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-flex/predictions";

const payload = {
    input: {
        prompt: "Fluffy cotton candy sculpted into voluminous 3D letters spelling 'FLEX' in swirls of bubblegum pink, baby blue, and soft lavender, held on a wooden stick in front of a vintage pastel cotton candy cart. Shot on Kodak Portra 160, bright midday summer sunlight, the spun sugar texture catching light with wispy translucent edges",
        input_images: [
            "https://replicate.delivery/xezq/Q9jOVfT4nmT6YaUGe7fwMe85kYPNziFq18j850Sg6YvPlk0WB/tmpzq6ncmxa.jpg"
        ],
        aspect_ratio: "16:9",
        resolution: "2 MP",
        steps: 30,
        guidance: 4.5,
        prompt_upsampling: true,
        output_format: "jpg",
        output_quality: 90,
        safety_tolerance: 2,
        seed: 42
    }
};

const response = await fetch(url, {
    method: "POST",
    headers: {
        "Authorization": `Bearer ${COMETAPI_KEY}`,
        "Content-Type": "application/json"
    },
    body: JSON.stringify(payload)
});

const result = await response.json();

console.log(`Status Code: ${response.status}`);
console.log(`Task ID: ${result.id}`);
console.log(`Status: ${result.status}`);
console.log(`Model: ${result.model}`);