Image-to-Image
Diffusers
Safetensors
English
image-generation
image-editing
flux
flux-3
black-forest-labs
Instructions to use Runware/flux-3-image-klein-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Runware/flux-3-image-klein-base with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Runware/flux-3-image-klein-base", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download modular_model_index.json from Runware/flux-3-image-klein-base: direct link, hf CLI and curl.
- Browser
- Download file 2.12 kB
-
https://huggingface.co/Runware/flux-3-image-klein-base/resolve/main/modular_model_index.json
- Command line
-
hf download hf://Runware/flux-3-image-klein-base/modular_model_index.json
-
curl -L -o modular_model_index.json https://huggingface.co/Runware/flux-3-image-klein-base/resolve/main/modular_model_index.json
2.12 kB
| { | |
| "_blocks_class_name": "Flux3AutoBlocks", | |
| "_class_name": "Flux3ModularPipeline", | |
| "_diffusers_version": "0.41.0.dev0", | |
| "text_encoder": [ | |
| "transformers", | |
| "Qwen3VLForConditionalGeneration", | |
| { | |
| "pretrained_model_name_or_path": "black-forest-labs/flux-3-image-klein-base", | |
| "revision": null, | |
| "subfolder": "text_encoder", | |
| "type_hint": [ | |
| "transformers", | |
| "Qwen3VLForConditionalGeneration" | |
| ], | |
| "variant": null | |
| } | |
| ], | |
| "tokenizer": [ | |
| "transformers", | |
| "Qwen3VLProcessor", | |
| { | |
| "pretrained_model_name_or_path": "black-forest-labs/flux-3-image-klein-base", | |
| "revision": null, | |
| "subfolder": "text_encoder", | |
| "type_hint": [ | |
| "transformers", | |
| "Qwen3VLProcessor" | |
| ], | |
| "variant": null | |
| } | |
| ], | |
| "transformer": [ | |
| "diffusers", | |
| "Flux3Transformer2DModel", | |
| { | |
| "pretrained_model_name_or_path": "black-forest-labs/flux-3-image-klein-base", | |
| "revision": null, | |
| "subfolder": "transformer", | |
| "type_hint": [ | |
| "diffusers", | |
| "Flux3Transformer2DModel" | |
| ], | |
| "variant": null | |
| } | |
| ], | |
| "vae": [ | |
| "diffusers", | |
| "AutoencoderKLFlux2", | |
| { | |
| "pretrained_model_name_or_path": "black-forest-labs/flux-3-image-klein-base", | |
| "revision": null, | |
| "subfolder": "vae", | |
| "type_hint": [ | |
| "diffusers", | |
| "AutoencoderKLFlux2" | |
| ], | |
| "variant": null | |
| } | |
| ], | |
| "prompt_upsampler": [ | |
| "transformers", | |
| "Qwen3_5ForConditionalGeneration", | |
| { | |
| "pretrained_model_name_or_path": "black-forest-labs/flux-3-image-klein-pup", | |
| "revision": null, | |
| "subfolder": "", | |
| "type_hint": [ | |
| "transformers", | |
| "Qwen3_5ForConditionalGeneration" | |
| ], | |
| "variant": null | |
| } | |
| ], | |
| "prompt_upsampler_processor": [ | |
| "transformers", | |
| "AutoProcessor", | |
| { | |
| "pretrained_model_name_or_path": "black-forest-labs/flux-3-image-klein-pup", | |
| "revision": null, | |
| "subfolder": "", | |
| "type_hint": [ | |
| "transformers", | |
| "AutoProcessor" | |
| ], | |
| "variant": null | |
| } | |
| ] | |
| } | |