Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: add a way to show the payload used for the current web request #9120

Closed
1 task done
dellis23 opened this issue Mar 29, 2023 · 4 comments
Closed
1 task done
Labels
enhancement New feature or request

Comments

@dellis23
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

It would be nice to be able to see exactly what payload I could use to recreate a request made with the web UI using the other APIs (e.g. curl or Python).

Proposed workflow

  1. Go to the web ui
  2. Create a txt2img, img2img, or other image generation request
    3a. Either run the request by clicking "generate" and then click a small "show API payload" to show the recently used payload
    3b. Or: show a button that exposes what payload would be used if the user were to click the "generate" button

Additional information

From looking at the network request logs, I'm guessing this isn't super straightforward. It doesn't seem like the webui uses the same API as the API that's exposed to users. So perhaps something would need to be done about that.

@space-nuko
Copy link
Contributor

space-nuko commented Mar 29, 2023

Just an FYI, Gradio is working on a Python client that's supposed to allow you to use any Gradio app as an API

gradio-app/gradio#3300

Though, I don't know if webui can be supported through this feature yet. Nor is there a way to convert from frontend requests to API fetch statements.

@speaknowpotato
Copy link

any update on this feature request? this feature is really helpful!

@huchenlei
Copy link
Contributor

Feature implemented as an extension https://github.com/huchenlei/sd-webui-api-payload-display.
You can go and try it out.
@speaknowpotato

@Chubbly
Copy link

Chubbly commented Jul 4, 2023

Feature implemented as an extension https://github.com/huchenlei/sd-webui-api-payload-display. You can go and try it out. @speaknowpotato

Does this help with this feature idea @huchenlei?

Mikubill/sd-webui-controlnet#1314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants