Skip to content

Releases: Lebenoa/webui-api

Fixed: Some options issues

16 Apr 07:24

Choose a tag to compare

FIX

expected comma after object element cause by wrong type ( yes int and float64 so no more int, you may float(64) to the sky now )

Add

LDSRSteps                          float64  
LDSRCache                          bool 
SWINTile                           float64 
SWINTileOverlap                    float64 

to options

Add: `AlwaysOnScripts` & `DecodeAfterResult` & etc

16 Apr 06:23

Choose a tag to compare

Add

  • AlwaysOnScripts field:
    map[string]any

    Scripts/Extension like sd-webui-additional-networks

  • DecodeAfterResult field:
    bool

    Auto decode images after API resp. Sacrificing performance

  • BuildBatchFromDir func to package extra
  • scripts package. Contains all std scripts name in Const
  • UniPC const to sampler package
  • Comment/Description to Base64FromFiles func

Change

  • Boolean value with true as default value will now reverse
    meaning: will change from false to true and true to false
    Checkout a common one DoNotSendImages
    type Example struct {
        DoNotSendImages bool `json:"send_images"`
    }
    
    func (e *Example) correntParams() {
        e.DoNotSendImages = !e.DoNotSendImages
    }
    
    func (a *api) SendExample(e *Example) {
        e.correctParams()
    
        payload, err := json.Marshal(e)
        ...
    }
  • Comment/Description of Base64FromFileIgnore func

Remove

  • All CamelCase constant. ALL_CAPS still there

v0.4.1

12 Mar 16:36

Choose a tag to compare

Latest field

Update txt2img, img2img, options field to match the current (as of Mar 12th 2023) version of SD Web UI API

Remove

  • UseDefault field of Config struct. it seems redundant since Default field can do the same

Change

Previously, extra single and extra batch can decode response image but their method is different. So I make it the same.
Both ExtraSingleImage and ExtraBatchImages struct now have DecodeAfterResult which will Decode Images after received response from API

Will make it to txt2img and img2img too, if I'm not lazy that is

Full Changelog: v0.4.0...v0.4.1

Now Support: Options & Interrogate API & etc..

01 Jan 05:49

Choose a tag to compare

New API Support

  • Basic Authentication
  • Options API
  • Interrogate API

QoL (?)

  • Prevent an error when Config.BaseURL has / as suffix.
  • No More field starts with Default. Now in Default struct.
  • img2img helper package now exported both camelCase and ALL_CAPS style.
  • txt2img can now be upscale via txt2ImageRespond.Upscale() method.

Full Changelog: v0.3.0...v0.4.0

Now Support: Extra Batch API

21 Dec 18:27

Choose a tag to compare

Pre-release

New API Support

  • Extra Batch API

QoL (?)

  • Add comment/description on IGNORE function
    This may be helpful when don't want your app to crash when file doesn't exists.

Full Changelog: v0.2.0...v0.3.0

Now Support: PNG Info & Extra Single

20 Dec 11:56
8f1ae52

Choose a tag to compare

Pre-release

New API Support

  • PNG Info API
  • Extra Single API

QoL (?)

  • Helper package (only webui-api/extra as of writing this note) will now export both
    CamelCase and ALL_CAPS styles as well as struct based

    For example, extra.SCALE_TO, extra.ScaleTo, extra.ResizeMode.ScaleTo and extra.ResizeMode.SCALE_TO are the same thing

Now Support: Img2Img & Progress & Available Models API

16 Dec 12:33

Choose a tag to compare

New API Support:

  • Img2img API
  • Progress API
  • Available Models API

QoL (?)

  • Comment/Description on Txt2Img struct
  • Comment/Description on Img2Img struct
  • Helper for Img2Img is now struct based

First release

15 Dec 15:21

Choose a tag to compare

First release Pre-release
Pre-release

AUTOMATIC1111's Webui API

High level API written in GO.

Currently Support (And also roadmap)

  • Auth Related
  • Txt2Img
  • Img2Img
  • Extras (Single)
  • Extras (Batch)
  • PNG Info
  • Progress
  • Interrogate
  • Interrupt
  • Skip
  • Options
  • Get Available Model(s)