Flux Fill Dev

Open-weight inpainting model for editing and extending images. Guidance-distilled from FLUX.1 Fill Dev

Playground

Try the model in real time below.

Mask
flux-fill-dev-mask.png selected

Images, Videos, and Audios upload.

Image
flux-fill-dev-ip.png selected

Images, Videos, and Audios upload.

output image


Examples

Check out what others have created with Flux Fill Dev
Example preview

Green hair

seed: 985266

API

If you're looking for an API, you can choose from your desired programming language.

POST
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 import requests api_key = "YOUR_API_KEY" url = "https://api.segmind.com/v1/flux-fill-dev" # Prepare data and files data = {} files = {} # For parameter "mask", you can send a raw file or a URI: # files['mask'] = open('IMAGE_PATH', 'rb') # To send a file # data['mask'] = 'IMAGE_URI' # To send a URI data['seed'] = 985266 # For parameter "image", you can send a raw file or a URI: # files['image'] = open('IMAGE_PATH', 'rb') # To send a file # data['image'] = 'IMAGE_URI' # To send a URI data['prompt'] = "Green hair" data['guidance'] = 30 data['megapixels'] = "1" data['num_outputs'] = 1 data['output_format'] = "jpg" data['output_quality'] = 80 data['num_inference_steps'] = 28 data['disable_safety_checker'] = False headers = {'x-api-key': api_key} response = requests.post(url, data=data, files=files, headers=headers) print(response.content) # The response is the generated image
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


maskstr *

A black-and-white image that describes the part of the image to inpaint. Black areas will be preserved while white areas will be inpainted.


seedint ( default: 985266 )

Random seed. Set for reproducible generation


imagestr *

The image to inpaint. Can contain alpha mask. If the image width or height are not multiples of 32, they will be scaled to the closest multiple of 32. If the image dimensions don't fit within 1440x1440, it will be scaled down to fit.


promptstr *

Prompt for generated image


guidancefloat ( default: 30 )

Guidance for generated image

min : 0,

max : 100


megapixelsenum:str ( default: 1 )

Approximate number of megapixels for generated image. Use match_input to match the size of the input (with an upper limit of 1440x1440 pixels)

Allowed values:


num_outputsint ( default: 1 )

Number of outputs to generate

min : 1,

max : 4


output_formatenum:str ( default: jpg )

An enumeration.

Allowed values:


output_qualityint ( default: 80 )

Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs

min : 0,

max : 100


num_inference_stepsint ( default: 28 )

Number of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster.

min : 1,

max : 50


disable_safety_checkerbool ( default: 1 )

Disable safety checker for generated images.

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.


Pricing

Serverless Pricing

Buy credits that can be used anywhere on Segmind

$ 0.05 /per generation
FEATURES

PixelFlow allows you to use all these features

Unlock the full potential of generative AI with Segmind. Create stunning visuals and innovative designs with total creative control. Take advantage of powerful development tools to automate processes and models, elevating your creative workflow.

Segmented Creation Workflow

Gain greater control by dividing the creative process into distinct steps, refining each phase.

Customized Output

Customize at various stages, from initial generation to final adjustments, ensuring tailored creative outputs.

Layering Different Models

Integrate and utilize multiple models simultaneously, producing complex and polished creative results.

Workflow APIs

Deploy Pixelflows as APIs quickly, without server setup, ensuring scalability and efficiency.

Flux Fill Dev

Flux Fill Dev is an advanced state-of-the-art AI model developed by Black Forest Labs, specializing in professional inpainting and outpainting tasks. This model enables users to edit or extend images seamlessly, producing natural and cohesive results.

Key Features of Flux Fill Dev

  • Professional Inpainting and Outpainting: Allows for the removal or replacement of objects and the extension of images beyond their original borders, ensuring edits blend naturally with the existing content.

  • State-of-the-Art Performance: Delivers high-quality results by understanding complex scenes and maintaining consistency across edits, preserving lighting, perspective, and context.

  • Versatile Application: Suitable for various creative projects, including image editing, content creation, and restoration, where seamless integration of new elements is essential.

Benefits of Using Flux Fill Dev

  • Natural and Seamless Edits: Ensures that modifications integrate smoothly with the original image, maintaining a cohesive appearance.

  • Consistency in Output: Maintains uniformity across different edits, preserving the original image's integrity.

  • Efficiency in Workflow: Streamlines the editing process by automating complex inpainting and outpainting tasks, reducing the need for manual adjustments.

Applications of Flux Fill Dev

  • Object Removal: Effortlessly eliminate unwanted elements from photos, such as power lines, people, or objects, while maintaining a natural look.

  • Image Restoration: Repair old or damaged photos by filling in missing or deteriorated areas with precision.

  • Content Creation: Add new elements or expand scenes within existing images based on a descriptive prompt.

  • Experimentation: Explore different inpainting and outpainting techniques and styles for unique creative outputs.

By incorporating advanced inpainting and outpainting capabilities, Flux Fill Dev offers a powerful tool for professionals seeking to edit or extend images with natural, seamless results.

F.A.Q.

Frequently Asked Questions

Take creative control today and thrive.

Start building with a free account or consult an expert for your Pro or Enterprise needs. Segmind's tools empower you to transform your creative visions into reality.

Pixelflow Banner