mrhan1993 / Fooocus-API

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

Request: Allow for custom filenames. #110

Closed xvertile closed 8 months ago

xvertile commented 8 months ago

{ "prompt": "", "negative_prompt": "", "file_name": "something.png". "style_selections": [ "Fooocus V2", "Fooocus Enhance", "Fooocus Sharp" ], } this would be great to have for people that are running this in production to offer to clients.

mrhan1993 commented 8 months ago

I don't think this is necessary. If you want to provide services to users, you can solve the file name problem through the front end. If you only provide API, then developers can easily customize the file name after receiving the return value.

saendu commented 6 months ago

I think it is. If you want to automate something e.g. creating 10k pictures. I would like to directly give them a meaningful name based on the prompt.