Discover and explore top open-source AI tools and projects—updated daily.
SpenserCaiGo SDK for Stable Diffusion WebUI API
Top 80.2% on SourcePulse
This Go SDK provides an object-oriented interface to the AUTOMATIC1111 Stable Diffusion WebUI API, simplifying integration for developers. It offers two primary methods for interaction: intersvc for a highly encapsulated experience and go-swagger for broader API coverage with slightly more complexity.
How It Works
The SDK leverages Go's type system to abstract away the complexities of direct HTTP requests and JSON parsing. The intersvc approach uses custom Go structs that mirror API functionalities, allowing for more idiomatic Go code. The go-swagger method generates client code from OpenAPI specifications, ensuring comprehensive coverage of the WebUI's API endpoints.
Quick Start & Requirements
go get github.com/SpenserCai/sd-webui-go.127.0.0.1:7860).Highlighted Details
intersvc (easier, less coverage) and go-swagger (more complex, wider coverage).text2img and deoldify using both methods.intersvc due to missing API documentation.Maintenance & Community
dev branch.Licensing & Compatibility
Limitations & Caveats
intersvc method has incomplete API coverage and requires manual definition of response models for unsupported endpoints.go-swagger method offers broader coverage but is noted as being "slightly more complex."1 year ago
Inactive
PullRequestInc
njerschow
googleapis