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/Flux/FLUX 2 MAX
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).
New
Commercial Use
Playground
Overview
Features
Pricing
API

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

Technical specifications (table)

FieldValue / notes
Model name / variantFLUX.2 [max] (often written FLUX 2 Max).
Input typesText prompts + reference images (image inputs accepted).
Output typesImage (photorealistic & stylized), image edits (inpainting/outpainting/retexturing)
Reference images (max)Up to 8 reference images via API
Native max resolutionUp to 4 megapixels (e.g., ~2048×2048 or equivalent MP configurations); recommended production sizes typically ≤2MP for speed/cost tradeoffs.
Context (text) window32K text tokens (documented input token capacity for FLUX.2 family).
Latency / speed“Sub-10-second” generation speeds cited for typical configurations

What is the FLUX.2 [max] API?

The FLUX.2 [max] API is BFL’s managed endpoint that exposes the FLUX.2 [max] model for programmatic text→image generation, multi-reference image editing, and grounded generation workflows. It accepts JSON requests with prompt text and optional image references, supports standard image generation parameters (dimensions, steps, guidance scale, seeds), and returns generated image URLs or image blobs per the provider’s response format.

Typical API capabilities exposed:

  • Text→Image generation endpoint.
  • Image editing / inpainting / outpainting endpoints accepting reference images.
  • Multi-reference indexing (tagging reference images within a request).
  • Optional grounding / web search integration for up-to-date context in generated imagery (available in the [max] tier).

Main features

  • Grounded generation (web context): [max] can incorporate recent, externally-sourced web context into its generations so visuals can reflect trending products or current events when requested. This is a headline differentiator.
  • High fidelity / 4MP native output: realistic lighting, textures, and stable geometry at production-grade resolutions.
  • Multi-reference editing & strong identity consistency: preserves faces and product identity across edits and across shots; supports many references to maintain consistent identity across outputs.
  • Advanced prompt following & style fidelity: tuned to faithfully reproduce complex style instructions and maintain typography / small text fidelity better than typical image models (per vendor tests).
  • Production controls: JSON control knobs, pose guidance, retexturing tools, and high control over colors (hex codes) and composition for studio workflows.

Benchmark performance

  • LM Arena / Image Arena placement: FLUX.2 [max] sits high on public image-generation leaderboards; crowd-sourced ELO rankings (LM Arena / Image Arena) show it around the 1150–1170 ELO range (example: 1168 ELO on the Text-to-Image arena at the time of reporting), placing it among the top non-BigTech image models while trailing a few top entries from the largest vendors.
  • Practical benchmarks: Strong visual quality vs. peer models (notably better color balance, texture detail and creative style range in many head-to-head tests).

FLUX 2 max Vs Midjourney vs Nano Banana

  • Vs. Midjourney v7 / Midjourney family: reviewers note FLUX.2 variants (Pro/Max) aim directly at production fidelity and multi-reference identity consistency where Midjourney’s strengths remain style and aesthetic exploration. In hard identity/consistency tests, some reviewers place FLUX.2 ahead, while Midjourney still excels for certain creative stylizations. (compare: industry reviews and direct model comparison articles).
  • Vs. Nano Banana Pro (and similar studio-grade models): Nano Banana Pro and a few other proprietary models are positioned as strong multi-reference / virtual-studio tools; FLUX.2 [max] competes closely on editing consistency and photoreal fidelity while offering a broader product family for speed/control tradeoffs.

Model Variants

VariantTarget UseKey Strength
FLUX.2 [max]Professional workflowsHighest fidelity & editing consistency
FLUX.2 [pro]Balanced performanceGood speed-quality tradeoff
FLUX.2 [flex]Adjustable controlFine-grained generation parameters
FLUX.2 [dev]Open-weight researchLocal development & experimentation

Typical production use cases

  • E-commerce / product photography: create consistent, brand-compliant product renders and multiple variants for A/B testing without a physical photoshoot.
  • Advertising & marketing assets: produce marketplace-ready hero images, posters, and lifestyle shots at up to 4MP for campaign needs.
  • Character & IP continuity: studios that need the same character/product to appear across multiple scenes and edits with identity preserved.
  • Editorial & grounded visualizations: visualize current/real-world events or trending product concepts using grounded generation to add recent context. (Be careful about legal/ethical risk for real persons.)
  • Design & prototyping: UI mockups, infographics and posters where legible text and controlled typography are required.

How to access 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 Flux 2 Max API

Select the “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. base url is flux generate image(https://api.cometapi.com/flux/v1/flux-2-max)

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

After generation, you can use the /flux/v1/get_result endpoint to query generated images or monitor process status.. After processing, the API responds with the task status and output data.

👇 Start Building Now Flux image generation – API Doc

Features for FLUX 2 MAX

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

Pricing for FLUX 2 MAX

Explore competitive pricing for 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 FLUX 2 MAX can enhance your projects while keeping costs manageable.
ResolutionMegapixels (MP)Official PriceComet Price (20% OFF)
1216 x 832~1 MP (Standard)$0.070$0.056
1920 x 1080~2 MP (HD 1080P)$0.100$0.080
Higher Resolutions>2 MPDynamic PricingOfficial Price x 0.8

Sample code and API for FLUX 2 MAX

The FLUX.2 [max] API is BFL’s managed endpoint that exposes the FLUX.2 [max] model for programmatic text→image generation, multi-reference image editing, and grounded generation workflows. It accepts JSON requests with prompt text and optional image references, supports standard image generation parameters (dimensions, steps, guidance scale, seeds), and returns generated image URLs or image blobs per the provider’s response format.
POST
/flux/v1/{model}
Python
JavaScript
Curl
"""
FLUX 2 Max - Image Generation via Flux API
Using CometAPI's native Flux endpoint to generate images
"""

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/flux/v1/flux-2-max"

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

# Request body
payload = {
    "prompt": "ein fantastisches bild",
    "image_prompt": "",
    "aspect_ratio": "custom",
    "width": 1024,
    "height": 1024,
    "prompt_upsampling": False,
    "seed": 42,
    "safety_tolerance": 2,
    "output_format": "jpeg",
    "webhook_url": "",
    "webhook_secret": ""
}

# 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

"""
FLUX 2 Max - Image Generation via Flux API
Using CometAPI's native Flux endpoint to generate images
"""

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/flux/v1/flux-2-max"

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

# Request body
payload = {
    "prompt": "ein fantastisches bild",
    "image_prompt": "",
    "aspect_ratio": "custom",
    "width": 1024,
    "height": 1024,
    "prompt_upsampling": False,
    "seed": 42,
    "safety_tolerance": 2,
    "output_format": "jpeg",
    "webhook_url": "",
    "webhook_secret": ""
}

# 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

/**
 * FLUX 2 Max - Image Generation via Flux API
 * Using CometAPI's native Flux endpoint to generate images
 */

// 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/flux/v1/flux-2-max";

const payload = {
    prompt: "ein fantastisches bild",
    image_prompt: "",
    aspect_ratio: "custom",
    width: 1024,
    height: 1024,
    prompt_upsampling: false,
    seed: 42,
    safety_tolerance: 2,
    output_format: "jpeg",
    webhook_url: "",
    webhook_secret: ""
};

async function main() {
    const response = await fetch(url, {
        method: "POST",
        headers: {
            "Authorization": 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
# FLUX 2 Max - Image Generation via Flux API
# Using CometAPI's native Flux endpoint to generate images

curl --location --request POST 'https://api.cometapi.com/flux/v1/flux-2-max' \
--header "Authorization: $COMETAPI_KEY" \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data-raw '{
    "prompt": "ein fantastisches bild",
    "image_prompt": "",
    "aspect_ratio": "custom",
    "width": 1024,
    "height": 1024,
    "prompt_upsampling": false,
    "seed": 42,
    "safety_tolerance": 2,
    "output_format": "jpeg",
    "webhook_url": "",
    "webhook_secret": ""
}'

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

Black Forest Labs/FLUX 2 MAX

Per Request:$0.056
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.
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.