Skip to main content

Flux Kontext Max - Image Text Editor

Premium AI image editing model with maximum quality output and advanced contextual understanding. Flux Kontext Max excels at complex transformations while preserving image coherence and maintaining natural-looking results.

Endpoint

Request Headers

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

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_EDITOR
modelstringYesAI model identifier. Must be black-forest-labs/flux-kontext-max
promptObjectobjectYesConfiguration object containing all image editing parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
imageUrlstringYesPath to the source image to be edited-
promptstringYesText description of the desired image transformation-
aspect_ratiostringNoOutput aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4)match_input_image
prompt_upsamplingbooleanNoEnable advanced prompt interpretationfalse
seednumberNoRandom seed for reproducibility (0-4294967295)0
safety_tolerancenumberNoContent safety threshold (1-6)2
formatstringNoOutput image format (png, jpeg, webp)png

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

Quality Settings

SettingRangeDescription
Safety Tolerance1-6Content filtering sensitivity (1=strict, 6=permissive)
Prompt Upsamplingtrue/falseEnhanced prompt interpretation
Formatpng/jpeg/webpOutput image format

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_EDITOR",
"model": "black-forest-labs/flux-kontext-max",
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",
"prompt": "transform into a professional studio portrait with dramatic lighting and elegant composition",
"aspect_ratio": "match_input_image",
"prompt_upsampling": true,
"seed": 42,
"safety_tolerance": 3,
"format": "png"
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Path to the source image to be edited
Describe the transformation you want to apply
Output aspect ratio
Enable advanced prompt interpretation
Random seed for reproducibility (0-4294967295)
Content safety threshold (1-6, higher = more permissive)
Output image format

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_EDITOR",
"model": "black-forest-labs/flux-kontext-max",
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",
"prompt": "transform into a professional studio portrait with dramatic lighting and elegant composition",
"aspect_ratio": "match_input_image",
"prompt_upsampling": true,
"seed": 42,
"safety_tolerance": 3,
"format": "png"
}
}'

Response Format

{
"aiRecord": {
"uuid": "e8e3d645-d5a4-4c18-975b-95395d3b49e1",
"userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",
"teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",
"model": "black-forest-labs/flux-kontext-max",
"type": "IMAGE_EDITOR",
"status": "SUCCESS",
"createdAt": "2025-10-24T08:00:44.752Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",
"prompt": "transform into a professional studio portrait with dramatic lighting and elegant composition",
"aspect_ratio": "match_input_image",
"prompt_upsampling": true,
"seed": 42,
"safety_tolerance": 3,
"format": "png"
},
"resultObject": [
"development/images/2025_10_24_15_00_52_401_480067.png"
]
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_10_24_15_00_52_401_480067.png?X-Amz-Algorithm=AWS4-HMAC-SHA256..."
}
}

Use Cases

  • Professional Photography: High-quality portraits, product shots, architectural imagery
  • Digital Art: Detailed illustrations, concept art, fine art pieces
  • Commercial Design: Marketing materials, advertising campaigns, brand content
  • Creative Projects: Style transfers, artistic transformations, mood adjustments
  • Social Media: Platform-optimized content creation in various aspect ratios

Tips for Best Results

  1. Quality Settings:

    • Enable prompt upsampling for complex descriptions
    • Use appropriate safety tolerance for your content type
    • Choose PNG for maximum quality, JPEG for smaller files
  2. Aspect Ratio Planning:

    • Select ratios that match your intended use case
    • Consider platform requirements (Instagram 1:1, Stories 9:16)
    • Use 16:9 for presentations and widescreen content
  3. Prompt Optimization:

    • Be specific about style, lighting, and composition
    • Include technical photography or art terms
    • Reference specific artistic styles or techniques
Safety Filters

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