ModelsPricingEnterprise
500+ AI Model API, All In One API.Just In CometAPI
Models API
Developer
Quick StartDocumentationAPI Dashboard
Company
About usEnterprise
Resources
AI ModelsBlogChangelogSupport
Terms of ServicePrivacy Policy
© 2026 CometAPI · All rights reserved
Home/Models/Replicate/Black Forest Labs/FLUX 2 MAX
X

Black Forest Labs/FLUX 2 MAX

Per Request:$0.056
Context:2M
Max Output:30K
FLUX.2 [max] is the flagship, highest-quality variant of the FLUX.2 family from Black Forest Labs (BFL). It is positioned as a professional-grade text→image generation and image-editing model that focuses on maximal fidelity, prompt adherence, and editing consistency across characters, objects, lighting and color. BFL and partner registries describe FLUX.2 [max] as the top-tier FLUX.2 variant with features for multi-reference editing, grounded generation.
New
Commercial Use
Overview
Features
Pricing
API

Technical Specifications (at a glance)

SpecificationDetails
Model Name / VariantFLUX.2 [max] (black-forest-labs/flux-2-max)
Model FamilyFLUX.2 Image Generation & Editing
Input TypesText prompt, reference images (multi-reference)
Max Reference ImagesUp to 8 via API, up to 10 via playground UI
Output ResolutionUp to ~4 megapixels (2048×2048 pixels)
Character Limit (prompt)Up to 32,000 chars
Core TasksText-to-image, image editing, inpainting, style control
Typical Use Case DomainsProduction creative, e-commerce, advertising assets, iterative design
Grounded ContextReal-time web context integration supported
Photography-grade OutputYes — for professional product visuals
Benchmark RankTop 3 (Text-to-Image), Top 7 (Image Editing) globally on independent leaderboards

What Is the FLUX 2 MAX

FLUX.2 [max] is the flagship, highest-quality variant of the FLUX.2 family from Black Forest Labs (BFL). It is positioned as a professional-grade text→image generation and image-editing model that focuses on maximal fidelity, prompt adherence, and editing consistency across characters, objects, lighting and color. BFL and partner registries describe FLUX.2 [max] as the top-tier FLUX.2 variant with features for multi-reference editing, grounded generation.

The FLUX.2 [max] API is the delivery mechanism used by CometAPI to expose FLUX.2 [max] model inference to developers. The API endpoints accept text prompts and one or more reference images (for image-to-image or editing tasks), and return generated images (commonly as downloadable files or base64 data URIs).

Main Features

1. Photorealistic Image Creation

FLUX.2 [max] produces photorealistic images with rich detail, realistic lighting, spatial logic, and consistent world knowledge. It’s suited for both creative and professional marketing assets.

2. Multi-Reference Fidelity

The model allows up to 8 reference images via the API (10 in interactive playgrounds). This ensures characters, products, or styles stay visually consistent across transformations.

3. Grounded Generation

A unique capability where the model incorporates current web context and real-world information into image outputs — ideal for trend-driven visuals or up-to-date content creation.

4. Advanced Editing and Retexturing

Includes powerful inpainting and editing — from background replacement to object detail refinement — with strong structural coherence and prompt adherence.

5. Text Rendering and Typography

Compared to earlier models, FLUX.2 [max] achieves higher accuracy when rendering legible text, infographics, or UI mockups within an image.

Benchmark Performance

Independent rankings position FLUX.2 [max] among the top AI image models globally:

Leaderboard TaskPosition / Score
Text-to-Image Generation#3 Global (Score ~1167)
Image Editing / Inpainting#7 Global (Score ~1247)

These placements place FLUX.2 [max] competitive with — and in some metrics exceeding — models such as Gemini-2.5-Flash and offering better prompt adherence and text rendering than some competitors.

LUX.2 [max] Comparison with Other Models

FeatureFLUX.2 [max]Gemini-2.5-Flash / Nano BananaMidjourney v7
PhotorealismVery HighVery HighHigh
Prompt AccuracyExcellentGoodVery Good
Text RenderingNative / StrongLimitedSupported
Multi-Reference SupportYes (8+)LimitedLimited
Editing (inpainting)Strong (#7)ModerateGood

Overall, FLUX.2 [max] excels particularly in multi-reference workflows, consistent identity preservation, grounded generation, and prompt adherence, making it strong for production apps compared to models that focus primarily on artistic aesthetics.

How to access black-forest-labs/flux-2-max 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 black-forest-labs/flux-2-max API

Select the “black-forest-labs/flux-2-max ”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 also 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 Buil

Features for Black Forest Labs/FLUX 2 MAX

Explore the key features of Black Forest Labs/FLUX 2 MAX, designed to enhance performance and usability. Discover how these capabilities can benefit your projects and improve user experience.

Pricing for Black Forest Labs/FLUX 2 MAX

Explore competitive pricing for Black Forest Labs/FLUX 2 MAX, designed to fit various budgets and usage needs. Our flexible plans ensure you only pay for what you use, making it easy to scale as your requirements grow. Discover how Black Forest Labs/FLUX 2 MAX can enhance your projects while keeping costs manageable.
Comet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
Per Request:$0.056
Per Request:$0.07
-20%

Sample code and API for Black Forest Labs/FLUX 2 MAX

The FLUX.2 [max] API is the delivery mechanism used by CometAPI to expose FLUX.2 [max] model inference to developers. The API endpoints accept text prompts and one or more reference images (for image-to-image or editing tasks), and return generated images (commonly as downloadable files or base64 data URIs).
Python
JavaScript
Curl
import os
import requests
import json

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"

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

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

# Request body
payload = {
    "input": {
        "prompt": "A photorealistic wide shot of a large minimalist digital billboard standing in the middle of a forest filled with purple and lavender-hued trees. Soft violet foliage surrounds the scene, creating a surreal yet elegant atmosphere. The billboard has a sleek metal frame with subtle overhead lights, blending advanced technology with dreamlike nature. On the screen, a dark glass display shows a clean, futuristic UI with gentle lavender and magenta accents. The billboard is transparent, showing the trees behind it. Centered text reads: 'FLUX.2 [max]' in a modern sans-serif font, calm, confident, and precise. Soft daylight with a purple color cast, cinematic composition, ultra-high resolution, premium AI launch aesthetic, minimalism, tranquil mood.",
        "resolution": "2 MP",
        "aspect_ratio": "1:1",
        "input_images": [],
        "output_format": "webp",
        "output_quality": 80,
        "safety_tolerance": 2
    }
}

# Send request
response = requests.post(url, headers=headers, json=payload)

# Output result
print(f"Status Code: {response.status_code}")
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Python Code Example

import os
import requests
import json

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"

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

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

# Request body
payload = {
    "input": {
        "prompt": "A photorealistic wide shot of a large minimalist digital billboard standing in the middle of a forest filled with purple and lavender-hued trees. Soft violet foliage surrounds the scene, creating a surreal yet elegant atmosphere. The billboard has a sleek metal frame with subtle overhead lights, blending advanced technology with dreamlike nature. On the screen, a dark glass display shows a clean, futuristic UI with gentle lavender and magenta accents. The billboard is transparent, showing the trees behind it. Centered text reads: 'FLUX.2 [max]' in a modern sans-serif font, calm, confident, and precise. Soft daylight with a purple color cast, cinematic composition, ultra-high resolution, premium AI launch aesthetic, minimalism, tranquil mood.",
        "resolution": "2 MP",
        "aspect_ratio": "1:1",
        "input_images": [],
        "output_format": "webp",
        "output_quality": 80,
        "safety_tolerance": 2
    }
}

# Send request
response = requests.post(url, headers=headers, json=payload)

# Output result
print(f"Status Code: {response.status_code}")
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

JavaScript Code Example

// Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
const COMETAPI_KEY = process.env.COMETAPI_KEY || "<YOUR_COMETAPI_KEY>";

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

const payload = {
    input: {
        prompt: "A photorealistic wide shot of a large minimalist digital billboard standing in the middle of a forest filled with purple and lavender-hued trees. Soft violet foliage surrounds the scene, creating a surreal yet elegant atmosphere. The billboard has a sleek metal frame with subtle overhead lights, blending advanced technology with dreamlike nature. On the screen, a dark glass display shows a clean, futuristic UI with gentle lavender and magenta accents. The billboard is transparent, showing the trees behind it. Centered text reads: 'FLUX.2 [max]' in a modern sans-serif font, calm, confident, and precise. Soft daylight with a purple color cast, cinematic composition, ultra-high resolution, premium AI launch aesthetic, minimalism, tranquil mood.",
        resolution: "2 MP",
        aspect_ratio: "1:1",
        input_images: [],
        output_format: "webp",
        output_quality: 80,
        safety_tolerance: 2
    }
};

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

    const data = await response.json();
    console.log("Status Code:", response.status);
    console.log(JSON.stringify(data, null, 2));
}

main().catch(console.error);

Curl Code Example

#!/bin/bash

curl --location --request POST 'https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-max/predictions' \
--header "Authorization: Bearer $COMETAPI_KEY" \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data-raw '{
    "input": {
        "prompt": "A photorealistic wide shot of a large minimalist digital billboard standing in the middle of a forest filled with purple and lavender-hued trees. Soft violet foliage surrounds the scene, creating a surreal yet elegant atmosphere. The billboard has a sleek metal frame with subtle overhead lights, blending advanced technology with dreamlike nature. On the screen, a dark glass display shows a clean, futuristic UI with gentle lavender and magenta accents. The billboard is transparent, showing the trees behind it. Centered text reads: FLUX.2 [max] in a modern sans-serif font, calm, confident, and precise. Soft daylight with a purple color cast, cinematic composition, ultra-high resolution, premium AI launch aesthetic, minimalism, tranquil mood.",
        "resolution": "2 MP",
        "aspect_ratio": "1:1",
        "input_images": [],
        "output_format": "webp",
        "output_quality": 80,
        "safety_tolerance": 2
    }
}'

More Models

G

Nano Banana 2

Input:$0.4/M
Output:$2.4/M
Core Capabilities Overview: Resolution: Up to 4K (4096×4096), on par with Pro. Reference Image Consistency: Up to 14 reference images (10 objects + 4 characters), maintaining style/character consistency. Extreme Aspect Ratios: New 1:4, 4:1, 1:8, 8:1 ratios added, suitable for long images, posters, and banners. Text Rendering: Advanced text generation, suitable for infographics and marketing poster layouts. Search Enhancement: Integrated Google Search + Image Search. Grounding: Built-in thinking process; complex prompts are reasoned before generation.
D

Doubao Seedream 5

Per Request:$0.028
Seedream 5.0 Lite is a unified multimodal image generation model endowed with deep thinking andonline search capabilities, featuring an all-round upgrade in its understanding, reasoning and generationcapabilities.
F

FLUX 2 MAX

Per Request:$0.008
FLUX.2 [max] is a top-tier visual-intelligence model from Black Forest Labs (BFL) designed for production workflows: marketing, product photography, e-commerce, creative pipelines, and any application that requires consistent character/product identity, accurate text rendering, and photoreal detail at multi-megapixel resolutions. The architecture is engineered for strong prompt-following, multi-reference fusion (up to ten input images), and grounded generation (ability to incorporate up-to-date web context when producing images).
O

GPT Image 1.5

Input:$6.4/M
Output:$25.6/M
GPT-Image-1.5 is OpenAI’s image model in the GPT Image family . It is a natively multimodal GPT model designed to generate images from text prompts and to perform high-fidelity edits of input images while following user instructions closely.
D

Doubao Seedream 4.5

Per Request:$0.032
Seedream 4.5 is ByteDance/Seed’s multimodal image model (text→image + image editing) that focuses on production-grade image fidelity, stronger prompt adherence, and much-improved editing consistency (subject preservation, text/typography rendering, and facial realism).
R

Black Forest Labs/FLUX 2 PRO

R

Black Forest Labs/FLUX 2 PRO

Per Request:$0.06
FLUX 2 PRO is the flagship commercial model in the FLUX 2 series, delivering state-of-the-art image generation with unprecedented quality and detail. Built for professional and enterprise applications, it offers superior prompt adherence, photorealistic outputs, and exceptional artistic capabilities. This model represents the cutting edge of AI image synthesis technology.