?
### SD绘画
#### JSON示例
```js
{
? "type": "sd",
? "prompt": "1girl, Chinese Style,animal ears",
? "negative_prompt": "ng_deepnegative_v1_75t, (badhandv4:1.2), (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, ((monochrome)), ((grayscale)) watermark, moles",
? "use_default_neg": "false",
? "model_id": "yBG2r9O",
? "width": "512",
? "height": "768",
? "num_inference_steps": "30",
? "guidance_scale": "7.5",
? "scheduler": "K_EULER_ANCESTRAL"
}
```
#### 字段详解
- type 固定写上sd
- prompt 正向提示词,支持中英文
- negative_prompt 反向提示词,支持英文
- use_default_neg 是否使用系统默认反向提示词
- model_id 模型,可选值见附录
- width 图片宽度 默认512 最小值128 最大值896 推荐值:512, 640, 768 数值必须是8的整数倍
- height 图片高度 默认512 最小值128 最大值896 推荐值:512, 640, 768 数值必须是8的整数倍
- num_inference_steps 绘图步数 ?默认30 最小值1 最大值50
- guidance_scale 默认7.5 最小值1 最大值20
- scheduler 默认DPMSolverMultistep 可选值:DPMSolverMultistep K_EULER_ANCESTRAL DDIM K_EULER PNDM KLMS
?#### 附录
- model_id 模型,可选值对应下面数据中的id字段
- name 名称
- link 详情链接
```js
[
? {
? ? "id": "4zdwGOB",
? ? "name": "DreamShaper",
? ? "link": "https://civitai.com/models/4384/dreamshaper"
? },
? {
? ? "id": "RREKVLd",
? ? "name": "<MAGIFACTORY> t-shirt diffusion",
? ? "link": "https://civitai.com/models/4694/magifactory-t-shirt-diffusion"
? },
? {
? ? "id": "WLNOl76",
? ? "name": "Deliberate",
? ? "link": "https://civitai.com/models/4823/deliberate"
? },
? {
? ? "id": "nG2nkqN",
? ? "name": "Suzumehachi",
? ? "link": "https://civitai.com/models/5043/suzumehachi"
? },
? {
? ? "id": "8jqEDBN",
? ? "name": "Realistic Vision V1.2",
? ? "link": "https://civitai.com/models/4201/realistic-vision-v12"
? },
? {
? ? "id": "mG9Pvko",
? ? "name": "Babes",
? ? "link": "https://civitai.com/models/2220/babes"
? },
? {
? ? "id": "r2La2w2",
? ? "name": "Realistic Vision",
? ? "link": "https://civitai.com/models/4201/realistic-vision-v13"
? },
? {
? ? "id": "vlnWOO4",
? ? "name": "RPG V4",
? ? "link": "https://civitai.com/models/1116/rpg"
? },
? {
? ? "id": "V6vYoaL",
? ? "name": "Foto Assisted Diffusion (FAD) V0",
? ? "link": "https://huggingface.co/Dunkindont/Foto-Assisted-Diffusion-FAD_V0"
? },
? {
? ? "id": "qGdxrYG",
? ? "name": "NeverEnding Dream",
? ? "link": "https://civitai.com/models/10028"
? },
? {
? ? "id": "K6KkkKl",
? ? "name": "Deliberate V2",
? ? "link": "https://civitai.com/models/4823/deliberate"
? },
? {
? ? "id": "vln8Nwr",
? ? "name": "MeinaMix",
? ? "link": "https://civitai.com/models/7240/meinamix"
? },
? {
? ? "id": "NR6ZVma",
? ? "name": "dalcefo_painting",
? ? "link": "https://civitai.com/models/5396/dalcefopainting"
? },
? {
? ? "id": "LA9j2nX",
? ? "name": "GuoFeng",
? ? "link": "https://civitai.com/models/10415/3-guofeng3"
? },
? {
? ? "id": "NRz9J7R",
? ? "name": "DucHaitenAIart",
? ? "link": "https://civitai.com/models/3079/duchaitenaiart"
? },
? {
? ? "id": "DreamFul",
? ? "name": "DreamFul",
? ? "link": "https://civitai.com/models/17754/dreamful"
? },
? {
? ? "id": "lGJBaxy",
? ? "name": "DucHaitenClassicAnime",
? ? "link": "https://civitai.com/models/8542/duchaitenclassicanime"
? },
? {
? ? "id": "X9zNVO1",
? ? "name": "Cheese Daddy's Landscapes mix",
? ? "link": "https://civitai.com/models/5041/cheese-daddys-landscapes-mix"
? },
? {
? ? "id": "woErXml",
? ? "name": "Anime Pastel Dream",
? ? "link": "https://civitai.com/models/23521/anime-pastel-dream"
? },
? {
? ? "id": "WLRRBnv",
? ? "name": "AnyLoRA",
? ? "link": "https://civitai.com/models/23900"
? },
? {
? ? "id": "mG22KJg",
? ? "name": "Unvail AI 3DKX",
? ? "link": "https://civitai.com/models/2504/unvail-ai-3dkx-v2"
? },
? {
? ? "id": "EYWOblK",
? ? "name": "DucHaiten-StyleLikeMe",
? ? "link": "https://huggingface.co/DucHaiten/DucHaiten-StyleLikeMe"
? },
? {
? ? "id": "xylZzvg",
? ? "name": "MeinaPastel",
? ? "link": "https://civitai.com/models/11866/meinapastel"
? },
? {
? ? "id": "76EmEaz",
? ? "name": "Hassaku",
? ? "link": "https://civitai.com/models/2583/hassaku-hentai-model"
? },
? {
? ? "id": "RR6lMmw",
? ? "name": "MeinaHentai",
? ? "link": "https://civitai.com/models/12606/meinahentai"
? },
? {
? ? "id": "1kaWBJZ",
? ? "name": "Babes 2.0",
? ? "link": "https://civitai.com/models/2220/babes"
? },
? {
? ? "id": "DY5rYnx",
? ? "name": "GhostMix",
? ? "link": "https://civitai.com/models/36520/ghostmix"
? },
? {
? ? "id": "vlDnKP6",
? ? "name": "Beautiful Realistic Asians",
? ? "link": "https://civitai.com/models/25494/brabeautiful-realistic-asians-v5"
? },
? {
? ? "id": "yBG2r9O",
? ? "name": "majicMIX realistic",
? ? "link": "https://civitai.com/models/43331/majicmix-realistic"
? },
? {
? ? "id": "MRmvdVG",
? ? "name": "Perfect World",
? ? "link": "https://civitai.com/models/8281/perfect-world"
? },
? {
? ? "id": "MRm5kNX",
? ? "name": "majicMIX sombre",
? ? "link": "https://civitai.com/models/62778/majicmix-sombre"
? },
? {
? ? "id": "mGYMaD5",
? ? "name": "AbsoluteReality",
? ? "link": "https://civitai.com/models/81458/absolutereality"
? },
? {
? ? "id": "eLy25wO",
? ? "name": "Reliberate",
? ? "link": "https://civitai.com/models/79754/reliberate"
? },
? {
? ? "id": "GbEkeEP",
? ? "name": "ICBINP - \"I Can't Believe It's Not Photography\"",
? ? "link": "https://civitai.com/models/28059/icbinp-i-cant-believe-its-not-photography"
? },
? {
? ? "id": "PREaKGN",
? ? "name": "MeinaUnreal",
? ? "link": "https://civitai.com/models/18798/meinaunreal"
? },
? {
? ? "id": "woojZkD",
? ? "name": "epiCRealism",
? ? "link": "https://civitai.com/models/25694/epicrealism"
? },
? {
? ? "id": "Y99mNKb",
? ? "name": "XXMix_9realistic",
? ? "link": "https://civitai.com/models/47274/xxmix9realistic"
? },
? {
? ? "id": "d55J1xB",
? ? "name": "CyberRealistic",
? ? "link": "https://civitai.com/models/15003/cyberrealistic"
? },
? {
? ? "id": "wozEgKm",
? ? "name": "Stable Diffusion XL",
? ? "link": ""
? }
]
```
?
参考链接: