Skip to main content

Flux Pro - Image Generator

Premium AI image generation model by Black Forest Labs. Flux Pro delivers exceptional quality with advanced prompt understanding, superior detail rendering, and professional-grade output suitable for commercial applications.

Endpoint

Request Headers

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

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_GENERATOR
modelstringYesAI model identifier. Must be black-forest-labs/flux-pro
promptObjectobjectYesConfiguration object containing all generation parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
promptstringYesText description of the image to generate-
image_promptstringNoPath to input image from Asset API for image-to-image generation-
aspect_ratiostringNoImage aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4, custom)custom
widthnumberNoImage width in pixels (256-1440, multiple of 32)1024
heightnumberNoImage height in pixels (256-1440, multiple of 32)1024
stepsnumberNoNumber of inference steps (1-50)25
guidancenumberNoGuidance scale for prompt adherence (0-50)3.5
intervalnumberNoProcessing interval parameter-
prompt_upsamplingbooleanNoEnhance prompt for better resultsfalse
seednumberNoRandom seed for reproducibility (0-4294967295)Random
output_formatstringNoOutput image format (webp, jpg, png)webp
output_qualitynumberNoOutput image quality (0-100)80
safety_tolerancenumberNoSafety filter sensitivity (1-5)2

Supported Aspect Ratios

RatioUse Case
1:1Square images, social media posts
16:9Widescreen, video thumbnails
9:16Vertical video, mobile screens
3:2Standard photography
2:3Portrait photography
4:5Instagram posts
5:4Landscape photography
customUse specific width/height values

Quality Settings

SettingRangeDescription
Steps1-50More steps = higher quality but longer generation time
Guidance0-50How closely to follow the prompt (higher = more adherence)
Output Quality0-100Image compression quality for final output
Safety Tolerance1-5Content filtering sensitivity (1=strict, 5=permissive)

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-pro",
"promptObject": {
"prompt": "Professional portrait photography, studio lighting, high detail",
"width": 1024,
"height": 1024,
"steps": 30,
"prompt_upsampling": true,
"output_quality": 90
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Describe the image you want to generate
Image width in pixels (256-1440, multiple of 32)
Image height in pixels (256-1440, multiple of 32)
Number of inference steps (1-50)
Enhance prompt for better results
Output image format
Output image quality (0-100)
Safety filter sensitivity (1-5, higher = more permissive)
Random seed for reproducibility (0-4294967295)

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-pro",
"promptObject": {
"prompt": "Professional portrait photography, studio lighting, high detail",
"aspect_ratio": "16:9",
"width": 1024,
"height": 1024,
"num_outputs": 1,
"steps": 25,
"guidance": 3.5,
"prompt_upsampling": false,
"output_quality": 80
}
}'

Response Format

{
"aiRecord": {
"uuid": "e8e3d645-d5a4-4c18-975b-95395d3b49e1",
"userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",
"teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",
"teamUser": {
"teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",
"userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",
"userName": "John Doe",
"userAvatar": "https://lh3.googleusercontent.com/a/ACg8ocLqgsNsHRfmWF9d-E1RvJetVsEzxNOsOg-NXWNTpMxLDPJbwELI=s96-c",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 1895205,
"createdAt": "2025-10-20T04:13:40.847Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-10-23T10:44:02.196Z",
"updatedBy": "SYSTEM"
},
"model": "black-forest-labs/flux-pro",
"type": "IMAGE_GENERATOR",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-10-24T08:00:44.752Z",
"aiRecordDetail": {
"promptObject": {
"steps": 25,
"width": 1024,
"height": 1024,
"prompt": "Professional portrait photography, studio lighting, high detail",
"output_quality": 80,
"prompt_upsampling": false
},
"resultObject": [
"development/images/2025_10_24_15_00_52_401_480067.undefined"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_10_24_15_00_52_401_480067.undefined?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAVRUVQEFIHSKAXGE7%2F20251024%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251024T080054Z&X-Amz-Expires=604800&X-Amz-Signature=9b0012b3e3858de65048c405fe5767f2bc0e50af66d92a4476a4f9eb0f8e66ac&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}

Use Cases

  • Professional Photography: High-quality portraits, product shots, architectural imagery
  • Commercial Design: Marketing materials, advertising campaigns, brand content
  • Digital Art: Detailed illustrations, concept art, fine art pieces
  • Print Media: High-resolution images for magazines, posters, brochures
  • Creative Projects: Book covers, album artwork, game assets

Tips for Best Results

  1. Quality Settings:

    • Use 25-35 steps for high quality
    • Enable prompt upsampling for complex descriptions
    • Set output quality to 85-95 for professional work
  2. Resolution Planning:

    • Choose dimensions that match your intended use
    • Use multiples of 32 for optimal results
    • Higher resolutions increase generation time
  3. Prompt Optimization:

    • Be specific about lighting, style, and composition
    • Include technical photography terms for realistic images
    • Use artistic style references for creative work

Notes

Safety Filters

Content filtering is automatically applied. Adjust safety tolerance (1-5) to balance creative freedom with content guidelines.