FLUX.2 [max]
FLUX.2 [max] is a high-precision text to image and image editing model from Black Forest Labs that generates visuals grounded in real-time information via live web search. It delivers maximum prompt adherence with multi-reference editing and state-of-the-art consistency across identities, objects, and details.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: imageInference -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Image output type.
Allowed values 3 values
-
outputFormat
string default: JPG -
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.
- `JPG`: Best for photorealistic images with smaller file sizes (no transparency).
- `PNG`: Lossless compression, supports high quality and transparency (alpha channel).
- `WEBP`: Modern format providing superior compression and transparency support.
**Transparency**: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., `PNG`, `WEBP`, `TIFF`). `JPG` does not support transparency.Allowed values 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: sync -
Determines how the API delivers task results.
Allowed values 2 values
- Returns complete results directly in the API response.
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string URI -
Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.
Common use cases:
- Cloud storage: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- CDN integration: Upload to content delivery networks for immediate distribution.
// S3 presigned URL for secure upload https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600 // Google Cloud Storage presigned URL https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789 // Custom storage endpoint https://storage.example.com/uploads/generated-image.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
safety
object -
Content safety checking configuration for image generation.
Properties 2 properties
-
safety»checkContentcheckContent
boolean default: false -
Enable or disable content safety checking. When enabled, defaults to
fastmode.
-
safety»modemode
string default: none -
Safety checking mode for image generation.
Allowed values 2 values
- Disables checking.
- Performs a single check.
-
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
boolean default: false -
Include task cost in the response.
-
numberResults
integer min: 1 max: 20 default: 1 -
Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
Inputs
Input resources for the task (images, audio, etc). These must be nested inside the inputs object.
inputs object.-
inputs»referenceImagesreferenceImages
array of strings min items: 1max items: 8 -
List of reference images (UUID, URL, Data URI, or Base64).
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: bfl:7@1 -
Identifier of the model to use for generation.
Learn more 3 resources
-
positivePrompt
string required min: 1 max: 32000 -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
-
width
integer min: 256 max: 2048 step: 16 default: 1024 -
Width of the generated media in pixels.
Learn more 2 resources
-
height
integer min: 256 max: 2048 step: 16 default: 1024 -
Height of the generated media in pixels.
Learn more 2 resources
-
seed
integer min: 0 max: 9223372036854776000 -
Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.
Learn more 1 resource
Provider Settings
Parameters specific to this model provider. These must be nested inside the providerSettings.bfl object.
providerSettings.bfl object.-
providerSettings»bfl»promptUpsamplingpromptUpsampling
boolean default: false -
Enable automatic enhancement and expansion of the input prompt.
-
providerSettings»bfl»safetyTolerancesafetyTolerance
integer min: 0 max: 6 default: 2 -
Tolerance level for content moderation. Lower values are stricter; higher values are more permissive.
Breaking News Photoreal Montage
{
"taskType": "imageInference",
"taskUUID": "47c9dc10-c1d3-4952-bef3-496bec358e45",
"model": "bfl:7@1",
"positivePrompt": "Photorealistic front-page editorial image of a bustling coastal smart city in 2026 after a major clean-energy breakthrough, sunrise golden light reflecting off modern glass towers, autonomous electric buses, cyclists, pedestrians in contemporary fashion, harbor with offshore wind turbines and sleek cargo ships, large public plaza with interactive climate dashboard screens, subtle news-documentary composition, realistic signage, natural skin tones, crisp architectural detail, atmospheric depth, authentic candid moments, shot like a high-end full-frame press photograph, 35mm lens, ultra-detailed, balanced contrast, globally relevant contemporary aesthetics",
"width": 1536,
"height": 1024,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
}
}{
"taskType": "imageInference",
"taskUUID": "47c9dc10-c1d3-4952-bef3-496bec358e45",
"imageUUID": "ed54c92c-5fe0-4afb-9011-b2320dc4513d",
"imageURL": "https://im.runware.ai/image/os/a03d21/ws/2/ii/ed54c92c-5fe0-4afb-9011-b2320dc4513d.jpg",
"seed": 835041428,
"cost": 0.1
}Editorial Fashion Lookbook
{
"taskType": "imageInference",
"taskUUID": "cb274f8b-8780-43ce-8db9-e871e8040424",
"model": "bfl:7@1",
"positivePrompt": "Luxury editorial fashion portrait for a premium lookbook, a confident model standing in a minimalist sandstone courtyard at golden hour, tailored ivory suit with intricate fabric texture, sculptural gold jewelry, soft wind moving the jacket hem, cinematic natural light, realistic skin detail, crisp eyes, elegant composition, high-end magazine photography, subtle depth of field, refined color grading, ultra-detailed textiles, clean architectural lines, sophisticated and modern, photorealistic",
"width": 1024,
"height": 1536,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
}
}{
"taskType": "imageInference",
"taskUUID": "cb274f8b-8780-43ce-8db9-e871e8040424",
"imageUUID": "e0514b1d-3e43-4b6a-b923-43538a724b2f",
"imageURL": "https://im.runware.ai/image/os/a18d05/ws/2/ii/e0514b1d-3e43-4b6a-b923-43538a724b2f.jpg",
"seed": 1939063193,
"cost": 0.1
}Luxury Timepiece Macro Editorial
{
"taskType": "imageInference",
"taskUUID": "271a2a9d-7283-4abb-aa97-5fe91241a136",
"model": "bfl:7@1",
"positivePrompt": "Ultra-detailed luxury wristwatch product editorial, macro close-up on a brushed titanium chronograph watch resting on dark volcanic stone, sapphire crystal reflections, precisely machined bezel markings, visible texture on black rubber strap, subtle water droplets, dramatic studio lighting with soft rim light and controlled specular highlights, premium advertising photography, photorealistic, razor-sharp focus on the watch face, shallow depth of field, elegant negative space for magazine layout, neutral charcoal background, high contrast, refined color grading, extremely realistic materials, no extra objects, no text, no logos",
"width": 1024,
"height": 1024,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
}
}{
"taskType": "imageInference",
"taskUUID": "271a2a9d-7283-4abb-aa97-5fe91241a136",
"imageUUID": "5e8ef17b-637b-4e2d-82cb-8b8c95864e78",
"imageURL": "https://im.runware.ai/image/os/a17d13/ws/2/ii/5e8ef17b-637b-4e2d-82cb-8b8c95864e78.jpg",
"seed": 724078346,
"cost": 0.07
}