🎉 New Year Sale: Get 20% OFF on all plans — Use code NEWYEAR2026.

Upgrade now
Flux 2 Max Text To Image thumbnail

Black Forest Labs/Flux 2 Max Text To Image

flux-2-max
Flux 2 Max Text To ImageLLMs.txt
Photoreal text-to-image generator with up to 4MP output, 32B parameters, multi-reference support (up to 10 refs), fast inference and precise typography handling.
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v7/images/text-to-image

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"model_id": "flux-2-max",
"prompt": "Present a clear, 45° top-down isometric miniature 3D cartoon scene of Freiburg, Germany, featuring its most iconic landmarks and architectural elements. Use soft, refined textures with realistic PBR materials and gentle, lifelike lighting and shadows. Integrate the current weather conditions directly into the city environment to create an immersive atmospheric mood.Use a clean, minimalistic composition with a soft, solid-colored background At the top-center, place the title “Freiburg” in large bold text, a prominent weather icon beneath it, then the date (small text) and temperature (medium text). All text must be centered with consistent spacing, and may subtly overlap the tops of the buildings.",
"width": "1024",
"height": "1024",
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
model_idmodel_idModel to use for generation
promptpromptText description of the image you want to generate
widthwidthWidth of the image (max 1024)
heightheightHeight of the Image (max 1024)