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.
Newer in this family:FLUX 3 Image KleinFLUX 3 Image Klein BaseFLUX 3 Image
![FLUX.1 Kontext [max]](https://assets.runware.ai/covers/bfl-flux-1-kontext-max.jpg)
Complete technical specification for integration
Ready-to-use code snippets for common workflows
text-to-image
Opera Costume Atelier Panorama$0.08~13s
Create the finished panoramic outpaint of an intimate portrait-oriented documentary photograph, expanding the scene naturally far beyond the original center composition into a 1392x752 landscape editorial image. In the center third, a senior opera costume dyer wearing a dark indigo work apron carefully gathers an enormous pleated sea-green silk cape across a waist-high cutting table. Preserve the feeling of a tightly observed human moment while revealing the full working atelier on both sides. Extend left into a deep stainless-steel dye sink, enamel buckets, clipped fabric swatches, wet turquoise silk and a small cloud of steam caught by window light. Extend right into rolling garment racks holding elaborate unfinished costumes in gradients of celadon, coral and smoky violet, with labeled kraft-paper pattern pieces, spools of thread and brass scissors on a worn oak workbench. The architecture must continue coherently across the entire frame: high old plaster walls, exposed pipes, tall north-facing windows and a scuffed checkerboard linoleum floor with correct perspective. Sophisticated backstage realism, tactile fabric detail, restrained theatrical color, soft overcast daylight mixed with warm practical lamps, subtle 35mm grain, deep but gentle shadows, editorial photography for a prestigious performing-arts publication. Wide visual rhythm with meaningful environmental storytelling at both edges, subject remaining the focal point, natural anatomy and hands, seamless spatial continuity, no visible crop boundary, no borders, no collage effect, no duplicated furniture or people, no signage, logos or on-image text.
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'bfl:4@1',
positivePrompt: 'Create the finished panoramic outpaint of an intimate portrait-oriented documentary photograph, expanding the scene naturally far beyond the original center composition into a 1392x752 landscape editorial image. In the center third, a senior opera costume dyer wearing a dark indigo work apron carefully gathers an enormous pleated sea-green silk cape across a waist-high cutting table. Preserve the feeling of a tightly observed human moment while revealing the full working atelier on both sides. Extend left into a deep stainless-steel dye sink, enamel buckets, clipped fabric swatches, wet turquoise silk and a small cloud of steam caught by window light. Extend right into rolling garment racks holding elaborate unfinished costumes in gradients of celadon, coral and smoky violet, with labeled kraft-paper pattern pieces, spools of thread and brass scissors on a worn oak workbench. The architecture must continue coherently across the entire frame: high old plaster walls, exposed pipes, tall north-facing windows and a scuffed checkerboard linoleum floor with correct perspective. Sophisticated backstage realism, tactile fabric detail, restrained theatrical color, soft overcast daylight mixed with warm practical lamps, subtle 35mm grain, deep but gentle shadows, editorial photography for a prestigious performing-arts publication. Wide visual rhythm with meaningful environmental storytelling at both edges, subject remaining the focal point, natural anatomy and hands, seamless spatial continuity, no visible crop boundary, no borders, no collage effect, no duplicated furniture or people, no signage, logos or on-image text.',
width: 1392,
height: 752,
providerSettings: {
bfl: {
promptUpsampling: true
}
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "bfl:4@1",
"positivePrompt": "Create the finished panoramic outpaint of an intimate portrait-oriented documentary photograph, expanding the scene naturally far beyond the original center composition into a 1392x752 landscape editorial image. In the center third, a senior opera costume dyer wearing a dark indigo work apron carefully gathers an enormous pleated sea-green silk cape across a waist-high cutting table. Preserve the feeling of a tightly observed human moment while revealing the full working atelier on both sides. Extend left into a deep stainless-steel dye sink, enamel buckets, clipped fabric swatches, wet turquoise silk and a small cloud of steam caught by window light. Extend right into rolling garment racks holding elaborate unfinished costumes in gradients of celadon, coral and smoky violet, with labeled kraft-paper pattern pieces, spools of thread and brass scissors on a worn oak workbench. The architecture must continue coherently across the entire frame: high old plaster walls, exposed pipes, tall north-facing windows and a scuffed checkerboard linoleum floor with correct perspective. Sophisticated backstage realism, tactile fabric detail, restrained theatrical color, soft overcast daylight mixed with warm practical lamps, subtle 35mm grain, deep but gentle shadows, editorial photography for a prestigious performing-arts publication. Wide visual rhythm with meaningful environmental storytelling at both edges, subject remaining the focal point, natural anatomy and hands, seamless spatial continuity, no visible crop boundary, no borders, no collage effect, no duplicated furniture or people, no signage, logos or on-image text.",
"width": 1392,
"height": 752,
"providerSettings": {
"bfl": {
"promptUpsampling": True
}
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "imageInference",
"taskUUID": "84f567b2-3886-4131-8deb-60773d1aa678",
"model": "bfl:4@1",
"positivePrompt": "Create the finished panoramic outpaint of an intimate portrait-oriented documentary photograph, expanding the scene naturally far beyond the original center composition into a 1392x752 landscape editorial image. In the center third, a senior opera costume dyer wearing a dark indigo work apron carefully gathers an enormous pleated sea-green silk cape across a waist-high cutting table. Preserve the feeling of a tightly observed human moment while revealing the full working atelier on both sides. Extend left into a deep stainless-steel dye sink, enamel buckets, clipped fabric swatches, wet turquoise silk and a small cloud of steam caught by window light. Extend right into rolling garment racks holding elaborate unfinished costumes in gradients of celadon, coral and smoky violet, with labeled kraft-paper pattern pieces, spools of thread and brass scissors on a worn oak workbench. The architecture must continue coherently across the entire frame: high old plaster walls, exposed pipes, tall north-facing windows and a scuffed checkerboard linoleum floor with correct perspective. Sophisticated backstage realism, tactile fabric detail, restrained theatrical color, soft overcast daylight mixed with warm practical lamps, subtle 35mm grain, deep but gentle shadows, editorial photography for a prestigious performing-arts publication. Wide visual rhythm with meaningful environmental storytelling at both edges, subject remaining the focal point, natural anatomy and hands, seamless spatial continuity, no visible crop boundary, no borders, no collage effect, no duplicated furniture or people, no signage, logos or on-image text.",
"width": 1392,
"height": 752,
"providerSettings": {
"bfl": {
"promptUpsampling": true
}
}
}
]'runware run bfl:4@1 \
positivePrompt="Create the finished panoramic outpaint of an intimate portrait-oriented documentary photograph, expanding the scene naturally far beyond the original center composition into a 1392x752 landscape editorial image. In the center third, a senior opera costume dyer wearing a dark indigo work apron carefully gathers an enormous pleated sea-green silk cape across a waist-high cutting table. Preserve the feeling of a tightly observed human moment while revealing the full working atelier on both sides. Extend left into a deep stainless-steel dye sink, enamel buckets, clipped fabric swatches, wet turquoise silk and a small cloud of steam caught by window light. Extend right into rolling garment racks holding elaborate unfinished costumes in gradients of celadon, coral and smoky violet, with labeled kraft-paper pattern pieces, spools of thread and brass scissors on a worn oak workbench. The architecture must continue coherently across the entire frame: high old plaster walls, exposed pipes, tall north-facing windows and a scuffed checkerboard linoleum floor with correct perspective. Sophisticated backstage realism, tactile fabric detail, restrained theatrical color, soft overcast daylight mixed with warm practical lamps, subtle 35mm grain, deep but gentle shadows, editorial photography for a prestigious performing-arts publication. Wide visual rhythm with meaningful environmental storytelling at both edges, subject remaining the focal point, natural anatomy and hands, seamless spatial continuity, no visible crop boundary, no borders, no collage effect, no duplicated furniture or people, no signage, logos or on-image text." \
width=1392 \
height=752 \
providerSettings.bfl.promptUpsampling=true{
"taskType": "imageInference",
"taskUUID": "84f567b2-3886-4131-8deb-60773d1aa678",
"model": "bfl:4@1",
"positivePrompt": "Create the finished panoramic outpaint of an intimate portrait-oriented documentary photograph, expanding the scene naturally far beyond the original center composition into a 1392x752 landscape editorial image. In the center third, a senior opera costume dyer wearing a dark indigo work apron carefully gathers an enormous pleated sea-green silk cape across a waist-high cutting table. Preserve the feeling of a tightly observed human moment while revealing the full working atelier on both sides. Extend left into a deep stainless-steel dye sink, enamel buckets, clipped fabric swatches, wet turquoise silk and a small cloud of steam caught by window light. Extend right into rolling garment racks holding elaborate unfinished costumes in gradients of celadon, coral and smoky violet, with labeled kraft-paper pattern pieces, spools of thread and brass scissors on a worn oak workbench. The architecture must continue coherently across the entire frame: high old plaster walls, exposed pipes, tall north-facing windows and a scuffed checkerboard linoleum floor with correct perspective. Sophisticated backstage realism, tactile fabric detail, restrained theatrical color, soft overcast daylight mixed with warm practical lamps, subtle 35mm grain, deep but gentle shadows, editorial photography for a prestigious performing-arts publication. Wide visual rhythm with meaningful environmental storytelling at both edges, subject remaining the focal point, natural anatomy and hands, seamless spatial continuity, no visible crop boundary, no borders, no collage effect, no duplicated furniture or people, no signage, logos or on-image text.",
"width": 1392,
"height": 752,
"providerSettings": {
"bfl": {
"promptUpsampling": true
}
}
}Response
{
"taskType": "imageInference",
"taskUUID": "84f567b2-3886-4131-8deb-60773d1aa678",
"imageUUID": "ac346f19-8408-46ce-b2e6-898ac0aab855",
"imageURL": "https://im.runware.ai/image/os/a09dlim3/ws/3/ii/ac346f19-8408-46ce-b2e6-898ac0aab855.jpg",
"seed": 1597635933,
"cost": 0.08
}API Options
Platform-level options for task execution and delivery.
taskType
stringrequiredvalue: imageInferenceIdentifier for the type of task being performed.
taskUUID
stringrequiredUUID v4UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
outputType
stringdefault: URLImage output type.
Allowed values3 values
outputFormat
stringdefault: JPGSpecifies 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: Output that needs transparency must use a format with an alpha channel:PNG,WEBP.JPGdoes not support transparency.Allowed values3 values
outputQuality
integermin: 20max: 99default: 95Compression quality of the output. Higher values preserve quality but increase file size.
webhookURL
stringuriWebhook URL that receives JSON responses 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 more1 resource
- WebhooksPLATFORM
- Webhooks
deliveryMethod
stringdefault: syncDetermines how the API delivers task results.
Allowed values2 values
- Returns results directly in the API response. Over HTTP, a task still running after 120 seconds continues as an async task and comes back with status 'processing'. Poll for its results using getResponse.
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.
Learn more1 resource
- Task PollingPLATFORM
uploadEndpoint
stringuriSpecifies 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
objectContent safety checking configuration for image generation.
Properties2 properties
safety»checkContentcheckContent
booleanEnable or disable content safety checking. Increases total generation time and adds a small charge on top of the generation cost.
safety»blockContentblockContent
booleanContent blocking before generation. Moderates the request's text and input images, and rejects the request when they are flagged, so nothing is generated or charged. Input videos, audio and documents are not moderated. Adds a short delay before generation starts.
ttl
integermin: 60Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
includeCost
booleanInclude task cost in the response.
numberResults
integermin: 1max: 20default: 1Number 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 stringsmin items: 1max items: 22 limitsList of reference images (UUID, URL, Data URI, or Base64).
Core Parameters
Primary parameters that define the task output.
model
stringrequiredvalue: bfl:4@1Send
autoinstead of an AIR identifier to have the model router choose the model for this task. The rest of the request is unchanged, every value you send is kept, and only the parameters you leave out are filled in. See Model Router.
positivePrompt
stringrequiredmin: 2max: 3000Text prompt describing elements to include in the generated output.
Learn more1 resource
- PromptsLEARN
- Prompts
Width of the generated media in pixels.
Learn more2 resources
Height of the generated media in pixels.
Learn more2 resources
seed
integermin: 0max: 4294967295Random seed for reproducible generation. When not provided, a random seed is generated.
Features
Standalone addons and post-processing features.
advancedFeatures»watermarkwatermark
objectConfiguration object for adding watermarks to generated images. Watermarks can be applied using either text or image content with customizable positioning and appearance. You must provide either
textorimagecontent for the watermark, but not both."advancedFeatures": { "watermark": { "text": "© 2025 Company", "displayPosition": "bottom-right", "opacity": 0.6, "fontColor": "#ffffff", "bgColor": "#000000" } }"advancedFeatures": { "watermark": { "image": "c64351d5-4c59-42f7-95e1-eace013eddab", "displayPosition": "top-left", "opacity": 0.6 } }"advancedFeatures": { "watermark": { "text": "PREVIEW", "tiled": true, "opacity": 0.4, "fontColor": "#cccccc" } }Properties6 properties
advancedFeatures»watermark»texttext
stringmin: 2max: 32Watermark text.
advancedFeatures»watermark»imageimage
stringWatermark image (UUID, URL, Data URI, or Base64).
advancedFeatures»watermark»displayPositiondisplayPosition
stringWatermark position.
Allowed values10 values
advancedFeatures»watermark»opacityopacity
floatmin: 0.1max: 1step: 0.01Watermark opacity.
advancedFeatures»watermark»fontColorfontColor
stringText color in hex format.
advancedFeatures»watermark»bgColorbgColor
stringBackground color in hex format.
Provider Settings
Parameters specific to this model provider. These must be nested inside the providerSettings.bfl object.
providerSettings.bfl object.providerSettings»bfl»promptUpsamplingpromptUpsampling
booleanEnable automatic enhancement and expansion of the input prompt.
providerSettings»bfl»safetyTolerancesafetyTolerance
integermin: 0max: 6default: 6Tolerance level for content moderation. Lower values are stricter, higher values more permissive.