mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
502 stars 131 forks source link

Can it be used for large projects #326

Open Foixa opened 1 month ago

Foixa commented 1 month ago

Hello, first of all, thank you for this repo.

Is this API suitable for a wide range of users? Or is it just for hobby work?

mrhan1993 commented 1 month ago

If it is to be provided to users as a service, it may be a little crude. In addition, it is important that Fooocus does not support concurrency

davefojtik commented 1 month ago

If you're asking if it's "production ready" for bigger projects then yes. We made an implementation for RunPod serverless (which also solves the concurrency since it's a cluster of workers) and there are paid cloud image generation services and discord servers using it without problem. Although as said, you want to connect it to your own app with UI or streamlined commands. You probably don't want non-dev users to build JSON requests

feeddaidai commented 1 week ago

You mean you can only handle requests one by one?