If you're looking for an API, you can choose from your desired programming language.
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
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.
Random seed. Set for reproducible generation
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.
Prompt for generated image
Guidance for generated image
min : 0,
max : 100
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:
Number of outputs to generate
min : 1,
max : 4
An enumeration.
Allowed values:
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
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 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.
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.
Gain greater control by dividing the creative process into distinct steps, refining each phase.
Customize at various stages, from initial generation to final adjustments, ensuring tailored creative outputs.
Integrate and utilize multiple models simultaneously, producing complex and polished creative results.
Deploy Pixelflows as APIs quickly, without server setup, ensuring scalability and efficiency.
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.
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.
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.
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.
Audio-based Lip Synchronization for Talking Head Video
Take a picture/gif and replace the face in it with a face of your choice. You only need one image of the desired face. No dataset, no training
This model is capable of generating photo-realistic images given any text input, with the extra capability of inpainting the pictures by using a mask
The most versatile photorealistic model that blends various models to achieve the amazing realistic images.