Flux 2 Pro | Edit
Professional-grade image editing using text prompts with Flux 2 Pro. Streamlined parameter set focused on quality output with configurable safety tolerance.
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-2-pro-edit",
"version": "0.0.1",
"input": {
"prompt": "remove the person in the background, fill with natural scenery",
"image_urls": ["https://example.com/photo.jpg"],
"image_size": "auto"
}
}'
Parameters
| Parameter |
Type |
Default |
Description |
| enable_safety_checker |
boolean |
true |
Whether to enable the safety checker. |
| image_size |
string |
auto |
The size of the generated image. enum: auto, square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9 |
| image_urls |
array |
|
List of URLs of input images for editing. |
| output_format |
string |
jpeg |
The format of the generated image. enum: jpeg, png |
| prompt |
string |
|
The prompt to generate an image from. |
| safety_tolerance |
string |
2 |
The safety tolerance level. 1 is most strict, 5 is most permissive. enum: 1, 2, 3, 4, 5 |
| seed |
integer |
|
The seed to use for the generation. |
Examples
Object removal:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-2-pro-edit",
"version": "0.0.1",
"input": {
"prompt": "remove the parked car from the driveway, fill with grass",
"image_urls": ["https://example.com/house.jpg"],
"image_size": "landscape_4_3",
"output_format": "png"
}
}'
Color grading edit:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-2-pro-edit",
"version": "0.0.1",
"input": {
"prompt": "apply warm golden hour color grading, enhance contrast",
"image_urls": ["https://example.com/cityscape.jpg"],
"image_size": "auto",
"seed": 42
}
}'
Related Models
Documentation
1---2name: flux-2-pro-edit3description: Flux 2 Pro | Edit. Professional-grade image editing with text prompts. Triggers: image editing, flux, pro, photo edit, professional4---56# Flux 2 Pro | Edit78Professional-grade image editing using text prompts with Flux 2 Pro. Streamlined parameter set focused on quality output with configurable safety tolerance.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-2-pro-edit",20 "version": "0.0.1",21 "input": {22 "prompt": "remove the person in the background, fill with natural scenery",23 "image_urls": ["https://example.com/photo.jpg"],24 "image_size": "auto"25 }26 }'27```2829## Parameters3031| Parameter | Type | Default | Description |32|-----------|------|---------|-------------|33| enable_safety_checker | boolean | true | Whether to enable the safety checker. |34| image_size | string | auto | The size of the generated image. enum: auto, square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9 |35| image_urls | array | | List of URLs of input images for editing. |36| output_format | string | jpeg | The format of the generated image. enum: jpeg, png |37| prompt | string | | The prompt to generate an image from. |38| safety_tolerance | string | 2 | The safety tolerance level. 1 is most strict, 5 is most permissive. enum: 1, 2, 3, 4, 5 |39| seed | integer | | The seed to use for the generation. |4041## Examples4243**Object removal:**44```bash45curl -X POST https://api.eachlabs.ai/v1/prediction \46 -H "Content-Type: application/json" \47 -H "X-API-Key: $EACHLABS_API_KEY" \48 -d '{49 "model": "flux-2-pro-edit",50 "version": "0.0.1",51 "input": {52 "prompt": "remove the parked car from the driveway, fill with grass",53 "image_urls": ["https://example.com/house.jpg"],54 "image_size": "landscape_4_3",55 "output_format": "png"56 }57 }'58```5960**Color grading edit:**61```bash62curl -X POST https://api.eachlabs.ai/v1/prediction \63 -H "Content-Type: application/json" \64 -H "X-API-Key: $EACHLABS_API_KEY" \65 -d '{66 "model": "flux-2-pro-edit",67 "version": "0.0.1",68 "input": {69 "prompt": "apply warm golden hour color grading, enhance contrast",70 "image_urls": ["https://example.com/cityscape.jpg"],71 "image_size": "auto",72 "seed": 4273 }74 }'75```7677## Related Models7879- [Flux 2 Pro](../flux-2-pro/) - Text-to-image generation with Pro quality80- [Flux 2 | Flex | Edit](../flux-2-flex-edit/) - Flexible image editing with more controls81- [Flux 2 | Edit](../flux-2-edit/) - Standard Flux 2 editing8283## Documentation8485- [each::labs Docs](https://docs.eachlabs.ai)86- [API Reference](https://docs.eachlabs.ai/api/overview)