benrugg / AI-Render

Stable Diffusion in Blender
MIT License
1.07k stars 81 forks source link

Feature Request: Integrate with Stable Horde #22

Closed discodiffuse closed 1 year ago

discodiffuse commented 1 year ago

Describe the feature you'd like to see:

ability to use stablehorde api key.

Additional information

No response

benrugg commented 1 year ago

This would be cool. I will look into it at some point.

tijszwinkels commented 1 year ago

You read my mind. :) I'd like to take this one if that's alright.

benrugg commented 1 year ago

@tijszwinkels Yes, go for it! Currently, AI Render just does a regular http call to the API's. As long as Stable Horde supports that, it should be pretty straightforward to add another backend.

tijszwinkels commented 1 year ago

It's basically done! (https://github.com/tijszwinkels/AI-Render/tree/stable_horde_support)

I'll give it one more good look tomorrow and file a MR.

benrugg commented 1 year ago

It's looking great! I appreciate the cleanup around those if statements that can be replaced by utils.get_active_backend().

Thanks for working on this.

tijszwinkels commented 1 year ago

See: https://github.com/benrugg/AI-Render/pull/39

If this is all stable, we could consider having the Stable Horde back-end as default, as that would make the plugin essentially zero-configuration. However, let's get a few flight-hours on it first. :)

benrugg commented 1 year ago

Stable Horde is now available in the latest release! Thank you to @tijszwinkels for making this happen.

Update AI Render in the add-on preferences or get the latest version here: https://github.com/benrugg/AI-Render/releases/tag/v0.6.3