FLUX.2 Max Edit overview
FLUX.2 Max Edit by Black Forest Labs
FLUX.2 Max Edit transforms one or multiple reference images using simple prompts, preserving composition and lighting.
FLUX.2 Max Edit specs
- Model ID
flux-2-max/edit- Developer
- Black Forest Labs
- Input
- Text, Image
- Output
- Image
- Endpoint
POST https://api.aimlapi.com/v1/images/generations
Precision editing without the complexity
FLUX.2 Max Edit is built for teams embedding visual editing into real products, whether refreshing e-commerce catalogs, generating campaign assets, or automating creative workflows at scale. It eliminates the need for manual masking, parameter tuning, or design software by understanding plain-English instructions like “make the background clean studio grey and update the logo to #FF0000.”
Plain-language, hex-aware editing
Describe changes conversationally “make the background studio grey and update the logo to #FF2A1B” and the model executes with pixel-perfect color matching and spatial awareness, eliminating manual layers or masks.
Structure-preserving precision
Edits refine texture, lighting, and local detail without distorting composition, perspective, or subject identity. The output looks like a re-shot photograph, not a digitally patched composite.
Multi-reference intelligence
Supply up to three reference images in a single request, and the model intelligently cross-references stylistic cues, matching outfits, environments, or branding elements across assets for cohesive campaigns.
Zero-tuning, high-throughput workflow
No guidance scales, schedulers, or step counts. Just image + prompt → polished edit. This simplicity enables seamless integration into batch jobs, web backends, or no-code automation tools.
API Controls and Practical Specs
- Input: 1–3 image URLs + natural-language prompt
- Optional: Seed control, Base64 output
Use cases
Flux 2 Max Edit is documented for e-commerce and product photography, including standardizing product photos, creating lifestyle variants, and refreshing packaging visuals while preserving brand details. It is also documented for marketing and brand campaigns, such as creating ad variants, product mockups, and campaign assets that follow strict brand guidelines.
It is documented for creative production, including transforming concept art into polished visuals, refreshing hero images and key visuals without reshooting, and generating interior design variations from reference photographs. It is also documented for automated workflows, where it can be integrated into batch processing pipelines and no-code tools for high-value editing jobs.
FLUX.2 Max Edit API pricing
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.07 | per Megapixel |
| Additional | $0.039 | per additional megapixel |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
FLUX.2 Max Edit vs other image models: prices
AI/ML API rates for 5 models, per Megapixel.
| Model | Per Megapixel |
|---|---|
| $0.07 | |
| $0.014 | |
| $0.015 | |
| $0.015 | |
| $0.05 |
How to use the FLUX.2 Max Edit API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport 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/edit",
"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.",
"image_urls": [
"https://example.com/input.jpg"
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "flux-2-max/edit",
"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.",
"image_urls": [
"https://example.com/input.jpg"
]
}
response = requests.post("https://api.aimlapi.com/v1/images/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/images/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "flux-2-max/edit",
"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.",
"image_urls": [
"https://example.com/input.jpg"
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
FLUX.2 Max Edit FAQ
What inputs and outputs does FLUX.2 Max Edit support?
FLUX.2 Max Edit takes image, text as input and returns image.
How much does FLUX.2 Max Edit cost?
FLUX.2 Max Edit costs $0.07 per Megapixel on AI/ML API, billed as you go with no subscription.
How is FLUX.2 Max Edit billed?
FLUX.2 Max Edit is billed per generation, a fixed charge per output rather than by prompt length.
Can FLUX.2 Max Edit take an existing image as input?
Yes, FLUX.2 Max Edit accepts image input as well as a text prompt.
Who created FLUX.2 Max Edit?
FLUX.2 Max Edit was built by Black Forest Labs.
How do I call FLUX.2 Max Edit on AI/ML API?
Send a request to https://api.aimlapi.com/v1/images/generations with flux-2-max/edit as the model id.
Is FLUX.2 Max Edit available through a single API key?
Yes. FLUX.2 Max Edit is served through AI/ML API, so the same key and endpoint format used for other models applies.
What is the FLUX.2 Max Edit model ID?
Use flux-2-max/edit as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.


.webp)