{"id":15659064,"url":"https://github.com/cssxsh/stable-diffusion-helper","last_synced_at":"2025-05-05T17:11:37.848Z","repository":{"id":113727526,"uuid":"604981984","full_name":"cssxsh/stable-diffusion-helper","owner":"cssxsh","description":"基于 Stable Diffusion web UI 的 图片生成插件","archived":false,"fork":false,"pushed_at":"2023-08-02T03:48:57.000Z","size":710,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T08:33:07.099Z","etag":null,"topics":["mirai","mirai-console","stable","stable-diffusion","stable-diffusion-web-ui"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cssxsh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-02-22T07:32:44.000Z","updated_at":"2024-10-21T02:27:14.000Z","dependencies_parsed_at":"2024-10-23T06:17:57.420Z","dependency_job_id":"4d55dcd4-579f-4570-856c-4c92d55c59d6","html_url":"https://github.com/cssxsh/stable-diffusion-helper","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fstable-diffusion-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fstable-diffusion-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fstable-diffusion-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fstable-diffusion-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cssxsh","download_url":"https://codeload.github.com/cssxsh/stable-diffusion-helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242756957,"owners_count":20180202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["mirai","mirai-console","stable","stable-diffusion","stable-diffusion-web-ui"],"created_at":"2024-10-03T13:14:48.471Z","updated_at":"2025-03-09T21:32:49.362Z","avatar_url":"https://github.com/cssxsh.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Stable Diffusion Helper](https://github.com/cssxsh/stable-diffusion-helper)\n\n\u003e 基于 [Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) 的 图片生成插件\n\n[![maven-central](https://img.shields.io/maven-central/v/xyz.cssxsh/stable-diffusion-helper)](https://search.maven.org/artifact/xyz.cssxsh/stable-diffusion-helper)\n[![MiraiForum](https://img.shields.io/badge/post-on%20MiraiForum-yellow)](https://mirai.mamoe.net/topic/1657)\n\n**使用前应该查阅的相关文档或项目**\n\n*   [User Manual](https://github.com/mamoe/mirai/blob/dev/docs/UserManual.md)\n*   [Permission Command](https://github.com/mamoe/mirai/blob/dev/mirai-console/docs/BuiltInCommands.md#permissioncommand)\n*   [Stable Diffusion web UI Wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API)\n\n本插件对接的是 `Stable Diffusion web UI` 的 REST API, 需要启动配置中开启选项, 详情请自行查询 [WIKI](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API)  \n\n## 使用\n\n更多内容请看 [详细介绍](MORE.md)\n\n### `styles`\n\n`Styles` 是 `Stable Diffusion web UI` 自带的功能，用于快捷的填充 `prompt` 和 `negative_prompt`  \n![Styles.png](.github/Styles.png)\n\n### `t2i`\n\n以文生图  \n权限ID: `xyz.cssxsh.mirai.plugin.stable-diffusion-helper:txt2img`  \n例子:  \n![t2i](.github/t2i.png)\n\n### `i2i`\n\n以图生图  \n权限ID: `xyz.cssxsh.mirai.plugin.stable-diffusion-helper:img2img`  \n例子:  \n![i2i](.github/i2i.png)\n\n## 配置\n\n`client.yml` 基本配置\n\n* `base_url` 基本网址\n* `dns_over_https` DNS\n* `timeout` API超时时间\n* `cool_down_time` API冷却时间\n\n## 安装\n\n### MCL 指令安装\n\n**请确认 mcl.jar 的版本是 2.1.0+**  \n`./mcl --update-package xyz.cssxsh:stable-diffusion-helper --channel maven-stable --type plugins`\n\n### 手动安装\n\n1.  从 [Releases](https://github.com/cssxsh/stable-diffusion-helper/releases) 或者 [Maven](https://repo1.maven.org/maven2/xyz/cssxsh/mirai/stable-diffusion-helper/) 下载 `mirai2.jar`\n2.  将其放入 `plugins` 文件夹中\n\n## [爱发电](https://afdian.net/@cssxsh)\n\n![afdian](.github/afdian.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssxsh%2Fstable-diffusion-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcssxsh%2Fstable-diffusion-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssxsh%2Fstable-diffusion-helper/lists"}