How to Use FLUX.1 [dev] Style LoRA Inference
-
Train a Style LoRA (if you haven't already)
-
Write Your Prompt
- Describe the image you want, referencing your trigger word if the LoRA was trained with one.
-
Apply the LoRA
- Set
lora_url to the trained .safetensors file, and lora_weight (0–4, default 1) to control how strongly it's applied.
-
Set the Aspect Ratio
- Choose
aspect_ratio for the output image.
-
Submit via the API
curl -X POST https://api.muapi.ai/api/v1/flux-1-dev-style-lora-inference \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A portrait in the trained style, studio lighting.",
"lora_url": "https://cdn.muapi.ai/outputs/generated/example.safetensors",
"lora_weight": 1.0,
"aspect_ratio": "1:1"
}'
- Poll and Download
- Poll
GET /api/v1/predictions/{request_id}/result until status is completed, then retrieve the image URL from output.