Flux.1 Kontext | Max
Generate and edit images using Flux Kontext Max. The highest quality tier of the Flux Kontext family, offering premium image generation from text and image editing with reference images. Supports a wide range of aspect ratios.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-kontext-max",
"version": "0.0.1",
"input": {
"prompt": "A photorealistic portrait of a woman with flowing red hair in a field of sunflowers, golden hour lighting, shallow depth of field",
"aspect_ratio": "3:4"
}
}'
Parameters
| Parameter |
Type |
Default |
Description |
| aspect_ratio |
string |
match_input_image |
Output aspect ratio. Options: match_input_image, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9, 9:21, 2:1, 1:2 |
| input_image |
string |
- |
Reference image. Must be jpeg, png, gif, or webp |
| prompt |
string |
- |
Text description for generation or editing instruction |
| safety_tolerance |
integer |
6 |
Safety tolerance level |
| seed |
integer |
- |
Random seed for reproducible generation |
Examples
Text-to-image generation:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-kontext-max",
"version": "0.0.1",
"input": {
"prompt": "A steampunk clockwork owl perched on an antique telescope, intricate brass gears and copper pipes, moody Victorian lighting",
"aspect_ratio": "1:1",
"seed": 42
}
}'
Image editing with reference:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-kontext-max",
"version": "0.0.1",
"input": {
"input_image": "https://example.com/room-photo.jpg",
"prompt": "Change the wall color to a deep navy blue and add modern art paintings on the wall",
"aspect_ratio": "match_input_image"
}
}'
Related Models
Documentation
1---2name: flux-kontext-max3description: Flux.1 Kontext | Max. Generate and edit images using Flux Kontext Max. The highest quality tier for AI image generation and editing. Triggers: flux kontext max, kontext max, flux max, highest quality image edit, premium image generation, flux kontext4---56# Flux.1 Kontext | Max78Generate and edit images using Flux Kontext Max. The highest quality tier of the Flux Kontext family, offering premium image generation from text and image editing with reference images. Supports a wide range of aspect ratios.910## Quick Start1112> Requires an each::labs API key. Get one at [eachlabs.ai](https://eachlabs.ai).1314```bash15curl -X POST https://api.eachlabs.ai/v1/prediction \16 -H "Content-Type: application/json" \17 -H "X-API-Key: $EACHLABS_API_KEY" \18 -d '{19 "model": "flux-kontext-max",20 "version": "0.0.1",21 "input": {22 "prompt": "A photorealistic portrait of a woman with flowing red hair in a field of sunflowers, golden hour lighting, shallow depth of field",23 "aspect_ratio": "3:4"24 }25 }'26```2728## Parameters2930| Parameter | Type | Default | Description |31|-----------|------|---------|-------------|32| aspect_ratio | string | match_input_image | Output aspect ratio. Options: `match_input_image`, `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `4:5`, `5:4`, `21:9`, `9:21`, `2:1`, `1:2` |33| input_image | string | - | Reference image. Must be jpeg, png, gif, or webp |34| prompt | string | - | Text description for generation or editing instruction |35| safety_tolerance | integer | 6 | Safety tolerance level |36| seed | integer | - | Random seed for reproducible generation |3738## Examples3940**Text-to-image generation:**41```bash42curl -X POST https://api.eachlabs.ai/v1/prediction \43 -H "Content-Type: application/json" \44 -H "X-API-Key: $EACHLABS_API_KEY" \45 -d '{46 "model": "flux-kontext-max",47 "version": "0.0.1",48 "input": {49 "prompt": "A steampunk clockwork owl perched on an antique telescope, intricate brass gears and copper pipes, moody Victorian lighting",50 "aspect_ratio": "1:1",51 "seed": 4252 }53 }'54```5556**Image editing with reference:**57```bash58curl -X POST https://api.eachlabs.ai/v1/prediction \59 -H "Content-Type: application/json" \60 -H "X-API-Key: $EACHLABS_API_KEY" \61 -d '{62 "model": "flux-kontext-max",63 "version": "0.0.1",64 "input": {65 "input_image": "https://example.com/room-photo.jpg",66 "prompt": "Change the wall color to a deep navy blue and add modern art paintings on the wall",67 "aspect_ratio": "match_input_image"68 }69 }'70```7172## Related Models7374- [Flux.1 Kontext | Pro](../flux-kontext-pro/) - Pro tier (faster, slightly lower quality)75- [Flux Kontext | Max | Multi Image](../multi-image-kontext-max/) - Max tier with multi-image support76- [Flux.1 Kontext Dev Lora](../flux-kontext-dev-lora/) - Custom LoRA support7778## Documentation7980- [each::labs Docs](https://docs.eachlabs.ai)81- [API Reference](https://docs.eachlabs.ai/api/overview)