feat: InvokeAI Image Generation Support #489

Closed
opened 2025-11-11 14:22:49 -06:00 by GiteaMirror · 15 comments
Owner

Originally created by @alfi4000 on GitHub (Mar 17, 2024).

Hi i personally like invokeai more then A1111 because it is healthier handeling gpu resource for consumer hardware is there any plan to support their api for image generation?

Here there repo:
https://github.com/invoke-ai/InvokeAI

It supports very small GPUs too not like A1111 when you get in trouble because of not enough vram!

Originally created by @alfi4000 on GitHub (Mar 17, 2024). Hi i personally like invokeai more then A1111 because it is healthier handeling gpu resource for consumer hardware is there any plan to support their api for image generation? Here there repo: https://github.com/invoke-ai/InvokeAI It supports very small GPUs too not like A1111 when you get in trouble because of not enough vram!
Author
Owner

@justinh-rahb commented on GitHub (Mar 17, 2024):

Unclear whether they even have an API. Did you find any documentation that I've been unable to find so far?

https://github.com/invoke-ai/InvokeAI/discussions/2600

@justinh-rahb commented on GitHub (Mar 17, 2024): Unclear whether they even _have_ an API. Did you find any documentation that I've been unable to find so far? https://github.com/invoke-ai/InvokeAI/discussions/2600
Author
Owner

@alfi4000 commented on GitHub (Mar 17, 2024):

There is api when running invokeai just behind access ip adress or localhost and port /docs! ill show I screen recording!

@alfi4000 commented on GitHub (Mar 17, 2024): There is api when running invokeai just behind access ip adress or localhost and port /docs! ill show I screen recording!
Author
Owner

@justinh-rahb commented on GitHub (Mar 17, 2024):

There is api when running invokeai just behind access ip adress or localhost and port /doc! ill show I screen recording!

As noted here: https://github.com/invoke-ai/InvokeAI/discussions/2600#discussioncomment-7573198

This doesn't seem to cover generation, although that was some months ago. If the current status is changed, let us know.

@justinh-rahb commented on GitHub (Mar 17, 2024): > There is api when running invokeai just behind access ip adress or localhost and port /doc! ill show I screen recording! As noted here: https://github.com/invoke-ai/InvokeAI/discussions/2600#discussioncomment-7573198 This doesn't seem to cover generation, although that was some months ago. If the current status is changed, let us know.
Author
Owner

@alfi4000 commented on GitHub (Mar 17, 2024):

Oh ok i will check that! And ask Invokeai community because they were talking about It will happen soon and I will check on my instance the api and reach back!

@alfi4000 commented on GitHub (Mar 17, 2024): Oh ok i will check that! And ask Invokeai community because they were talking about It will happen soon and I will check on my instance the api and reach back!
Author
Owner

@alfi4000 commented on GitHub (Mar 17, 2024):

Someone Figured out how to do it over endpoint: https://github.com/invoke-ai/InvokeAI/discussions/2600#discussioncomment-8816493

@alfi4000 commented on GitHub (Mar 17, 2024): Someone Figured out how to do it over endpoint: https://github.com/invoke-ai/InvokeAI/discussions/2600#discussioncomment-8816493
Author
Owner

@alfi4000 commented on GitHub (Mar 17, 2024):

It appears to me to be possible this user explained it a bit could you may take a look at it. :) for me it is like a different language I am not a dev or so just a consumer!

@alfi4000 commented on GitHub (Mar 17, 2024): It appears to me to be possible this user explained it a bit could you may take a look at it. :) for me it is like a different language I am not a dev or so just a consumer!
Author
Owner

@alfi4000 commented on GitHub (Mar 17, 2024):

The Invokeai contributors haven’t answerd me yet maybe the next days!

@alfi4000 commented on GitHub (Mar 17, 2024): The [Invokeai](https://github.com/invoke-ai/InvokeAI/issues/5978) contributors haven’t answerd me yet maybe the next days!
Author
Owner

@psychedelicious commented on GitHub (Mar 18, 2024):

Invoke has had a REST API for quite a while. A maintainer provided the URL to the autodoc for it about a year ago. I've just replied to the linked discussion again: https://github.com/invoke-ai/InvokeAI/discussions/2600#discussioncomment-8821697

@psychedelicious commented on GitHub (Mar 18, 2024): Invoke has had a REST API for quite a while. A maintainer provided the URL to the autodoc for it about a year ago. I've just replied to the linked discussion again: https://github.com/invoke-ai/InvokeAI/discussions/2600#discussioncomment-8821697
Author
Owner

@justinh-rahb commented on GitHub (Mar 18, 2024):

Ya... none of that new discussion is giving me any additional confidence that this is something we could easily add, looks like it would indeed be a significant amount of work and possibly require reverse-engineering the client->backend communications. The spec is complete, but that's just a map... it provides no directions. Not saying this is impossible or never gonna happen, just laying out the reality that it's not simple.

@justinh-rahb commented on GitHub (Mar 18, 2024): Ya... none of that new discussion is giving me any additional confidence that this is something we could _easily_ add, looks like it would indeed be a significant amount of work and possibly require reverse-engineering the client->backend communications. The spec is complete, but that's just a map... it provides no directions. Not saying this is impossible or never gonna happen, just laying out the reality that it's not **simple**.
Author
Owner

@psychedelicious commented on GitHub (Mar 18, 2024):

Sorry, to be clear, I am also a maintainer for Invoke.

Indeed, integrating it into this project would be rather complicated. Besides constructing a valid graph, you'd need a socket.io client to listen for events. You'd also probably want to provide some queue and model install interaction capabilities.

While we have a REST API, it's built for the application and not particularly well suited to run as a headless server for an arbitrary frontend. It certainly can be done but would be a substantial effort.

@psychedelicious commented on GitHub (Mar 18, 2024): Sorry, to be clear, I am also a maintainer for Invoke. Indeed, integrating it into this project would be rather complicated. Besides constructing a valid graph, you'd need a socket.io client to listen for events. You'd also probably want to provide some queue and model install interaction capabilities. While we have a REST API, it's built for the application and not particularly well suited to run as a headless server for an arbitrary frontend. It certainly can be done but would be a substantial effort.
Author
Owner

@justinh-rahb commented on GitHub (Mar 18, 2024):

Totally get it, same for us.. our API exists, but only to serve the needs of our frontend. If someone finds a novel use for that, cool, but that wasn't in our plans 😜

@justinh-rahb commented on GitHub (Mar 18, 2024): Totally get it, same for us.. our API exists, but only to serve the needs of our frontend. If someone finds a novel use for that, cool, but that wasn't in our plans 😜
Author
Owner

@alfi4000 commented on GitHub (Mar 18, 2024):

Oh so it will most likely not happen yet!?

@alfi4000 commented on GitHub (Mar 18, 2024): Oh so it will most likely not happen yet!?
Author
Owner

@justinh-rahb commented on GitHub (Mar 18, 2024):

Unless an unexpected pull request emerges, it appears unlikely that our current contributors will undertake this project, given our focus on numerous other unimplemented features. We already support two image generation backends, including a local one that utilizes the same models as Invoke. Therefore, the justification for developing extensive new code to achieve the same outcome seems limited.

Don't get me wrong, Invoke is a great project you should definitely use, but the thing that makes it great is their interface and we just couldn't hope to replicate even a portion of that within the scope of the type of UI we're developing right now. @psychedelicious thanks for weighing in here, and thanks also for your contributions to the project which I have happily used myself.

@justinh-rahb commented on GitHub (Mar 18, 2024): Unless an unexpected pull request emerges, it appears unlikely that our current contributors will undertake this project, given our focus on numerous other unimplemented features. We already support two image generation backends, including a local one that utilizes the same models as Invoke. Therefore, the justification for developing extensive new code to achieve the same outcome seems limited. Don't get me wrong, Invoke is a great project you should definitely use, but the thing that makes it great is their interface and we just couldn't hope to replicate even a portion of that within the scope of the type of UI we're developing right now. @psychedelicious thanks for weighing in here, and thanks also for your contributions to the project which I have happily used myself.
Author
Owner

@alfi4000 commented on GitHub (Mar 18, 2024):

Ok got it

@alfi4000 commented on GitHub (Mar 18, 2024): Ok got it
Author
Owner

@linux-universe commented on GitHub (Nov 23, 2024):

Would love to see this because of the great Docker support from both sides

@linux-universe commented on GitHub (Nov 23, 2024): Would love to see this because of the great Docker support from both sides
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#489