Skip to main content

Flux Fill Pro - Image Mask Editor

Premium AI-powered mask-based image editing model by Black Forest Labs. Flux Fill Pro delivers the highest quality inpainting with advanced prompt understanding, superior detail generation, and enterprise-grade reliability for professional image editing workflows.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_INPAINTER
modelstringYesAI model identifier. Must be black-forest-labs/flux-fill-pro
promptObjectobjectYesConfiguration object containing all editing parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
imageUrlstringYesPath to the source image to be edited-
maskUrlstringYesPath to the mask image defining areas to edit (white=edit, black=preserve)-
promptstringYesDescription of what to generate in the masked areas-
outpaintstringNoOutpainting mode settingNone
stepsnumberNoNumber of inference steps (1-50)50
prompt_upsamplingbooleanNoEnable prompt upsampling for enhanced detailfalse
guidancenumberNoGuidance scale for prompt adherence (0-100)60
safety_tolerancenumberNoSafety tolerance level (0-6)3
output_formatstringNoOutput format for the processed imagejpg
seednumberNoRandom seed for reproducibility (0-4294967295)Random

Mask Requirements

RequirementDescription
FormatPNG, JPEG, or WebP formats supported
DimensionsMust match the source image dimensions exactly
Color SchemeWhite areas = regions to edit, Black areas = regions to preserve
Grayscale SupportGray values for partial editing/blending effects

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_INPAINTER",
"model": "black-forest-labs/flux-fill-pro",
"promptObject": {
"imageUrl": "development/images/2025_10_27_10_01_47_241_living_room.png",
"maskUrl": "development/images/2025_10_27_10_02_04_290_image.png",
"prompt": "a modern minimalist sofa with clean lines and neutral fabric",
"outpaint": "None",
"steps": 50,
"prompt_upsampling": true,
"guidance": 60,
"safety_tolerance": 3,
"output_format": "jpg"
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Path to the source image to be edited
Path to the mask image (white areas will be edited)
Describe what you want to generate in the masked areas
Outpainting mode setting
Number of inference steps (1-50)
Enable prompt upsampling for enhanced detail
Guidance scale for prompt adherence (0-100)
Safety tolerance level (0-6, higher = more permissive)
Format of the output image
Random seed for reproducibility (0-4294967295)

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_INPAINTER",
"model": "black-forest-labs/flux-fill-pro",
"promptObject": {
"imageUrl": "development/images/2025_10_27_10_01_47_241_living_room.png",
"maskUrl": "development/images/2025_10_27_10_02_04_290_image.png",
"prompt": "a modern minimalist sofa with clean lines and neutral fabric",
"outpaint": "None",
"steps": 50,
"prompt_upsampling": true,
"guidance": 60,
"safety_tolerance": 3,
"output_format": "jpg"
}
}'

Response Format

{
"aiRecord": {
"uuid": "f1l2p3r4-o5e6-7890-abcd-ef1234567890",
"userId": "user-12345",
"teamId": "team-67890",
"model": "black-forest-labs/flux-fill-pro",
"type": "IMAGE_INPAINTER",
"status": "SUCCESS",
"createdAt": "2025-01-15T17:00:00.000Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_10_27_10_01_47_241_living_room.png",
"maskUrl": "development/images/2025_10_27_10_02_04_290_image.png",
"prompt": "a modern minimalist sofa with clean lines and neutral fabric",
"outpaint": "None",
"steps": 50,
"prompt_upsampling": true,
"guidance": 60,
"safety_tolerance": 3,
"output_format": "jpg"
},
"resultObject": [
"development/images/2025_01_15_17_00_45_001_flux_fill_pro_edited.png"
],
"responseObject": {}
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_17_00_45_001_flux_fill_pro_edited.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&..."
}
}

Use Cases

  • Enterprise Image Editing: Premium quality editing for high-end commercial projects
  • Professional Photography: Studio-grade inpainting for fashion, product, and portrait photography
  • Advertising & Marketing: Premium visual content for luxury brands and high-budget campaigns
  • Print Media: High-resolution editing for magazines, catalogs, and large-format printing
  • Fine Art Restoration: Museum-quality inpainting for art restoration and archival work
  • Film & Entertainment: Professional-grade visual effects and post-production editing

Tips for Best Results

  1. Premium Prompt Engineering:

    • Use highly descriptive, professional language
    • Include specific technical details (lighting, materials, textures)
    • Reference professional photography terms for optimal results
    • Specify exact visual qualities and artistic styles
  2. Professional Quality Settings:

    • Use 40-50 steps for premium quality results
    • Set guidance between 50-70 for optimal Pro performance
    • Enable prompt_upsampling for enhanced detail generation
    • Use appropriate safety_tolerance (2-4) for professional content
  3. Advanced Mask-based Editing:

    • Higher guidance (60-80) maintains professional consistency
    • Leverage Pro's advanced context understanding for complex scenes
    • Use prompt_upsampling for intricate detail requirements
  4. Enterprise Workflow Optimization:

    • Choose appropriate output_format based on use case (jpg for web, png for transparency)
    • Consistent seed values for reproducible results
    • Adjust safety_tolerance based on content requirements

Notes

Premium Professional Quality

Flux Fill Pro represents the pinnacle of AI-powered mask-based image editing, offering enterprise-grade quality and reliability. Ideal for high-end commercial projects, professional photography, and applications where superior quality is essential.

Premium Model

Flux Fill Pro is a premium model with higher credit costs. Use this model when maximum quality is required for professional deliverables.