Skip to main content

Flux Fill Dev - Image Mask Editor

Professional AI-powered mask-based image editing model by Black Forest Labs. Flux Fill Dev delivers high-quality inpainting with balanced performance, advanced prompt following, and comprehensive customization options 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-dev
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-
num_inference_stepsnumberNoNumber of inference steps (1-50)28
guidancenumberNoGuidance scale for prompt adherence (0-50)3.5
seednumberNoRandom seed for reproducibility (0-4294967295)Random
output_qualitynumberNoOutput image quality (0-100)80
disable_safety_checkerbooleanNoDisable built-in safety filteringfalse
megapixelsstringNoOutput resolution in megapixels (1)1

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-dev",
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_35_49_260_banana.jpg",
"maskUrl": "development/images/2025_02_16_15_36_38_743_image.png",
"prompt": "a ripe red apple with glossy skin and natural lighting",
"num_inference_steps": 28,
"guidance": 3.5,
"megapixels": "1",
"output_quality": 85
}
}'

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
Number of inference steps (1-50)
Guidance scale for prompt adherence (0-50)
Output resolution in megapixels
Disable built-in safety filtering
Output image quality (0-100)
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-dev",
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_35_49_260_banana.jpg",
"maskUrl": "development/images/2025_02_16_15_36_38_743_image.png",
"prompt": "a ripe red apple with glossy skin and natural lighting",
"num_inference_steps": 28,
"guidance": 3.5,
"megapixels": "1",
"output_quality": 85
}
}'

Response Format

{
"aiRecord": {
"uuid": "f1l2d3v4-e5d6-7890-abcd-ef1234567890",
"userId": "user-12345",
"teamId": "team-67890",
"model": "black-forest-labs/flux-fill-dev",
"type": "IMAGE_INPAINTER",
"status": "SUCCESS",
"createdAt": "2025-01-15T16:30:00.000Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_35_49_260_banana.jpg",
"maskUrl": "development/images/2025_02_16_15_36_38_743_image.png",
"prompt": "a ripe red apple with glossy skin and natural lighting",
"num_inference_steps": 28,
"guidance": 3.5,
"megapixels": "1",
"output_quality": 85
},
"resultObject": [
"development/images/2025_01_15_16_30_45_001_flux_fill_dev_edited.png"
],
"responseObject": {}
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_16_30_45_001_flux_fill_dev_edited.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&..."
}
}

Use Cases

  • Professional Photo Editing: High-quality image editing for commercial and creative projects
  • Product Photography: Enhance product images with professional-grade inpainting
  • Content Creation: Create marketing materials and visual assets with precise control
  • Artistic Enhancement: Transform and improve images with advanced AI capabilities
  • Rapid Prototyping: Fast generation for creative workflows and iterative design

Tips for Best Results

  1. Prompt Engineering:

    • Use descriptive, specific language for better results
    • Include style keywords (e.g., "photorealistic", "artistic", "natural lighting")
    • Specify texture, material, and lighting details
  2. Quality vs Speed:

    • Higher inference steps (35-50) for maximum quality
    • Lower steps (15-25) for faster generation
  3. Mask-based Editing:

    • Use prompt strength 0.6-0.8 for balanced integration
    • Higher guidance (4-6) maintains more context consistency
    • Lower prompt strength preserves original composition better

Notes

Professional Quality

Flux Fill Dev provides an optimal balance of speed and quality for mask-based image editing, making it ideal for professional workflows that require consistent, high-quality results with comprehensive parameter control.