397 Downloads Updated 2 weeks ago
ollama run mannix/flux2-klein:4b
Updated 2 weeks ago
2 weeks ago
e9b2acf1114c · 7.0GB
4B diffusion model (Q8_0 GGUF) · Qwen3-4B text encoder · FLUX.2 VAE · 1024×1024 in four steps · OpenAI /v1/images routes
Runs on xOllama, not on stock ollama. Stock ollama pulls this model but cannot show or run it: it carries only media engines. xOllama serves it through an opencoti engine with media support (dev build
2610022033001/b105 or later, set withXOLLAMA_ENGINE_PATH). The engine pinned by the current xOllama release has no media engines and refuses the model at load, naming what it lacks.
FLUX.2 klein generates and edits images in four steps, in the least memory of the image models here. Edits are reference edits: the input images steer the result instead of being noised over (the engine picks this for FLUX.2 by itself).
xollama pull mannix/flux2-klein:4b
curl http://localhost:22434/v1/images/generations \
-d '{"model": "mannix/flux2-klein:4b", "prompt": "a lighthouse at dusk, oil painting"}'
An edit is multipart, with one or more image[]:
curl http://localhost:22434/v1/images/edits \
-F model=mannix/flux2-klein:4b -F prompt="make it winter" -F "image[]=@photo.png"
Any OpenAI client works: the reply is b64_json, or a data: URL with "response_format": "url". Besides OpenAI’s fields the engine takes steps, cfg_scale, sampler, scheduler, seed and negative_prompt.
A client that sends only a prompt gets the template’s settings: 1024×1024, 4 steps, cfg 1, euler, png. An edit without a size comes back at its first image’s size (scaled to at most 1024×1024’s pixel count, in multiples of 16).
| RTX 3090 | |
|---|---|
| 1024×1024 generation | 16 s (opencoti b97); 7.6 s warm (b105) |
| reference edit, 1024×1024 | 41.2 s (b105) |
| Tag | Weights | Size |
|---|---|---|
4b |
flux-2-klein-4b-Q8_0.gguf + Qwen3-4B Q4_0 + FLUX.2 VAE |
7.0 GB |
GGUF: leejet/FLUX.2-klein-4B-GGUF · VAE: Comfy-Org/vae-text-encorder-for-flux-klein-4b · text encoder: unsloth/Qwen3-4B-GGUF · License: Apache-2.0. Docs: xOllama media.