Skip to content

Conversation

@mudler
Copy link
Owner

@mudler mudler commented Jul 30, 2025

Description

Testing with:

curl http://localhost:8080/v1/images/generations -H "Content-Type: application/json" -d '{
  "model": "flux.1-kontext-dev",
  "prompt": "change 'flux.cpp' to 'kontext.cpp'",
  "size": "256x256",
  "ref_images": [
  	"https://raw.githubusercontent.com/leejet/stable-diffusion.cpp/master/assets/flux/flux1-dev-q8_0.png"
  ]
}'
b64567298114 (1) b641424088517

Install with:

local-ai run flux.1-kontext-dev

Otherwise to install manually, place the model downloaded in the model folder, use a config similar to:

backend: stablediffusion-ggml
cfg_scale: 1
name: flux.1-kontext-dev
options:
- diffusion_model
- clip_l_path:clip_l.safetensors
- t5xxl_path:t5xxl_fp16.safetensors
- vae_path:ae.safetensors
- sampler:euler
parameters:
  model: flux1-kontext-dev-Q8_0.gguf
step: 25

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@netlify
Copy link

netlify bot commented Jul 30, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit e421cac
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/688a83785a74c700071a83ab
😎 Deploy Preview https://deploy-preview-5935--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler changed the title feat(stablediffusion-ggml): add support to ref images feat(stablediffusion-ggml): add support to ref images (flux Kontext) Jul 30, 2025
Signed-off-by: Ettore Di Giacinto <[email protected]>
@mudler mudler marked this pull request as ready for review July 30, 2025 20:42
@mudler mudler merged commit 3d22bfc into master Jul 30, 2025
24 of 25 checks passed
@mudler mudler deleted the feat/flux-kontext branch July 30, 2025 20:42
@mudler mudler added enhancement New feature or request and removed area/ai-model labels Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants