comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
47.98k stars 5.05k forks source link

Add integration with AI Horde #659

Open db0 opened 1 year ago

db0 commented 1 year ago

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

tazlin commented 1 year ago

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.

db0 commented 1 year ago

PS: Full Python implementation in the official CLI clients.

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

SorraTheOrc commented 1 year ago

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

db0 commented 1 year ago

No, this converts comfyUI to a python library

xuede commented 11 months ago

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!

db0 commented 11 months ago

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

dadadies commented 6 months ago

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.

db0 commented 6 months ago

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

dadadies commented 6 months ago

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.

db0 commented 6 months ago

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

dadadies commented 6 months ago

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.

robinjhuang commented 1 month ago

Can this be a custom node?