unitycoder / UnityInvokeAI

simple Unity editor UI for calling InvokeAI (stable diffusion) web interface (locally)
MIT License
96 stars 9 forks source link

add support for latest version (invokeai 2.1) #2

Open unitycoder opened 1 year ago

unitycoder commented 1 year ago

todo

unitycoder commented 1 year ago

New web api seems quite different: https://github.com/invoke-ai/InvokeAI/issues/866#issuecomment-1276859788 pr for legacy POST request https://github.com/invoke-ai/InvokeAI/pull/1070

psychedelicious commented 1 year ago

Hi @unitycoder ,

We (InvokeAI) are currently on an interim web API - mostly socket.io - and will be moving do a more traditional API as the next major effort on the web side. The upcoming API is mostly HTTP with socket.io for signaling.

Are you able to use socket.io for this Unity plugin? If not, what about plain websockets?

unitycoder commented 1 year ago

@psychedelicious oh nice! yeah both are available, so that will work.

some examples: https://github.com/endel/NativeWebSocket https://github.com/itisnajim/SocketIOUnity

unitycoder commented 7 months ago

found some info here about socket api? https://gist.github.com/ausbitbank/925aed0ebd5093353f76f6a58c1def5d

psychedelicious commented 7 months ago

That's ancient and no longer correct for the latest release. The socket api is not documented you'll need to look at the source code if you want to use it.