ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Add integration with AI Horde

Open db0 opened this issue 2 years ago • 12 comments

And now to go full circle: Please add an integration with the AI Horde, for your users without access to a powerful enough GPU.

The AI Horde provides a free asynchronous REST API you can integrate with where you can send the payload and receive one or more SD images back. You can also use it to integrate with LLMs or even just simple post-processors like upscalers and face-fixers.

Full API documentation: https://aihorde.net/api

db0 avatar May 15 '23 13:05 db0

I would like to highlight the existence of the swagger doc, https://stablehorde.net/api/swagger.json, which may assist any would-be integrators in generating an API client of some variety, automatically or otherwise.

tazlin avatar May 15 '23 13:05 tazlin

PS: Full Python implementation in the official CLI clients.

Hmm, I really need to make a python SDK...

db0 avatar May 15 '23 13:05 db0

Is this what is needed? https://github.com/jug-dev/hordelib

SorraTheOrc avatar Jun 21 '23 04:06 SorraTheOrc

No, this converts comfyUI to a python library

db0 avatar Jun 21 '23 08:06 db0

Hmm, I really need to make a python SDK...

You really do! Your project is fantastic, db0.

I'm really passionate about both projects.

I love ComfyUI because well, once you go Comfy. The power and modularity are so impressive and a joy to use.

I love AI Horde because I can use my (modest) privilege to donate my GPU power to people who couldn't otherwise have access. (I run a worker quite a bit, MerpleHorde.)

I've had times in life where I'd never be able to afford to get in on GenAI.

If this AI explosion happened when I was in my early 20s, I wouldn't have been able to afford to get involved, to be creative, to feel included.

ComfyUI is peerless. AI Horde is peerless.

Let all the people have the all the best!

xuede avatar Sep 18 '23 18:09 xuede

We're actually working on that currently: https://github.com/Haidra-Org/horde-sdk

db0 avatar Sep 18 '23 20:09 db0

We're actually working on that currently: https://github.com/Haidra-Org/horde-sdk

It would be crazy good if comfyUI added AI horde to comfyUI by default... Because for whatever reason I can't get AI horde to work with comfyUI. Is that even a possibility because iv tried it a few times and it never works. You seem to be the creator of AI horde? Is the AI horde supposed to work with comfyUI? I assume its the hordelib but that doesn't work.

dadadies avatar Feb 03 '24 05:02 dadadies

ComfyUI would need to use new nodes to integrate with the AI Horde. There's no current way to use the AI horde with it. Ergo this issue

db0 avatar Feb 03 '24 11:02 db0

ComfyUI would need to use new nodes to integrate with the AI Horde. There's no current way to use the AI horde with it. Ergo this issue

Thats unfortunate. But I appreciate the info. Ive tried using your client, Lucid-Creations, multiple times as a way to access the ai horde, but it never works. Is there another way besides automatic1111 which i cannot get to work anymore. It would be nice if Lucid-Creations actually worked then that would do it. Im going try Lucid-Creations again as there seems to be a new version.

dadadies avatar Feb 04 '24 00:02 dadadies

There's so many ways. Easiest is artbot. But check the AI Horde frontpage for many more

db0 avatar Feb 04 '24 00:02 db0

Thank you i did come across that a while back. It worked well from what i remember.

This seems to work faster the moment. But the controlnet section doesnt seem to allow input image so controlnet doesnt work. https://artificial-art.eu/

Thank you for providing the AI horde for all.

dadadies avatar Feb 04 '24 21:02 dadadies

Can this be a custom node?

robinjhuang avatar Jul 03 '24 22:07 robinjhuang