Skip to content

FLUX.2 Klein 9B model license

Accepting licenses

Option 1: Before starting the template

  • Click Edit Template and expand the Environment Variables section.
  • Add your token/secret to HF_TOKEN.
  • Save the template.
  • Click Deploy On-Demand.
  • The template will download the 9B model.

Option 2: When the pod is running

Set your Hugging Face token

  • Open terminal from the console or code-server (see tutorial)
  • Fill in your Hugging Face token (HF_TOKEN).
export HF_TOKEN=Your-hf-token-here

or

hf auth login
  • Press enter.
  • Copy and paste one or both model downloads in the terminal.

Distilled model

hf download black-forest-labs/FLUX.2-klein-9B flux-2-klein-9b.safetensors \
--local-dir /workspace/ComfyUI/models/diffusion_models/
  • Press enter.

Base model

hf download black-forest-labs/FLUX.2-klein-base-9B flux-2-klein-base-9b.safetensors \
--local-dir /workspace/ComfyUI/models/diffusion_models/
  • Press enter.
  • Wait until the downloads finish.