FLUX.2 Max API

FLUX 2 Max is the maximum-capability text-to-image model from Black Forest Labs for the highest visual fidelity.

Modalities
TextImage
Price
$0.07per Megapixel
Model type
Image generation
Released
Dec 17, 2025

FLUX.2 Max overview

Sample FLUX.2 Max image generated through AI/ML API: A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lette

FLUX.2 Max by Black Forest Labs

FLUX.2 Max is Black Forest Labs' flagship text-to-image model, delivering exceptional photorealism and anatomical accuracy.

FLUX.2 Max specs

Model ID
flux-2-max
Developer
Black Forest Labs
Input
Text
Output
Image
Endpoint
POST https://api.aimlapi.com/v1/images/generations

High-fidelity, open-weight creative engine for scale-ready workflows

FLUX.2 Max is designed for developers and creative teams who need photorealistic consistency, complex scene composition, and natural-language-driven edits. Black Forest Labs positions it as a dual-capability model: equally powerful for generating from scratch and refining existing visuals.

If you’re building professional-grade image tools, whether for e-commerce, game asset pipelines, branded content automation, or editorial illustration, FLUX.2 Max offers an open, controllable, and commercially viable alternative with superior spatial reasoning and style stability across generations.

Prompt adherence and spatial understanding

FLUX.2 [max] reliably interprets complex scene descriptions without collapsing objects or misplacing elements, making it uniquely suited for structured, multi-object compositions where layout precision matters.

Industry-leading photorealism and text rendering

Ranked #3 globally for text-to-image (ELO 1167), FLUX.2 [max] surpasses predecessors and competitors in rendering legible, stylized text (e.g., neon signs with custom typography) and lifelike textures, lighting, and depth, critical for product mockups, UI assets, and branded visuals.

Natural-language image editing without visual drift

‍With its powerful inpainting and outpainting capabilities, FLUX.2 [max] lets you modify existing images using intuitive prompts while preserving identity, pose, and lighting coherence, enabling true no-code photo refinement at scale.

API Controls and Practical Features

  • Output Format: auto, jpeg, png
  • Prompt engineering: Handles complex, multi-clause instructions with high reliability
  • Style consistency: Maintain character identity or visual motif across batches, critical for storyboards, avatars, or product lines
  • Architecture: Built on advanced Flow Matching Transformers for faster convergence and higher detail fidelity

FLUX.2 Max vs OpenAI’s GPT Image 1.5

GPT Image 1.5 wins on ecosystem integration (OpenAI/MSFT) and API polish (streaming, compression controls), but FLUX.2 Max leads in photographic realism, text-in-image accuracy, and open deployment. If you prioritize visual quality over turnkey enterprise tooling, FLUX.2 Max is often the better fit.

Use cases

Marketplace-ready product photos are a documented use case for Flux 2 Max, with the model described as suited to polished, consistent product imagery for showcasing products.

It is also documented for marketing visuals and ad creative, including scalable ad creatives for social campaigns and key visuals for campaigns.

Character-consistent campaigns and brand imagery are another stated use case, with references to maintaining character consistency across scenes and brand-accurate visual identity.

Creative production workflows are also mentioned, including concept development, character design, environment generation, final frames, and print-ready or editorial assets.

FLUX.2 Max benchmarks by Artificial Analysis

Human-preference results for FLUX.2 Max in text to image, next to models available on AI/ML API. Data retrieved Nov 3, 2026.

Text to image

Elo · text-to-image arena

AI/ML API price

USD per Megapixel

Models on AI/ML API

Arena results for models you can call with the same API key.

Text to image

Blind pairwise human votes on images generated from text prompts. FLUX.2 Max ranks #35 of 98.

FLUX.2 Max API pricing

FLUX.2 Max pricing in US dollars
UsagePriceUnit
Image generation$0.07per Megapixel
Additional$0.039per additional megapixel

Prices from the AI/ML API price list, checked on Nov 4, 2026.

FLUX.2 Max vs other image models: prices

AI/ML API rates for 5 models, per Megapixel.

AI/ML API prices in USD per Megapixel
ModelPer Megapixel
FLUX.2 Max$0.07
FLUX.2 Klein 4B$0.014
FLUX.2 Klein 9B$0.015
FLUX.2 Klein 9B Preview$0.015
FLUX.2 Flex$0.05

How to use the FLUX.2 Max API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "flux-2-max",
  "prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'

Related articles

All posts

FLUX.2 Max FAQ

What inputs and outputs does FLUX.2 Max support?

FLUX.2 Max takes image, text as input and returns image.

How much does FLUX.2 Max cost?

FLUX.2 Max costs $0.07 per Megapixel on AI/ML API, billed as you go with no subscription.

How is FLUX.2 Max billed?

FLUX.2 Max is billed per generation, a fixed charge per output rather than by prompt length.

Can FLUX.2 Max take an existing image as input?

Yes, FLUX.2 Max accepts image input as well as a text prompt.

Who created FLUX.2 Max?

FLUX.2 Max was built by Black Forest Labs.

How do I call FLUX.2 Max on AI/ML API?

Send a request to https://api.aimlapi.com/v1/images/generations with flux-2-max as the model id.

Is FLUX.2 Max available through a single API key?

Yes. FLUX.2 Max is served through AI/ML API, so the same key and endpoint format used for other models applies.

Is FLUX.2 Max a chatbot or conversational AI?

No. FLUX.2 Max is an image generation model, not a conversational model.

What is FLUX.2 Max designed to do?

It is Black Forest Labs' maximum-capability text-to-image model, built for the highest visual fidelity.

What is the FLUX.2 Max model ID?

Use flux-2-max as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.

Start building with FLUX.2 Max

FLUX.2 Max API

flux-2-max

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "flux-2-max",
  "prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'