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
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_EDITOR |
model | string | Yes | AI model identifier. Must be black-forest-labs/flux-kontext-dev-lora |
promptObject | object | Yes | Configuration object containing all image editing parameters |
Prompt Object Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
imageUrl | string | Yes | Path to the source image to be edited | - |
prompt | string | Yes | Text description of the desired image transformation | - |
lora_weights | string | No | LoRA model weights URL for specialized fine-tuning | - |
lora_strength | number | No | Strength of LoRA model influence (0.0-2.0) | 1.0 |
aspect_ratio | string | No | Output aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4) | match_input_image |
megapixels | number | No | Output resolution in megapixels (0.25-4.0) | 1.0 |
num_inference_steps | number | No | Number of denoising steps (1-50) | 28 |
guidance | number | No | Guidance scale for prompt adherence (1.0-20.0) | 3.5 |
seed | number | No | Random seed for reproducibility (0-4294967295) | 0 |
output_quality | number | No | Output quality level (0-100) | 80 |
disable_safety_checker | boolean | No | Disable content safety filtering | false |
go_fast | boolean | No | Enable faster processing with reduced quality | false |
format | string | No | Output image format (png, jpeg, webp) | webp |
Code Examples
- cURL
- JavaScript
- Python
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"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_EDITOR',
model: '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: 'portrait-pro',
lora_strength: 0.8,
aspect_ratio: 'match_input_value',
megapixels: "1"
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
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"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresPath 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
-
LoRA Weight Selection:
- Use portrait-pro for people, landscape-hd for nature
- Product-studio for commercial photography
- Artistic-style for creative transformations
-
Strength Optimization:
- Start with moderate strength (0.6-0.8)
- Higher values for stronger style influence
- Lower values for subtle enhancements
-
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.