Skip to content

Adding support for other WebUIs. #2

@deepratna-awale

Description

@deepratna-awale

If you decide to use a different WebUI it will expect different JSON data compared to what I am sending to the A1111 SD API. Also the API call paths might be different than what A1111 uses.

Any help in adding support for other SD API Clients is seeked and appreciated.

You must use a prebuilt Python API client for your WebUI or create one. This is a big enough task in itself, so you'll have to do your own research. Refer to My A1111 API Client in no way is this coded well, but gets the job done.

To create a payload json, use the following technique if applicable:

  • Install API-Payload-Display if you can on your webui. Restart the whole webui by closing and reopening terminal running the webui.
  • Goto img2img tab, drop any image.
  • Goto Adetailer drop down, tick both checkboxes (to activate after detailer and skip img2img)
  • Set the Inpainting parameters as shown in the image below:
  • inpaint settings
  • Click on Generate
  • Got API Payload dropdown below After Detailer and copy it (there should be a copy button).
  • Paste this copied data into Autoexpress/autoexpress/resources/payload.json
  • Try Generating Again.

Alternatively, if the extension cannot be installed for your webui get the JSON from WebUI API documentation. You'll need payloads for after detailer and img2img

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions