Skip to main content

Flux 2 Flex - Image Generator

Maximum-quality image generation model by Black Forest Labs with adjustable quality-speed trade-offs and support for up to 10 reference images. Excels at typography, design work, and multi-reference blending.

Also supports Image Editing

This model also supports IMAGE_EDITOR mode for text-based image editing. See Flux 2 Flex - Image Editor.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesMust be IMAGE_GENERATOR
modelstringYesMust be black-forest-labs/flux-2-flex
promptObjectobjectYesConfiguration object containing all generation parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
promptstringYesText description of the image to generate-
aspect_ratiostringNoImage aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4)1:1
output_formatstringNoOutput file format (jpg, png)png
output_qualitynumberNoOutput image quality (0-100)80
stepsnumberNoNumber of diffusion steps; fewer (6-10) for speed, more (20-50) for quality25
guidancenumberNoPrompt adherence scale (2-5)3
safety_tolerancenumberNoContent safety threshold (1=strictest, 6=most permissive)2
prompt_upsamplingbooleanNoAutomatically enhance prompt for more creative outputfalse
seednumberNoRandom seed for reproducibilityRandom

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"model": "black-forest-labs/flux-2-flex",
"promptObject": {
"prompt": "A vibrant event poster with bold typography: SUMMER FEST 2026, colorful gradient background",
"aspect_ratio": "9:16",
"steps": 30,
"guidance": 4,
"output_format": "png",
"output_quality": 90,
"safety_tolerance": 2
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Describe the image you want to generate
Diffusion steps: 6-10 for speed, 20-50 for quality
Prompt adherence scale (2-5)
Content safety threshold (1=strictest, 6=most permissive)
Output image quality (0-100)
Random seed for reproducibility

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_GENERATOR",
"model": "black-forest-labs/flux-2-flex",
"promptObject": {
"prompt": "A vibrant event poster with bold typography: SUMMER FEST 2026, colorful gradient background",
"aspect_ratio": "9:16",
"steps": 30,
"guidance": 4,
"output_format": "png",
"output_quality": 90,
"safety_tolerance": 2
}
}'

Response Format

{
"aiRecord": {
"uuid": "e5f6a7b8-c9d0-1234-efab-345678901234",
"model": "black-forest-labs/flux-2-flex",
"type": "IMAGE_GENERATOR",
"status": "SUCCESS",
"createdAt": "2026-03-27T10:00:00.000Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "A vibrant event poster with bold typography: SUMMER FEST 2026, colorful gradient background",
"aspect_ratio": "9:16",
"steps": 30,
"guidance": 4,
"output_format": "png",
"output_quality": 90,
"safety_tolerance": 2
},
"resultObject": [
"development/images/2026_03_27_10_00_05_001_poster.png"
]
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2026_03_27_10_00_05_001_poster.png?..."
}
}

Use Cases

  • Typography & Design: Posters, infographics, and UI mockups with sharp text rendering
  • Style Transfer: Multi-reference blending for consistent visual style
  • Flexible Production: Tune quality vs speed by adjusting steps
  • Brand Assets: Design-heavy materials requiring readable text and fine detail