mix1009 / sdwebuiapi

Python API client for AUTOMATIC1111/stable-diffusion-webui
MIT License
1.35k stars 181 forks source link

Implementation of Promptgen API #154

Closed davidmartinrius closed 6 months ago

davidmartinrius commented 6 months ago

Hi everyone!

I created a 2 new endpoints to generate prompts from the API.

This new development lets you create a long prompt from a small text.

It uses a fork of the official Promptgen repo The fork is this one

I wrote the instructions to install this extension and make it work with webuiapi. Everything is documented in the README.md

Notice:

Take into account that I created a new variable unofficial_baseurl = f"http://{host}:{port}"

This is needed for all extensions that are not native from automatic1111. And this is common. I want to integrate depthmapscript api as well, and it will happen the same, it is not under sdapi/v1 and it won't.

Please, @mix1009 could you review it?

David Martin Rius

mix1009 commented 6 months ago

Thank you for the PR. It is working well and very useful 👍

davidmartinrius commented 6 months ago

Thanks for merging it! You did it so quickly, thanks!! :smile: