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
import requests
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/flux-redux-dev"
# Prepare data and files
data = {}
files = {}
data['seed'] = 30255
data['guidance'] = 3
data['megapixels'] = "1"
data['num_outputs'] = 1
# For parameter "redux_image", you can send a raw file or a URI:
# files['redux_image'] = open('IMAGE_PATH', 'rb') # To send a file
# data['redux_image'] = 'IMAGE_URI' # To send a URI
data['aspect_ratio'] = "1: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
Random seed. Set for reproducible generation
Guidance for generated image
min : 0,
max : 10
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
Input image to condition your output on. This replaces prompt for FLUX.1 Redux models
Aspect ratio for the generated image
Allowed values:
Format of the output images
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
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.
Flux Redux Dev is a cutting-edge AI model in the FLUX.1 family, specifically engineered for image enhancement and refinement. Unlike traditional models focused on generating images from scratch, Flux Redux Dev is designed to improve the quality, detail, and aesthetics of existing images while preserving their original composition and intent.
Flux Redux Dev specializes in image refinement, prioritizing:
Image enhancement: Elevates visual quality.
Detail improvement: Delivers sharper and more defined images.
Quality upscaling: Transforms lower-resolution images into high-resolution versions.
Style preservation: Maintains the artistic essence of the image.
Composition maintenance: Focuses on refinement rather than altering the image's core structure.
Unlike generation-focused models, Flux Redux Dev is purpose-built for enhancing existing images, making it a vital tool for post-processing workflows.
Flux Redux Dev offers a robust feature set tailored for exceptional image refinement:
Image quality enhancement: Improves overall visual appeal.
Detail refinement: Ensures intricate textures and clarity.
Texture improvement: Delivers natural and realistic finishes.
Style-consistent enhancement: Preserves artistic intent.
Resolution optimization: Scales images seamlessly.
Artifact reduction: Removes noise and distortions.
Natural detail addition: Enriches image authenticity.
Flux Redux Dev is a versatile tool suitable for various scenarios, including:
Enhancing low-quality images: Transforms blurry or pixelated visuals.
Improving AI-generated content: Refines outputs from other generative models.
Refining artistic works: Perfects digital artwork and illustrations.
Upscaling images: Increases resolution without compromising quality.
Adding natural details: Creates realistic enhancements in images.
Professional photo enhancement: Provides polished results for photographers and editors.
Content post-processing: Ideal for marketing, design, and creative industries.
SDXL Img2Img is used for text-guided image-to-image translation. This model uses the weights from Stable Diffusion to generate new images from an input image using StableDiffusionImg2ImgPipeline from diffusers
Best-in-class clothing virtual try on in the wild
Fooocus enables high-quality image generation effortlessly, combining the best of Stable Diffusion and Midjourney.
CodeFormer is a robust face restoration algorithm for old photos or AI-generated faces.