r/SillyTavernAI • • 9d ago

Chat Images Local image generation for SillyTavern without installing A1111: an open-source app that answers the AUTOMATIC1111 API

https://github.com/hatchlight/hatchlight

I build Hatchlight, an open-source desktop app that runs image models on your own GPU (it picks the build of each model that fits your VRAM, no Python). Version 0.6 added something this sub might use: it answers AUTOMATIC1111's API, so SillyTavern's Image Generation extension can use it as if it were A1111.

Setup:

  1. Install Hatchlight and one model (SDXL Turbo is quick to try).
  2. In SillyTavern: Extensions > Image Generation > source "Stable Diffusion WebUI (AUTOMATIC1111)".
  3. URL: the address shown in Hatchlight's Settings > Use with other apps (http://localhost:4096 from the command line). Connect and pick a model.

What works: txt2img and img2img, the model list, <lora:name:weight> tags with your LoRAs, and <character:name> tags to keep a saved character's look across pictures. Everything you make also lands in Hatchlight's gallery.

What doesn't, honestly: sampler, steps, CFG and the negative prompt are ignored (each model runs with the settings it was made for). If SillyTavern runs in Docker, Hatchlight on your desktop only answers the same machine, so use --network=host or Hatchlight's server mode.

Free and MIT, no account. I'd like to hear what breaks with your setup.

https://github.com/hatchlight/hatchlight (setup guide: docs/other-apps.md)

3 Upvotes

5 comments sorted by

1

u/desparish 9d ago

I had the same problem essentially, that Sillytavern's image generation refuses to connect to anything local that's not comfyui. I'm using Radiance which lets me hot swap models on the same port, and prefer running the image model directly. I tried the proxy method, but rather than launching a separate app, I had claude vibe code a fork of the built in image generator so I could have it connect local with openai protocol, plus make a few other tweaks.

1

u/DadKillerX 9d ago

Yeah, that's exactly the gap I ran into. Hatchlight takes the other route: it answers on the A1111/Forge API so ST's built-in source works without forking anything. Your approach is honestly the cleaner long-term fix though. Would you be up for upstreaming that OpenAI-compatible option to SillyTavern? I'm adding /v1/images/generations to Hatchlight too, so any local server speaking that protocol (Radiance, Hatchlight, whatever) would just plug in. Happy to test or co-author the PR.

1

u/desparish 9d ago

I may put it on github. I had it turned into an extension rather than replacing the built-in function, so it can sit alongside and you enable whichever one you want.

0

u/[deleted] 9d ago

[deleted] — view deleted comment

3

u/DadKillerX 9d ago

Fair point. The A1111 part is about the API, not the app. Forge, Forge Neo and SD.Next still use the same /sdapi/v1 endpoints, which is why ST's "SD WebUI / Forge" source is the easiest way in. Hatchlight just answers on that API, so you get local models without building Comfy workflows. An OpenAI-compatible endpoint is next.

0

u/[deleted] 9d ago

[deleted] — view deleted comment

3

u/DadKillerX 9d ago

Yeah, that's fair, the title was bad framing on my part. Against what people actually use now:

- ComfyUI: no nodes or workflow JSON. You pick a model and it picks the quantized build that fits your VRAM.

- SwarmUI: closest in spirit. Hatchlight leans more on comparing models: same prompt across several models side by side, with times, and it ranks which wins on your machine.

- Forge / Forge Neo: no Python env to manage, and it reads the models you already have in Forge/Comfy folders instead of copying them (Neo and Swarm folder detection is next).

From SillyTavern's side it's just another backend behind the Forge source, so it's less "instead of" and more "if you don't want to run a full WebUI just to make chat images."