{"id":26560693,"url":"https://github.com/robothy/sdwebui-java-sdk","last_synced_at":"2026-03-08T23:34:18.185Z","repository":{"id":199643167,"uuid":"703078986","full_name":"Robothy/sdwebui-java-sdk","owner":"Robothy","description":"Java SDK for stable-diffusion-webui","archived":false,"fork":false,"pushed_at":"2024-06-14T03:00:39.000Z","size":800,"stargazers_count":33,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T02:37:08.978Z","etag":null,"topics":["aigc","image-to-image","java","stable-diffusion","stable-diffusion-api","stable-diffusion-java","stable-diffusion-webui","text-to-image"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Robothy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-10T14:55:42.000Z","updated_at":"2025-06-17T05:41:42.000Z","dependencies_parsed_at":"2024-05-04T15:25:51.899Z","dependency_job_id":"3b338dba-9e52-40ab-8d73-d24b334d8e76","html_url":"https://github.com/Robothy/sdwebui-java-sdk","commit_stats":null,"previous_names":["robothy/sdwebui-java-sdk"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Robothy/sdwebui-java-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robothy%2Fsdwebui-java-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robothy%2Fsdwebui-java-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robothy%2Fsdwebui-java-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robothy%2Fsdwebui-java-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Robothy","download_url":"https://codeload.github.com/Robothy/sdwebui-java-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robothy%2Fsdwebui-java-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30277033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aigc","image-to-image","java","stable-diffusion","stable-diffusion-api","stable-diffusion-java","stable-diffusion-webui","text-to-image"],"created_at":"2025-03-22T13:19:50.009Z","updated_at":"2026-03-08T23:34:18.165Z","avatar_url":"https://github.com/Robothy.png","language":"Java","readme":"# Stable Diffusion Webui Java SDK\n\n[![Main Branch Build](https://github.com/Robothy/sdwebui-java-sdk/actions/workflows/build.yml/badge.svg)](https://github.com/Robothy/sdwebui-java-sdk/actions/workflows/build.yml)\n[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-green.svg)](https://github.com/robothy/sdwebui-java-sdk/blob/main/LICENSE)\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.robothy/sdwebui-java-sdk.svg)](https://search.maven.org/artifact/io.github.robothy/sdwebui-java-sdk/)\n\nsdwebui-java-sdk is a Java library  for building Java applications that integrate with [Stable Diffusion Webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui).\n\n## Usage\n\n### Add Denendencies\n\nMaven\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.robothy\u003c/groupId\u003e\n    \u003cartifactId\u003esdwebui-java-sdk\u003c/artifactId\u003e\n    \u003cversion\u003e${latest-version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nGradle\n```\nimplementation \"io.github.robothy:sdwebui-java-sdk:${latest-version}\"\n```\n\n### Create `SdWebui` instance\n\n```java\nSdWebui sd = SdWebui.create(\"http://localhost:7860\");\n```\n\n### Text to Image\n\n```java\n    Txt2ImgResult txt2ImgResult = sd.txt2Img(Txt2ImageOptions.builder()\n      .prompt(\"1dog\")\n      .samplerName(\"DPM++ 2M Karras\")\n      .steps(20)\n      .cfgScale(7)\n      .seed(32749528)\n      .build());\n\n    Path step1Path = Paths.get(\"docs/images/txt2img-dog.png\");\n    Files.write(step1Path, Base64.getDecoder().decode(txt2ImgResult.getImages().get(0)));\n```\n\n![](docs/images/txt2img-dog.png)\n\n### Image to Image\n\n```java\nImage2ImageResult image2ImageResult = sd.img2img(Image2ImageOptions.builder()\n  .prompt(\"1dog, glass\")\n  .negativePrompt(\"bad fingers\")\n  .samplerName(\"DPM++ 2M Karras\")\n  .seed(32749528)\n  .cfgScale(7)\n  .denoisingStrength(0.3)\n  .initImages(List.of(txt2ImgResult.getImages().get(0)))\n  .build());\n\n\n  String base64img = image2ImageResult.getImages().get(0);\n\n  Path filepath = Paths.get(\"docs/images/img2img-dog.png\");\n  Files.write(filepath, Base64.getDecoder().decode(base64img));\n```\n\n![](docs/images/img2img-dog.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobothy%2Fsdwebui-java-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobothy%2Fsdwebui-java-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobothy%2Fsdwebui-java-sdk/lists"}