Skip to main content
Black Forest LabsFastUltra

FLUX 2 Max

The highest fidelity image model from Black Forest Labs. Best-in-class prompt following and the most consistent editing in the FLUX.2 lineup โ€” preserves colors, lighting, faces, text, and objects across edits with up to 8 reference images.

160 credits
per image at 1 MP โ€” varies by resolution (0.5MP 130, 2MP 230, 4MP/match_input 370, custom 390)
Highest editing consistency in the FLUX.2 lineup โ€” preserves identity, colors, lighting, and text
Best-in-class prompt following for both short and long prompts
Multi-reference editing with up to 8 input images
Systematic product color variations controlled by hex codes in the prompt
New 3D views of a scene from a single image or small reference set
Nearly as fast as FLUX.2 [pro] โ€” up to 3x faster than competing models of similar quality

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "black-forest-labs/flux-2-max",
  "input": {
    "prompt": "A photorealistic wide shot of a minimalist digital billboard in a forest of purple and lavender-hued trees. Centered text reads \"FLUX.2 [max]\" in a modern sans-serif font. Soft daylight with a purple color cast, cinematic composition",
    "resolution": "1 MP",
    "aspect_ratio": "1:1"
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-Text prompt for image generation
input_imagesarrayNo[]Up to 8 reference images (jpeg, png, gif, or webp) for image-to-image generation
aspect_ratiostringNo1:1Aspect ratio. 'match_input_image' follows the first input image; 'custom' uses width/height
match_input_imagecustom1:116:93:22:34:55:49:163:44:3
resolutionstringNo1 MPOutput resolution in megapixels. 2 MP or below recommended; max image size is 2048x2048. Billing scales with resolution
match_input_image0.5 MP1 MP2 MP4 MP
widthintegerNo-Width (256-2048, multiple of 16). Only used when aspect_ratio=custom
heightintegerNo-Height (256-2048, multiple of 16). Only used when aspect_ratio=custom
safety_toleranceintegerNo2Safety tolerance: 1 is most strict, 5 is most permissive
seedintegerNo-Random seed for reproducible generation
output_formatstringNowebpOutput image format
webpjpgpng
output_qualityintegerNo80Save quality 0-100 (not relevant for png)

How to Provide File Input

There are 3 ways to provide files for the input_images parameter:

Recommended

Direct Upload (Multipart)

Attach files directly to POST /v1/predictions/upload. No separate upload step needed.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=black-forest-labs/flux-2-max" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:input_images=@your_file.png"

Image URL

Pass a publicly accessible URL directly. You can also use file_url from the Storage API.

{
  "model": "black-forest-labs/flux-2-max",
  "input": {
    "prompt": "your prompt here",
    "input_images": ["https://example.com/image.jpg"]
  }
}
See the File Upload docs for more upload methods including Presigned URLs.

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

Photorealistic Scene with Text

Complex scene with accurate in-image text rendering

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "black-forest-labs/flux-2-max",
  "input": {
    "prompt": "A photorealistic wide shot of a minimalist digital billboard in a forest of purple and lavender-hued trees. Centered text reads \"FLUX.2 [max]\" in a modern sans-serif font. Soft daylight with a purple color cast, cinematic composition",
    "resolution": "1 MP",
    "aspect_ratio": "1:1"
  }
}'

Multi-Reference Product Edit

Consistent product mockup across a new environment

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "black-forest-labs/flux-2-max",
  "input": {
    "prompt": "Place the product from the reference image on a marble kitchen counter with soft morning light, keeping the label text and colors exactly as shown",
    "input_images": [
      "https://example.com/product.jpg"
    ],
    "resolution": "2 MP",
    "aspect_ratio": "4:5"
  }
}'

Tips & Best Practices

1Billing scales with output resolution โ€” iterate at 1 MP, then render finals at 2-4 MP
22 MP or below is recommended; at 4 MP non-square ratios may not reach the full pixel count (2048x2048 cap)
3Use hex color codes in the prompt for systematic product color variations
4When editing, state what must stay unchanged โ€” the model preserves faces, text, and lighting exceptionally well
5Use 'match_input_image' for both aspect_ratio and resolution to keep an edit dimensionally identical to the source

Use Cases

Top-tier product imagery from zero to publish-ready in minutes
Transforming low-quality phone photos into publishing-grade product shots
Cinematic key frames for animation with preserved characters and emotions
Dozens of ad variants with the same face and consistent product mockups
Interior design, 3D reconstruction, and food imagery final polish

Model Info

ProviderBlack Forest Labs
Version2.0
CategoryImage Generation
Price160 credits

API Endpoint

POST /v1/predictions
Try in ConsoleBack to Docs