Skip to main content

Flux Kontext Dev LoRA - Image Text Editor

Advanced AI image editing with customizable LoRA model fine-tuning and flexible output control. Perfect for developers who need specialized styling and precise control over image transformations.

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-dev-lora
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-
lora_weightsstringNoLoRA model weights URL for specialized fine-tuning-
lora_strengthnumberNoStrength of LoRA model influence (0.0-2.0)1.0
aspect_ratiostringNoOutput aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4)match_input_image
megapixelsnumberNoOutput resolution in megapixels (0.25-4.0)1.0
num_inference_stepsnumberNoNumber of denoising steps (1-50)28
guidancenumberNoGuidance scale for prompt adherence (1.0-20.0)3.5
seednumberNoRandom seed for reproducibility (0-4294967295)0
output_qualitynumberNoOutput quality level (0-100)80
disable_safety_checkerbooleanNoDisable content safety filteringfalse
go_fastbooleanNoEnable faster processing with reduced qualityfalse
formatstringNoOutput image format (png, jpeg, webp)webp

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-dev-lora",
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",
"prompt": "transform into a cinematic portrait with dramatic lighting",
"lora_weights": "https://huggingface.co/fofr/flux-kontext-dev-ps1-lora/resolve/main/flux-kontext-dev-ps1-lora.safetensors",
"lora_strength": 1.0,
"aspect_ratio": "match_input_image",
"megapixels": "1",
"num_inference_steps": 28,
"guidance": 3.5,
"seed": 0,
"output_quality": 80,
"disable_safety_checker": false,
"go_fast": true,
"format": "webp"
}
}'

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
LoRA model weights URL from HuggingFace
Strength of LoRA model influence (0.0-2.0)
Output aspect ratio
Output resolution in megapixels (0.25 or 1)
Number of denoising steps (1-50)
Guidance scale for prompt adherence (1.0-20.0)
Random seed for reproducibility (0-4294967295)
Output quality level (0-100)
Disable content safety filtering
Enable faster processing with reduced quality
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-dev-lora",
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",
"prompt": "transform into a cinematic portrait with dramatic lighting",
"lora_weights": "https://huggingface.co/fofr/flux-kontext-dev-ps1-lora/resolve/main/flux-kontext-dev-ps1-lora.safetensors",
"lora_strength": 1,
"aspect_ratio": "match_input_image",
"megapixels": "1",
"num_inference_steps": 28,
"guidance": 3.5,
"seed": 0,
"output_quality": 80,
"disable_safety_checker": false,
"go_fast": true,
"format": "webp"
}
}'

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-dev-lora",
"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 cinematic portrait with dramatic lighting",
"lora_weights": "https://huggingface.co/fofr/flux-kontext-dev-ps1-lora/resolve/main/flux-kontext-dev-ps1-lora.safetensors",
"lora_strength": 1.0,
"aspect_ratio": "match_input_image",
"megapixels": 1.0,
"num_inference_steps": 28,
"guidance": 3.5,
"seed": 0,
"output_quality": 80,
"disable_safety_checker": false,
"go_fast": true,
"format": "webp"
},
"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

  • Portrait Photography: Professional headshots with specialized portrait LoRA weights
  • Artistic Transformations: Creative style transfers using artistic LoRA models
  • Product Photography: Enhanced product images with commercial-grade LoRA weights
  • Landscape Enhancement: Nature photography improvements with landscape-specific models
  • Fashion Photography: Beauty and fashion content with specialized fine-tuning
  • Architectural Visualization: Building and interior design with architectural LoRA weights

Tips for Best Results

  1. LoRA Weight Selection:

    • Use portrait-pro for people, landscape-hd for nature
    • Product-studio for commercial photography
    • Artistic-style for creative transformations
  2. Strength Optimization:

    • Start with moderate strength (0.6-0.8)
    • Higher values for stronger style influence
    • Lower values for subtle enhancements
  3. Resolution Planning:

    • Higher megapixels for print quality
    • Standard resolution for web content
    • Consider processing time vs. quality needs
LoRA Customization

Experiment with different LoRA weight combinations to achieve unique artistic effects. Each LoRA model specializes in specific content types and styles.