Flux 2 Pro
Generate professional-quality images from text prompts with Flux 2 Pro. Offers streamlined controls with configurable safety tolerance for production-ready results.
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",
"version": "0.0.1",
"input": {
"prompt": "a photorealistic macro shot of morning dew on a rose petal",
"image_size": "landscape_4_3",
"output_format": "jpeg"
}
}'
Parameters
| Parameter |
Type |
Default |
Description |
| enable_safety_checker |
boolean |
true |
Whether to enable the safety checker. |
| image_size |
string |
landscape_4_3 |
The size of the generated image. enum: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9 |
| 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
Portrait 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-2-pro",
"version": "0.0.1",
"input": {
"prompt": "cinematic portrait of a jazz musician playing saxophone, dramatic rim lighting, moody atmosphere",
"image_size": "portrait_16_9",
"output_format": "png",
"seed": 42
}
}'
Product photography:
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",
"version": "0.0.1",
"input": {
"prompt": "luxury watch on a marble surface, studio lighting, commercial photography",
"image_size": "square_hd",
"output_format": "jpeg"
}
}'
Related Models
Documentation
1---2name: flux-2-pro3description: Flux 2 Pro. Professional-grade text-to-image generation. Triggers: text to image, flux, pro, image generation, professional4---56# Flux 2 Pro78Generate professional-quality images from text prompts with Flux 2 Pro. Offers streamlined controls with configurable safety tolerance for production-ready results.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",20 "version": "0.0.1",21 "input": {22 "prompt": "a photorealistic macro shot of morning dew on a rose petal",23 "image_size": "landscape_4_3",24 "output_format": "jpeg"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 | landscape_4_3 | The size of the generated image. enum: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9 |35| output_format | string | jpeg | The format of the generated image. enum: jpeg, png |36| prompt | string | | The prompt to generate an image from. |37| safety_tolerance | string | 2 | The safety tolerance level. 1 is most strict, 5 is most permissive. enum: 1, 2, 3, 4, 5 |38| seed | integer | | The seed to use for the generation. |3940## Examples4142**Portrait generation:**43```bash44curl -X POST https://api.eachlabs.ai/v1/prediction \45 -H "Content-Type: application/json" \46 -H "X-API-Key: $EACHLABS_API_KEY" \47 -d '{48 "model": "flux-2-pro",49 "version": "0.0.1",50 "input": {51 "prompt": "cinematic portrait of a jazz musician playing saxophone, dramatic rim lighting, moody atmosphere",52 "image_size": "portrait_16_9",53 "output_format": "png",54 "seed": 4255 }56 }'57```5859**Product photography:**60```bash61curl -X POST https://api.eachlabs.ai/v1/prediction \62 -H "Content-Type: application/json" \63 -H "X-API-Key: $EACHLABS_API_KEY" \64 -d '{65 "model": "flux-2-pro",66 "version": "0.0.1",67 "input": {68 "prompt": "luxury watch on a marble surface, studio lighting, commercial photography",69 "image_size": "square_hd",70 "output_format": "jpeg"71 }72 }'73```7475## Related Models7677- [Flux 2 Pro | Edit](../flux-2-pro-edit/) - Pro-tier image editing78- [Flux 2 | Flex](../flux-2-flex/) - Flexible generation with more controls79- [Flux 2](../flux-2/) - Standard Flux 2 generation8081## Documentation8283- [each::labs Docs](https://docs.eachlabs.ai)84- [API Reference](https://docs.eachlabs.ai/api/overview)