Flux LoRA Trainer: Training

Train a custom Flux LoRA from your own images. Upload a .zip of 10-50 photos (and optional captions) with a trigger phrase, and receive a portable .safetensors file you can plug into any Flux Dev pipeline for consistent subjects, characters, or styles.

📝

Overview

About this model

Train a custom Flux LoRA from your own image collection in minutes. Upload a .zip of 10-50 photos and pick a unique trigger phrase; you'll receive a portable .safetensors file you can plug into any Flux Dev image-generation pipeline to reproduce a specific subject, character, or visual style with high fidelity.

1Personal Avatars: Train on 15-30 selfies to generate stylized headshots, profile pictures, or fictional scenes featuring the same person.
2Brand Characters: Capture a mascot or recurring character once and reuse the LoRA across unlimited campaign visuals with consistent identity.
3Style Transfer: Train on a curated set of illustrations or photographs to bottle a distinctive aesthetic and apply it to any new prompt.
💰

Pricing & Value

Cost analysis

muapiapp$3.20 per training run

Flat fee per training run, regardless of zip size within the supported range. The trained LoRA is yours to reuse across unlimited generations.

Fal.ai$2.00 per training run

Available as a standalone training endpoint but requires you to manage hosting, key rotation, and integration separately.

ReplicateVaries

Comparable Flux LoRA trainers exist but pricing is usage-based (per training second) and varies by hardware tier.

** Competitor pricing is estimated based on similar model architectures and usage tiers.

⚙️

Technical Details

Configuration schema

Images Zip URLstring

Public URL to a .zip archive containing 10-50 training images. Optional caption .txt files (same name as the matching image) can include a [trigger] placeholder which is replaced with trigger_phrase.

Default Valuehttps://d3adwkbyhxyrtq.cloudfront.net/loradata/train_lora.zip
Trigger Phrasestring

A unique word or short phrase that activates the trained concept at inference time. Keep it short and unusual so it does not collide with normal vocabulary.

Default Valuemysubject
Training StyleEnum (2 options)

What the LoRA learns: 'subject' (a person, character, or object) or 'style' (an aesthetic or art direction).

Default Valuesubject
📖

Implementation Guide

Developer documentation

How to Use Flux LoRA Trainer

  1. Prepare your images: Collect 10-50 high-quality images of the subject or style. For subjects, vary angles, expressions, and lighting; for styles, vary content but keep the aesthetic consistent.

  2. Optionally add captions: For each image you can include a .txt file with the same base name containing a caption. Use the placeholder [trigger] anywhere you want the trigger phrase substituted in.

  3. Zip and host the archive: Bundle the images (and optional captions) into a single .zip and upload it to a publicly reachable URL.

  4. Pick a trigger phrase: Choose a short, unusual word (e.g. myxyz) that does not collide with normal English vocabulary. This phrase activates the LoRA at inference time.

  5. Submit and wait: Training typically completes in 5-10 minutes. The webhook (or status poll) returns a lora_url pointing to the trained .safetensors file.

  6. Use the LoRA: Pass lora_url to any Flux Dev LoRA-capable image-generation endpoint and include your trigger phrase in the prompt.

Common Questions

Frequently asked

How many images should I provide?

At least 10 — more is usually better, up to about 50. For a subject, prioritise variety in pose and lighting. For a style, prioritise consistency in aesthetic.

Do I need captions?

No, captions are optional. If you do include them, name each `.txt` file identically to its image and use `[trigger]` wherever you want the trigger phrase injected.

How long does training take?

Typically 5-10 minutes from submission to a downloadable `.safetensors` file. The endpoint is asynchronous — provide a `webhook_url` or poll the status endpoint.

What is the trigger phrase for?

It is the unique token you mention in inference prompts to activate the trained concept. Pick something short and unusual so it does not collide with normal vocabulary in your prompts.

Where can I use the trained LoRA?

Any image-generation endpoint that accepts a Flux Dev LoRA URL — including muapiapp's flux-dev-lora — can consume the resulting `.safetensors` file directly.