Skip to main content

Train a Flux LoRA: Complete Walkthrough (Free and Paid Routes)

Train a Flux LoRA three ways: FluxGym on your own GPU, Civitai's on-site trainer, or the fal and Replicate APIs, with documented defaults and cost per run.

Founder of IImagined.ai

Published
Oct 11, 2026
Reading time
11 min read
Quick answer

To train a Flux LoRA, pick the Flux model you will generate with, build 10 to 20 captioned images with a trigger word, and run them through FluxGym on your own GPU, Civitai's on-site trainer, or a hosted trainer on fal or Replicate. A default FLUX.1 run is listed at about $1.46 on Replicate, $2 on fal and 2,000 Buzz on Civitai, while FluxGym costs only GPU time. Save several checkpoints and keep the one that holds the face and still follows new prompts.

To train a Flux LoRA, pick one of three routes: FluxGym on your own NVIDIA card with 12 GB of VRAM or more, Civitai's on-site trainer paid in Buzz, or a hosted trainer on fal or Replicate. Each one takes a set of captioned images and a trigger word and hands back a LoRA file. A default FLUX.1 run is listed at about $1.46 on Replicate, $2 on fal and 2,000 Buzz on Civitai, and FluxGym costs only your GPU time.

Settings and prices checked in October 2026 against the FluxGym README and source, AI Toolkit's FLUX.1 example config, Civitai's developer docs for Flux 1 and Flux 2 Klein, its trainer guide and pricing page, fal's FLUX.1 fast trainer, Replicate's fine-tuning guide and Black Forest Labs' klein training guide. Every setting below is that trainer's documented default or example. We did not benchmark the routes against each other, so nothing here says which output looks best.

A LoRA is one of several ways to hold a face. If you have not settled on training yet, the consistent character AI guide compares it with reference-image methods first, and Flux consistent character covers the no-training route on Flux itself.

What you will have at the end

One LoRA file per saved checkpoint, a trigger word that switches the character on, and a short test that tells you which checkpoint to keep. The job has five stages, and only the fourth differs between the three routes.

Training a Flux LoRA, end to end
  1. 01
    Pick the Flux model

    The LoRA only loads on this one

  2. 02
    Build the dataset

    10 to 20 captioned images for a face

  3. 03
    Choose a route

    Local, Civitai or a hosted trainer

  4. 04
    Train with checkpoints

    Save several, not one

  5. 05
    Test and keep one

    Fixed prompts, same seed

Flux LoRA training guide: choose the Flux model first

Train on the model you will generate with. "Flux" now covers several architectures, and a LoRA does not move between them.

Flux modelWeights licenceTrainers that list itTrain on it when
FLUX.1 [dev]FLUX [dev] Non-Commercial LicenseFluxGym, sd-scripts, AI Toolkit, Civitai, fal, ReplicateYou already generate on FLUX.1 and want the widest choice of trainers
FLUX.2 [klein] 4B BaseApache 2.0AI Toolkit, CivitaiA persona you plan to earn from, a 12 GB card, or the cheapest Civitai run
FLUX.2 [klein] 9B BaseFLUX Non-Commercial LicenseAI Toolkit, Civitai, falYou have 22 GB of VRAM or pay per run, and want more capacity than 4B
FLUX.2 [dev]FLUX [dev] Non-Commercial LicenseAI Toolkit, Civitai, falYou work with FLUX.2 multi-reference editing; the priciest hosted run
FLUX 3 ImageNo open weights yetNoneNot trainable. Use its reference images instead

Licences are from Black Forest Labs' FLUX [dev] Non-Commercial License and its klein training guide. The dev licence allows commercial use of outputs but limits the model itself to non-commercial use, so read it before you train a persona you earn from. FLUX 3, the newest family, runs through the API only: the release notes list open weights as a later phase, so there is nothing to train a LoRA on yet.

Three ways to train a Flux LoRA, compared

The routes differ in what you need to own, which Flux models they cover and how you pay.

RouteYou needFlux modelsListed cost of a default runEffort
FluxGym, localAn NVIDIA card with 12, 16 or 20 GB of VRAMFLUX.1 [dev], dev2pro and schnellFree software; you pay in GPU timeOne install, then a three-step web UI
Civitai on-site trainerA Civitai account, Buzz, and a country where the site loadsFlux.1 Dev, Flux.2 Dev, Flux2 Klein 4B and 9B Base2,000 Buzz for Flux 1, 500 for Klein 4BUpload, pick a base model, submit
fal or ReplicateAn account with billing set upFLUX.1 on both; FLUX.2 [dev] and klein 9B on falAbout $1.46 to $2 for FLUX.1A web form or one API call
  • Pick FluxGym if you own the card and want unlimited retries on FLUX.1.
  • Pick Civitai if the persona is fictional, you want no setup, and you want Klein 4B at the lowest listed price.
  • Pick fal or Replicate if you want a file in minutes, or need the run inside your own code.

Flux character LoRA: the dataset comes before the trainer

Every route takes the same input, and it decides more of the result than any setting. Vendor docs put a face at 10 to 20 images and a full character at 20 to 40; how many images to train a face LoRA lists each source, and the character LoRA dataset checklist gives a shot list.

Caption in plain sentences. Civitai's trainer guide calls natural-language captions the preferred method for Flux, and Replicate's guide says to choose a trigger word that is not an existing word and to avoid TOK, which clashes with other fine-tunes.

Pre-flight for any route
  • The Flux model is chosen and matches where you will generate
  • 10 to 20 sharp images of one face, or 20 to 40 for a full character
  • Every image differs in angle, expression, light or background
  • Captions are plain sentences with the trigger word and what changes in that image
  • The trigger word is an invented token, not a real word or name
  • The subject is an original persona or your own face (see the rules table below)
  • Images are JPG or PNG, 1024 px or more on the short side where possible
  • Three or four sample prompts are written before you start

Route 1: train a Flux LoRA free with FluxGym

FluxGym is a free web interface over kohya sd-scripts that trains FLUX.1 LoRAs on 12, 16 and 20 GB cards. The software costs nothing; the GPU is yours. Its repository was last updated in July 2026.

FluxGym, from install to LoRA file
  1. 1
    Install it

    Use the Pinokio one-click installer, or clone fluxgym and the sd3 branch of sd-scripts, install both requirements files and run python app.py. Docker serves it on localhost:7860.

  2. 2
    Name the LoRA and set the trigger word

    Fill in "The name of your LoRA" and "Trigger word/sentence". Result: the name becomes the output folder.

  3. 3
    Pick the base model and VRAM preset

    flux-dev is the default and downloads on the first run. Choose 20G, 16G or 12G to match your card.

  4. 4
    Upload and caption the images

    Up to 150 images. "Add AI captions with Florence-2" drafts captions; edit each one and keep the trigger word in it.

  5. 5
    Read "Expected training steps"

    Defaults are 10 repeats and 16 epochs, so 20 images show 3,200 steps. Lower the epochs if that is far above your plan.

  6. 6
    Add sample prompts

    Samples are off by default. Enter a few prompts and a "Sample Image Every N Steps" value so you can watch the face arrive.

  7. 7
    Press Start training

    Follow the train log. Result: LoRA files and samples in the outputs folder under your LoRA name, saved every 4 epochs by default.

Look at two defaults before the first run. FluxGym resizes images to 512 and ships with a learning rate of 8e-4 and a rank of 4, both under the advanced accordion. That rate sits above the 5e-4 Civitai's Flux 1 docs say to stay under, so if samples burn early it is the first number to lower. Face LoRA training steps and learning rate covers the documented ranges, and the free LoRA Training Steps Calculator reproduces FluxGym's step arithmetic and adds a time and GPU-cost estimate.

No suitable card? Renting one to run FluxGym works, but it turns the free route into a paid one. Train a LoRA free online compares the free quotas that exist instead.

Route 2: Civitai's on-site trainer

Civitai trains Flux in the browser and bills in Buzz. Two limits come first. Its own notice says the site has not been accessible in Australia since March 16, 2026, and its rules prohibit content based on any real person's likeness, so this route is for fictional personas only.

  1. Start the wizard. Click Create, then Train a model, choose a model type and name it.
  2. Add the images. Upload a zip of images with matching .txt captions, or loose images, and tick the acknowledgements.
  3. Caption. Auto Label with the Caption type writes natural-language captions, and Prepend Tags puts your trigger word on every one.
  4. Choose the base model. Flux.1 Dev, Flux.2 Dev, or Flux2 Klein 4B or 9B Base. Result: the Buzz cost appears before you submit.
  5. Add sample prompts and submit. Result: an email when the run finishes, and each epoch listed with its samples.
  6. Download within 30 days. Civitai keeps at most 20 epochs and deletes unclaimed files after that.

The developer docs give the defaults: 2,000 steps, 10 saved epochs, a 1e-4 learning rate with adamw8bit on a cosine schedule, and a rank of 16 on Flux 1 or 32 on Klein. A run that fails is retried, then refunded in full if it fails completely. Our Civitai LoRA training walkthrough goes through both of its trainers and every setting.

Route 3: a hosted trainer on fal or Replicate

Both services run a FLUX.1 fast trainer from a web form or an API call. You upload a zip, set a trigger word and wait a few minutes.

fal or Replicate for a FLUX.1 run
fal: FLUX.1 fast training
  • Inputs: a zip of images and a trigger word
  • Default 1,000 steps
  • Listed at $2 per run, scaling linearly with steps
  • Style mode turns off auto-captioning and masks
  • Also trains FLUX.2 [dev] and klein 9B, priced per step
  • Output works with fal's FLUX.1 LoRA endpoints
Replicate: fast-flux-trainer
  • Inputs: a zip, a trigger word and a lora_type
  • Default 1,000 steps; the guide says to leave it there
  • About $1.46 for a 2-minute run on 8 H100 GPUs
  • lora_type subject for a person, style for a look
  • WebP, JPG and PNG accepted; 1024 px or more advised
  • Run it on Replicate or download the weights
  1. Zip the dataset folder. Include the caption files if you wrote them.
  2. Open the trainer. On fal, FLUX.1 fast training. On Replicate, the fast-flux-trainer form from its guide.
  3. Set the trigger word and, on Replicate, set lora_type to subject.
  4. Leave steps at 1,000 for the first run. Replicate's guide says fewer under-learns and more adds cost without much gain.
  5. Start it. Result: Replicate quotes about two minutes for 20 images; fal says minutes, not hours.
  6. Generate with the trigger word, then download the weights if you want the file elsewhere.

fal also lists a FLUX.2 [dev] trainer and a klein 9B trainer. Its klein 4B trainer page is marked as no longer supported (checked October 2026), so for Klein 4B use Civitai or AI Toolkit.

Flux LoRA settings: each trainer's documented defaults

These are the numbers each trainer ships with. Start from the row for your trainer, not from a forum recipe.

TrainerStepsLearning rateRankOptimizerCheckpoints
FluxGymImages x 10 repeats x 16 epochs8e-44AdamW8bit at 20G; Adafactor at 16G and 12GEvery 4 epochs
AI Toolkit FLUX.1 example2,0001e-416, alpha 16adamw8bitEvery 250 steps, last 4 kept
Civitai, Flux 12,0001e-416adamw8bit, cosine schedule10 saved epochs
Civitai, Flux 2 Klein2,0001e-432adamw8bit, cosine schedule10 saved epochs
fal FLUX.1 fast training1,000Not publishedNot publishedNot publishedFinal file
Replicate fast-flux-trainer1,000Not publishedNot publishedNot publishedFinal weights

For a settings file to copy, AI Toolkit publishes one. This excerpt holds the values that matter from its train_lora_flux_24gb.yaml; copy the full file from the repository, set the folder path and trigger word, and run it with python run.py. A comment in the file calls 500 to 4,000 steps a good range.

network:
  type: "lora"
  linear: 16
  linear_alpha: 16
save:
  save_every: 250
  max_step_saves_to_keep: 4
datasets:
  - folder_path: "/path/to/images/folder"
    caption_ext: "txt"
    caption_dropout_rate: 0.05
    resolution: [ 512, 768, 1024 ]
train:
  batch_size: 1
  steps: 2000
  optimizer: "adamw8bit"
  lr: 1e-4
model:
  name_or_path: "black-forest-labs/FLUX.1-dev"
  is_flux: true
  quantize: true

For Klein, Black Forest Labs' guide gives a learning rate of 8e-5 to 1e-4 and 800 to 1,200 steps for a character LoRA of 10 to 15 images, and it lists 12 GB of VRAM as the minimum for 4B and 22 GB for 9B.

What a Flux LoRA training run costs

Listed cost of one default hosted run, in US dollars
Civitai, Flux 2 Klein 4B
$0.50
Replicate, FLUX.1 fast
$1.46
fal, FLUX.1 fast
$2.00
Civitai, Flux.1 Dev
$2.00
fal, klein 9B
$4.30
fal, FLUX.2 [dev]
$6.40

Civitai rows convert Buzz at the rate on its training page, 1,000 Buzz to $1, and run 2,000 steps; the others run 1,000. Source: each service's pricing or model page, checked October 2026

Civitai prices a run in Buzz, and its training page gives the conversion as 1,000 Buzz to $1. Its Buzz guide says every type of Buzz, including the free Blue Buzz you earn on the site, can pay for training, so the cash cost can be zero if you have earned enough. The price is steps times a per-step cost plus a charge per saved epoch, and it never drops below 80 percent of the default, so cutting a Flux 1 run to 1,000 steps still costs 1,600 Buzz.

Budget for several runs, not one. A first character LoRA usually takes a few attempts, which is the real argument for a local card if you already own one.

Whose face each route lets you train

RouteRule on real people
CivitaiContent that depicts or is based on the likeness of real people, living or deceased, public or private, is strictly prohibited. Fictional personas only.
falThe acceptable use policy bans using another person's name, image, voice or likeness without consent to impersonate them, and any sexual depiction of a person without consent.
ReplicateIts Flux guide trains on the author's own face. The acceptable use policy requires that data you upload complies with the law and does not infringe anyone's rights.
FluxGym and other local trainersNo platform checks you, but Black Forest Labs' usage policy covers FLUX models and derivatives: no unlawful impersonation, and no abusive or misleading depiction of a real person without verified consent.

Sources: Civitai's real-people rules, fal's acceptable use policy, Replicate's acceptable use policy and Black Forest Labs' usage policy, checked October 2026. The practical rule: train an original AI persona or your own face. Anyone else needs written consent, and even then not on Civitai.

Test the checkpoints, then keep one

The last file is not automatically the best one. Run the same three or four prompts, with the same seed, against every saved checkpoint: a neutral portrait, a profile, a full-body shot and an outfit that is not in the dataset. Keep the checkpoint that holds the face and still obeys the prompt. The LoRA training guide walks through that comparison.

A trained file is the start of a persona, not the end. The AI Influencers program covers the build in order, from creating the persona through consistent faces with LoRA training to body consistency with ControlNet and the video lessons after it.

Troubleshooting a Flux LoRA run

SymptomDocumented fix
The LoRA does nothing in your generatorIt was trained on a different Flux architecture. Retrain on the model you generate with, or load the matching base.
FluxGym runs out of memoryPick the lower VRAM preset. The 12G preset switches to Adafactor and split mode and trains only the single blocks. Keep the default 512 resize.
The face is only loosely similarCivitai's Flux docs call this underbaked: raise steps to 1,500 to 2,500 for a character and keep the learning rate between 1e-4 and 3e-4.
Outputs copy the training photosUse an earlier checkpoint first. For the next run, Civitai's Flux 1 docs say to lower the steps and drop the rank to 8 to 12.
Samples burn or break earlyThe learning rate is too high. Civitai says to keep Flux 1 at or below 5e-4 and to drop an overcooked Klein run to 1e-4 to 2e-4.
Civitai rejects the datasetIt failed automated moderation. Replace the flagged images instead of resubmitting the same zip.

If the samples keep repeating one pose or one background, work through the symptom chart in face LoRA overfitting before you change a setting.

Training a Flux LoRA: FAQ

How do I train a Flux LoRA?

Choose the Flux model you will generate with, build a set of 10 to 20 captioned images with an invented trigger word, then run it through one of three routes: FluxGym on your own NVIDIA card, Civitai's on-site trainer, or a hosted trainer on fal or Replicate. Save several checkpoints, test each with the same prompts and keep the one that holds the face while still following new prompts.

Can I train a Flux LoRA for free?

Yes, in two ways. FluxGym is free software that trains FLUX.1 LoRAs on your own 12, 16 or 20 GB NVIDIA card. Civitai's Buzz guide says free Blue Buzz can pay for on-site training, where a default Flux 1 run costs 2,000 Buzz and a Flux 2 Klein 4B run costs 500. New accounts start with 100 Blue Buzz, so you earn the rest first. Checked October 2026.

How much does it cost to train a Flux LoRA?

A default FLUX.1 run is listed at about $1.46 on Replicate and $2 on fal, both at 1,000 steps. Civitai charges 2,000 Buzz for Flux 1 and 500 Buzz for Flux 2 Klein 4B, and its memberships start at $10 for 10,000 Buzz a month. On fal, FLUX.2 [dev] costs $6.40 per 1,000 steps and klein 9B $4.30. Local training costs your GPU time. Prices checked October 2026.

How much VRAM do I need to train a Flux LoRA?

FluxGym has presets for 12, 16 and 20 GB cards and trains FLUX.1 only. Black Forest Labs lists 12 GB of VRAM and 32 GB of system RAM as the minimum for a FLUX.2 klein 4B LoRA, and 22 GB of VRAM with 64 GB of RAM for klein 9B. AI Toolkit's FLUX.1 example config is written for a 24 GB card. With less than 12 GB, use a hosted trainer.

Which Flux model should I train a LoRA on?

The one you will generate with, because a LoRA only loads on its own architecture. FLUX.1 [dev] has the widest trainer support. FLUX.2 [klein] 4B Base is Apache 2.0, which makes it the simplest choice for a persona you earn from. Klein 9B and the [dev] models use Black Forest Labs' non-commercial licences. FLUX 3 has no open weights yet, so it cannot be trained.

How many images and steps does a Flux character LoRA need?

Vendor docs put a face at 10 to 20 images and a full character at 20 to 40. For steps, fal and Replicate default to 1,000, while the AI Toolkit FLUX.1 example and Civitai default to 2,000. Black Forest Labs suggests 800 to 1,200 steps for a klein character LoRA of 10 to 15 images. Save checkpoints through the run and pick by samples, not by the final step.

Can I train a Flux LoRA of a real person?

Only yourself, or someone who gave written consent, and not everywhere. Civitai prohibits any content based on a real person's likeness. fal's acceptable use policy bans using another person's likeness without consent to impersonate them. Black Forest Labs' usage policy, which covers FLUX models and their derivatives, bans unlawful impersonation and abusive or misleading depictions of real people. An original AI persona avoids the problem.

All Access · all four programs · $99/mo

A trained LoRA is one file. A persona is the whole build.

AI Influencers, included in All Access, takes you from creating the persona through LoRA training for consistent faces to ControlNet for body consistency and the video lessons, with the other three programs, live coaching and the private community in one subscription.

Start All Access — $99/mo →30-day money-back guarantee
Free

Plan the run before you pay for it

Work out steps, training time and GPU cost from your own image count, repeats and epochs, and join the free Telegram channel for persona workflows that are working now.

Keep reading