FLUX.1 Kontext [max]
FLUX.1 Kontext [max] is a high quality text to image model for production workflows. It focuses on prompt accuracy, sharp local edits, and premium typography rendering. Use it for detailed visual design, branded visuals, and consistent character safe image generation.
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: 2 -
List of reference images (UUID, URL, Data URI, or Base64).
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: bfl:4@1 -
Identifier of the model to use for generation.
Learn more 3 resources
-
positivePrompt
string required min: 2 max: 3000 -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
-
Width of the generated media in pixels.
Learn more 2 resources
-
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.
Windblown Desert Cinema Marquee
{
"taskType": "imageInference",
"taskUUID": "9d4d5b7b-3e05-4471-9c0f-4c9caa0091a5",
"model": "bfl:4@1",
"positivePrompt": "Reimagine the reference image as a meticulously restored mid-century desert cinema at blue hour, viewed from the front in a wide cinematic composition. Keep the building layout and perspective from the reference, but transform the scene into a polished contemporary editorial photograph. The marquee displays sharp, perfectly legible premium typography reading: STAR DUNE CINEMA and beneath it TONIGHT: SILENT COMET. Warm incandescent bulbs glow around the sign, casting elegant highlights across smooth stucco and brushed metal trim. Add a few parked vintage-inspired cars, drifting sand ribbons across the asphalt, tall dry grasses at the edges, glowing ticket window, subtle neon accents in amber and turquoise, distant mesas silhouetted against a dramatic violet-to-copper sky. Highly detailed textures, realistic reflections, clean composition, strong local edits, precise signage, commercial-grade finish.",
"width": 1568,
"height": 672,
"seed": 78011,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/723d7e79-17bf-444a-9825-62d9b99e75d1.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "9d4d5b7b-3e05-4471-9c0f-4c9caa0091a5",
"imageUUID": "1a4463cd-a948-4e18-b326-7095b4471e05",
"imageURL": "https://im.runware.ai/image/os/a20d05/ws/2/ii/1a4463cd-a948-4e18-b326-7095b4471e05.jpg",
"seed": 78011,
"cost": 0.08
}Wayfinding Mural Transit Concourse
{
"taskType": "imageInference",
"taskUUID": "5e83175c-2c9f-456f-9f78-7a43a4b4bdd4",
"model": "bfl:4@1",
"positivePrompt": "Edit the provided transit concourse image into a premium branded wayfinding scene. Replace the blank wall with a large-scale graphic mural in deep cobalt, burnt orange, cream, and charcoal. Add crisp typographic signage integrated into the wall design with highly legible text that reads: 'NORTHBOUND PLATFORM', 'RIVER DISTRICT EXIT', 'LINE B', and 'TICKETS'. Use a refined sans serif typeface with flawless kerning, consistent hierarchy, and realistic placement following wall perspective. Include directional arrows, a simple network stripe motif, and subtle modular iconography. Preserve the existing architecture, floor reflections, lighting direction, camera angle, and overall realism. The result should feel like a high-end public space branding mockup, sharp, polished, contemporary, and production-ready.",
"width": 1568,
"height": 672,
"seed": 32611,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/7b5f5209-e187-471f-ace0-66a082cfe4fc.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "5e83175c-2c9f-456f-9f78-7a43a4b4bdd4",
"imageUUID": "2bd7f59b-6607-4016-bdbd-104e53a94d55",
"imageURL": "https://im.runware.ai/image/os/a12d13/ws/2/ii/2bd7f59b-6607-4016-bdbd-104e53a94d55.jpg",
"seed": 32611,
"cost": 0.08
}Futurist Museum Identity Wall
{
"taskType": "imageInference",
"taskUUID": "9061f948-9ca3-4d47-b4ca-229b29b90364",
"model": "bfl:4@1",
"positivePrompt": "Transform the references into a high-end futuristic museum entrance interior, preserving the architectural layout from the first image while applying the visual identity cues from the second. Feature a sweeping feature wall with large, elegant typography reading AETHER HALL, directional signage, inset illuminated lettering, refined cobalt and ivory graphic bands, brushed aluminum accents, polished concrete, subtle reflections, sparse sculptural seating, and a premium cultural-institution aesthetic. Sharp text rendering, believable scale, clean composition, editorial architectural photography style, quiet sophisticated mood, highly detailed surfaces, no people.",
"width": 1248,
"height": 832,
"seed": 47275,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/e832f395-35fe-4bee-b8e8-a74ddb0fe57e.jpg",
"https://assets.runware.ai/assets/inputs/686273c3-d498-4396-ab48-99af21a1ff52.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "9061f948-9ca3-4d47-b4ca-229b29b90364",
"imageUUID": "7a29c647-2997-4d9f-8f18-15887eb9a322",
"imageURL": "https://im.runware.ai/image/os/a17d13/ws/2/ii/7a29c647-2997-4d9f-8f18-15887eb9a322.jpg",
"seed": 47275,
"cost": 0.08
}Submerged Metro Signage Atrium
{
"taskType": "imageInference",
"taskUUID": "20fda6c1-585e-4deb-ac1c-81bfc8acd15d",
"model": "bfl:4@1",
"positivePrompt": "Transform the reference transit atrium into a partially submerged futuristic evacuation hub inside a coastal megacity. Keep the architectural layout, escalators, gates, and sign placements aligned to the reference, but fill the lower level with clear shallow seawater and scattered floating emergency markers. Replace standard wayfinding with premium typography signage in bold sans-serif, featuring multilingual arrows, district names, platform codes, and emergency routes. Add suspended orange rescue rings, waterproof digital information panels, reflective puddles on upper walkways, weathered concrete, brushed steel, and pale cyan guidance strips embedded in the floor. Atmosphere tense but orderly, documentary realism, sharp local detail, clean text rendering, cinematic wide composition, natural color separation, high-end commercial visual design.",
"width": 1392,
"height": 752,
"seed": 91494,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/3d99a736-4975-436b-872c-a15cfbaae103.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "20fda6c1-585e-4deb-ac1c-81bfc8acd15d",
"imageUUID": "187382dc-df3c-44e1-b5b3-f3f027acf4f8",
"imageURL": "https://im.runware.ai/image/os/a15d18/ws/2/ii/187382dc-df3c-44e1-b5b3-f3f027acf4f8.jpg",
"seed": 91494,
"cost": 0.08
}