Multi Image Kontext Max
FLUX.1 Kontext [max] creates stunning, photorealistic images from text prompts and input images seamlessly.
API
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/multi-image-kontext-max"
# Prepare data and files
data = {}
files = {}
data['seed'] = 42
data['prompt'] = "put the green dress on the woman while maintaining the pose of the woman as it is"
data['aspect_ratio'] = "1:1"
# For parameter "input_image_1", you can send a raw file or a URI:
# files['input_image_1'] = open('IMAGE_PATH', 'rb') # To send a file
data['input_image_1'] = 'https://segmind-resources.s3.amazonaws.com/output/9cb479d3-5c5f-4d5d-a782-972acbc42598-c1.jpg' # To send a URI
# For parameter "input_image_2", you can send a raw file or a URI:
# files['input_image_2'] = open('IMAGE_PATH', 'rb') # To send a file
data['input_image_2'] = 'https://segmind-resources.s3.amazonaws.com/output/79feee7b-d09f-4bde-bec3-c8e8a8703f04-d2.png' # To send a URI
data['output_format'] = "jpg"
data['safety_tolerance'] = 1
headers = {'x-api-key': api_key}
# If no files, send as JSON
if files:
response = requests.post(url, data=data, files=files, headers=headers)
else:
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Attributes
Sets seed for reproducibility.
Describes the prompt for image transformation.
Sets output aspect ratio. Use '16:9' for wide images.
Allowed values:
First image for transformation
Second image for transformation.
Sets output forma.
Allowed values:
Controls content safety level. Use 1 for moderate strictness.
min : 0,
max : 2
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.
Resources to get you started
Everything you need to know to get the most out of Multi Image Kontext Max
# Guide to Using FLUX.1 Kontext [max] Effectively
FLUX.1 Kontext [max] combines a multimodal transformer and diffusion engine to turn text prompts and input images into photorealistic, typography-integrated visuals. Follow this guide to optimize your results and choose the right parameters for any project.
---
## 1. Core Prompting Tips
- **Be Descriptive**
Insert setting, materials, lighting, camera angle.
_Example:_ âA golden hour mountain panorama with soft mist, DSLR perspective.â
- **Specify Typography**
Mention font style, weight and color for integrated text.
_Example:_ âOverlay âAutumn Saleâ in bold serif, warm orange glow.â
- **Use Style Tags**
Add hashtags like `#retro`, `#cyberpunk` to hint at mood and color palette.
- **Early Aspect Ratio Selection**
Lock `aspect_ratio` before generation to match final medium (print, mobile, film).
- **Reproducibility**
Fix `seed` (default 42) to regenerate identical outputs on reruns.
- **Safety Compliance**
Adjust `safety_tolerance` (0 = lenient, 2 = strict) when working with public-facing content.
---
## 2. Parameter Recommendations by Use Case
1. **Branding & Logo Creation**
- aspect_ratio: `1:1`
- output_format: `png` (transparency ready)
- seed: 100
- safety_tolerance: 1
```json
{
"prompt": "Minimalist tech startup logo with neon blue gradient",
"input_image_1": "https://example.com/sketch.png",
"input_image_2": "https://example.com/texture.jpg",
"aspect_ratio": "1:1",
"output_format": "png",
"seed": 100,
"safety_tolerance": 1
}
- â˘
Editorial & Magazine Layouts
- â˘aspect_ratio:
4:3
or3:2
- â˘output_format:
jpg
- â˘seed: 42
- â˘safety_tolerance: 1
- â˘aspect_ratio:
- â˘
Social Media Campaigns
- â˘Feeds (square):
1:1
- â˘Stories/Reels (vertical):
9:16
- â˘output_format:
jpg
(smaller file) - â˘seed: random or fixed per campaign
- â˘Feeds (square):
- â˘
Creative Prototyping
- â˘aspect_ratio:
16:9
or21:9
for widescreen - â˘output_format:
png
- â˘seed: any integer for variation
- â˘aspect_ratio:
- â˘
Commercial Storytelling
- â˘aspect_ratio: match target ad space
- â˘safety_tolerance: 2 (highest moderation)
3. Advanced Settings
- â˘input_image_1 / input_image_2: Use high-resolution sources to preserve detail.
- â˘safety_tolerance:
0 â Flexible (artistic freedom)
1 â Balanced
2 â Strict (compliance mode)
4. Example Request
{
"prompt": "A futuristic cityscape at dusk with neon cursive headlines",
"input_image_1": "https://example.com/city_sketch.png",
"input_image_2": "https://example.com/sky_texture.jpg",
"aspect_ratio": "16:9",
"output_format": "jpg",
"seed": 2024,
"safety_tolerance": 1
}
Final Thoughts
By combining detailed prompts, the right aspect ratios, and controlled randomness, FLUX.1 Kontext [max] can deliver consistent, high-quality visuals across a variety of professional workflows. Experiment with seeds and style tags to discover your signature aesthetic!
Other Popular Models
Discover other models you might be interested in.
sdxl-img2img
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

fooocus
Fooocus enables high-quality image generation effortlessly, combining the best of Stable Diffusion and Midjourney.

faceswap-v2
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

codeformer
CodeFormer is a robust face restoration algorithm for old photos or AI-generated faces.
