FLUX.1 Kontext [pro]
FLUX.1 Kontext [pro] combines fast text to image generation with precise image editing. It supports reference images, local region edits, and full scene changes while preserving style and character identity. Ideal for iterative workflows in design, product visuals, and storytelling pipelines.
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:3@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.
Rainy Glasshouse Fashion Tableau
{
"taskType": "imageInference",
"taskUUID": "af0712bf-ab5d-4266-9268-2ad1258a3ac1",
"model": "bfl:3@1",
"positivePrompt": "Transform the reference subject into a high-fashion editorial scene inside a vast Victorian glasshouse during a thunderstorm, preserving facial identity, silver hair, and elegant silhouette. Surround the subject with towering tropical leaves, wet stone flooring, scattered fallen petals, and misted glass panes streaked with rain. Outfit evolved into sculptural avant-garde couture in black lacquered fabric with subtle emerald accents, dramatic tailoring, refined textures, and striking accessories. Cinematic natural storm light, reflections in puddles, soft fog, deep contrast, sophisticated composition, premium magazine aesthetic, ultra-detailed materials, poised and enigmatic mood.",
"width": 1248,
"height": 832,
"seed": 36839,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/140ed1d5-6a41-46c7-ab9e-527a23e4524d.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "af0712bf-ab5d-4266-9268-2ad1258a3ac1",
"imageUUID": "365ca059-49a9-4bc5-89b4-a72a27b8ad35",
"imageURL": "https://im.runware.ai/image/os/a23d05/ws/2/ii/365ca059-49a9-4bc5-89b4-a72a27b8ad35.jpg",
"seed": 36839,
"cost": 0.04
}Origami Menagerie Reading Hall
{
"taskType": "imageInference",
"taskUUID": "b222c274-95fd-4a9b-924a-5ff05eaacfca",
"model": "bfl:3@1",
"positivePrompt": "Transform the reference image into a sweeping storybook scene inside a vast reading hall filled with towering bookshelves, suspended paper cranes, rolling ladders, and warm amber skylight. Preserve the folded-paper craftsmanship and sharp crease details of the reference subject, but expand it into an enchanting menagerie of origami creatures gathered among open books and parchment paths. Add depth, delicate texture, floating dust motes, elegant architectural symmetry, and a polished cinematic look with gentle wonder and handcrafted charm.",
"width": 1248,
"height": 832,
"seed": 72286,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/30ddb480-f410-48a8-a98c-0ecef464c262.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "b222c274-95fd-4a9b-924a-5ff05eaacfca",
"imageUUID": "c1d6e5f3-f3b0-414b-81b7-d05e65ee4197",
"imageURL": "https://im.runware.ai/image/os/a15d18/ws/2/ii/c1d6e5f3-f3b0-414b-81b7-d05e65ee4197.jpg",
"seed": 72286,
"cost": 0.04
}Kite Workshop Canal Courtyard
{
"taskType": "imageInference",
"taskUUID": "95d07b7b-d88e-4a46-91c4-a3a0e19b304c",
"model": "bfl:3@1",
"positivePrompt": "Transform the reference scene into an imaginative artisan courtyard devoted to elaborate kite making beside a narrow canal. Preserve the overall architecture and grounded realism of the space while enriching it with suspended geometric kites, painted silk patterns, reels of vivid thread, folded paper forms, carved bamboo frames, scattered design sketches, and a few craftspeople in practical work clothes. Emphasize tactile materials, layered depth, gentle reflections in the water, subtle color harmony of saffron, indigo, vermilion, and jade, candid documentary photography style, highly detailed but natural, airy atmosphere, premium editorial realism.",
"width": 1248,
"height": 832,
"seed": 16555,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/375cbd1a-ca89-41f9-9d73-1bf814fce3c3.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "95d07b7b-d88e-4a46-91c4-a3a0e19b304c",
"imageUUID": "6080c9fd-b5dd-421f-8633-36f6ade3922a",
"imageURL": "https://im.runware.ai/image/os/a11d13/ws/2/ii/6080c9fd-b5dd-421f-8633-36f6ade3922a.jpg",
"seed": 16555,
"cost": 0.04
}Copper Viaduct Tea Procession
{
"taskType": "imageInference",
"taskUUID": "bc987cca-4dbb-4025-bc27-4a29ca54d91b",
"model": "bfl:3@1",
"positivePrompt": "Transform the reference scene into a lavish alternate-history riverside procession on a grand copper-riveted viaduct above a narrow canal, keeping the wide bridge composition and sense of depth from the reference image. Replace the ordinary pedestrians with elegantly dressed travelers carrying stacked porcelain tea chests, embroidered coats, lacquered parasols, and brass kettles releasing soft steam. The surrounding buildings become layered townhouses with curved glass awnings, hanging ivy, enamel signage, and intricate metal balconies. Add suspended banners in saffron, deep teal, and oxblood, polished wet cobblestones below, drifting vapor, distant boats loaded with crates, and fine atmospheric haze. Visual style: cinematic editorial fantasy, highly detailed textures, sophisticated color harmony, crisp focus, subtle glow, believable materials, dynamic yet refined worldbuilding.",
"width": 1568,
"height": 672,
"seed": 9525,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/0ef484bc-d181-442e-962a-24f134517e45.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "bc987cca-4dbb-4025-bc27-4a29ca54d91b",
"imageUUID": "fdd6991e-a6f1-4488-93c4-34c538869331",
"imageURL": "https://im.runware.ai/image/os/a15d18/ws/2/ii/fdd6991e-a6f1-4488-93c4-34c538869331.jpg",
"seed": 9525,
"cost": 0.04
}Kite Archive Harbor Basilica
{
"taskType": "imageInference",
"taskUUID": "2a605473-fd05-4b0a-88ca-ef26ab03aba5",
"model": "bfl:3@1",
"positivePrompt": "Transform the reference scene into a grand harbor archive devoted to ceremonial kites, preserving the core building silhouette and waterfront perspective while reimagining the facade with painted sailcloth canopies, suspended geometric kites, braided ropes, lacquered wood kiosks, fluttering catalog tags, and colorful wind-worn banners. Add librarians' ladders visible through tall arches, stacked storage racks for folded kites, polished stone steps scattered with paper scraps and twine, seabirds circling through open vaults, and a breezy atmosphere with rich textural detail. Elegant editorial fantasy, cinematic natural light, intricate materials, dynamic depth, sophisticated color harmony, highly detailed.",
"width": 1392,
"height": 752,
"seed": 52716,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 2
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/ae3de299-69eb-4c7d-ac95-982b1ef30dfa.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "2a605473-fd05-4b0a-88ca-ef26ab03aba5",
"imageUUID": "6c196c7f-88ac-45c7-bae2-1cf569f09faf",
"imageURL": "https://im.runware.ai/image/os/a11d13/ws/2/ii/6c196c7f-88ac-45c7-bae2-1cf569f09faf.jpg",
"seed": 52716,
"cost": 0.04
}