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
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_INPAINTER |
model | string | Yes | AI model identifier. Must be black-forest-labs/flux-fill-pro |
promptObject | object | Yes | Configuration object containing all editing parameters |
Prompt Object Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
imageUrl | string | Yes | Path to the source image to be edited | - |
maskUrl | string | Yes | Path to the mask image defining areas to edit (white=edit, black=preserve) | - |
prompt | string | Yes | Description of what to generate in the masked areas | - |
outpaint | string | No | Outpainting mode setting | None |
steps | number | No | Number of inference steps (1-50) | 50 |
prompt_upsampling | boolean | No | Enable prompt upsampling for enhanced detail | false |
guidance | number | No | Guidance scale for prompt adherence (0-100) | 60 |
safety_tolerance | number | No | Safety tolerance level (0-6) | 3 |
output_format | string | No | Output format for the processed image | jpg |
seed | number | No | Random seed for reproducibility (0-4294967295) | Random |
Mask Requirements
| Requirement | Description |
|---|---|
| Format | PNG, JPEG, or WebP formats supported |
| Dimensions | Must match the source image dimensions exactly |
| Color Scheme | White areas = regions to edit, Black areas = regions to preserve |
| Grayscale Support | Gray values for partial editing/blending effects |
Code Examples
- cURL
- JavaScript
- Python
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"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
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'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
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"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresGenerated 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
-
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
-
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
-
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
-
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
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.
Flux Fill Pro is a premium model with higher credit costs. Use this model when maximum quality is required for professional deliverables.