Others HTML How to add stable diffusion local api calls to Twine 2 Harlowe 3?

Throwongawayyyy

New Member
Jun 7, 2024
1
0
I've seen some people do it, like the free cities mod. How do they do it? I presume they use javascript or something? I'm not really sure how to do this, I'm pretty good at Twine but not any other coding language, though I could probably learn it eventually. I have stable diffusion set up locally - and i add the --api in the console so it can receive requests. Then what? Chatgpt doesn't seem to help, unsurprisingly. Anyone tried this before? This is a really good idea, as I want to make a sandbox life-sim with random characters - random parameters like age, body type, hair and eye colors, etc. And for each image I just put the prompt in and replace the variables and boom, infinite characters.