Skip to main content

Flux Dev LoRA - Image Generator

Professional LoRA-enabled AI image generation model by Black Forest Labs. Flux Dev LoRA combines balanced quality and speed with advanced LoRA support, dual LoRA loading, image-to-image generation, and external API access for comprehensive creative workflows.

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-dev-lora
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)1:1
prompt_strengthnumberNoInfluence of prompt vs input image (0-1)0.8
num_inference_stepsnumberNoNumber of inference steps (1-50)28
guidancenumberNoGuidance scale for prompt adherence (0-50)3.5
seednumberNoRandom seed for reproducibility (0-4294967295)Random
output_qualitynumberNoOutput image quality (0-100)80
disable_safety_checkerbooleanNoDisable built-in safety filteringfalse
go_fastbooleanNoEnable fastest generation modefalse
lora_weightsstringNoPrimary LoRA model identifier-
lora_scalenumberNoPrimary LoRA influence strength (0-3)1
extra_lorastringNoSecondary LoRA model identifier-
extra_lora_scalenumberNoSecondary LoRA influence strength (0-3)1
megapixelsstringNoOutput resolution in megapixels (0.25, 1, 2)1
hf_api_tokenstringNoHuggingFace API token for private models-
civitai_api_tokenstringNoCivitAI API token for private models-

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

Advanced LoRA Features

FeatureDescription
Dual LoRA LoadingLoad two LoRA models simultaneously for complex styles
Image-to-Image + LoRAApply LoRA styles to existing images
External API AccessAccess private LoRA models with HF/CivitAI tokens
Independent ScalingControl each LoRA's influence separately

LoRA Sources

SourceToken RequiredExample
HuggingFacehf_api_tokenuser/model-name
CivitAIcivitai_api_tokencivitai.com/models/12345
Public ModelsNonefofr/flux-80s-cyberpunk

Quality Settings

SettingRangeDescription
Inference Steps1-50More steps = higher quality but longer generation time
Guidance0-50How closely to follow the prompt (higher = more adherence)
LoRA Scale0-3Primary LoRA influence strength
Extra LoRA Scale0-3Secondary LoRA influence strength
Megapixels0.25, 1, 2Output resolution (2MP max for detailed work)

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-dev-lora",
"promptObject": {
"prompt": "Cyberpunk street scene with neon lights, futuristic architecture",
"aspect_ratio": "1:1",
"num_inference_steps": 28,
"guidance": 3.5,
"lora_weights": "fofr/flux-80s-cyberpunk",
"lora_scale": 1,
"megapixels": "1"
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Describe the image you want to generate
Path to input image from Asset API for image-to-image generation
Choose aspect ratio for your image
Influence of prompt vs input image (0-1)
Number of inference steps (1-50)
Guidance scale for prompt adherence (0-50)
Primary LoRA model identifier
Primary LoRA influence strength (0-3)
Secondary LoRA model identifier
Secondary LoRA influence strength (0-3)
Output resolution in megapixels
Enable fastest generation mode
Disable built-in safety filtering
HuggingFace API token for private models
CivitAI API token for private models
Output image quality (0-100)
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-dev-lora",
"promptObject": {
"prompt": "Cyberpunk street scene with neon lights, futuristic architecture",
"aspect_ratio": "1:1",
"prompt_strength": 0.8,
"num_inference_steps": 28,
"guidance": 3.5,
"lora_weights": "fofr/flux-80s-cyberpunk",
"lora_scale": 1,
"megapixels": "1"
}
}'

Response Format

{
"aiRecord": {
"uuid": "e4f5g6h7-i8j9-0123-4567-890123defghi",
"userId": "user-12345",
"teamId": "team-67890",
"model": "black-forest-labs/flux-dev-lora",
"type": "IMAGE_GENERATOR",
"status": "SUCCESS",
"createdAt": "2025-01-15T10:50:00.000Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "Cyberpunk street scene with neon lights, futuristic architecture",
"aspect_ratio": "1:1",
"num_inference_steps": 28,
"guidance": 3.5,
"lora_weights": "fofr/flux-80s-cyberpunk",
"lora_scale": 1,
"megapixels": "1"
},
"resultObject": [
"development/images/2025_01_15_10_50_45_001_cyberpunk_scene.webp"
]
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_10_50_45_001_cyberpunk_scene.webp?X-Amz-Algorithm=AWS4-HMAC-SHA256&..."
}
}

Use Cases

  • Professional Design: High-quality styled imagery for commercial projects
  • Style Transfer: Apply artistic styles to existing images with LoRA + img2img
  • Brand Development: Consistent visual identity using custom LoRAs
  • Creative Workflows: Balanced quality and speed for iterative design
  • Multi-Style Blending: Combine multiple LoRA effects for unique aesthetics

Tips for Best Results

  1. Dual LoRA Strategy:

    • Primary LoRA: Main style or aesthetic (scale 0.8-1.2)
    • Secondary LoRA: Enhancement or detail refinement (scale 0.5-1.0)
    • Balance scales to avoid over-styling
  2. Image-to-Image with LoRA:

    • Use prompt strength 0.6-0.8 for balanced transformation
    • Apply complementary LoRAs to enhance source image style
    • Higher guidance (4-6) for more controlled results
  3. External Model Access:

    • Use HF API tokens for private HuggingFace models
    • CivitAI tokens enable access to community-created LoRAs
    • Test public models first before using private ones

Notes

Advanced LoRA Features

This model supports dual LoRA loading and external API access. Combine multiple styles or access private models for enhanced creative control.