override_settings

while override_settings is for a single request.

设置单个请求的底模 ckp

Lora

How to use Lora through the API? · AUTOMATIC1111 stable-diffusion-webui · Discussion #10468

和 sd-web-ui 一样

Untitled

prompt中输入关键词,并使用该 lora 即可

{
  "prompt": "white background, sugimori ken \\\\(style\\\\), pokemon \\\\(creature\\\\), full body, tornado creature with smoke tentacles and a menacing face solo, grin, happy, highres, no humans, other focus, pokemon, smile, solo, teeth, uneven eyes, ((masterpiece)) <lora:pokemon_v3_offset:1>",
  "negative_prompt": "(painting by bad-artist-anime:0.9), (painting by bad-artist:0.9), watermark, text, error, blurry, jpeg artifacts, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, artist name, (worst quality, low quality:1.4), bad anatomy",
  "cfg_scale": 7,
  "steps": 30,
  "sampler_index": "DPM++ SDE Karras",
  "seed": 479748350
}

sugimori ken \\\\(style\\\\), pokemon \\\\(creature\\\\),
<lora:pokemon_v3_offset:1>

多controlNet

{
    "prompt": "",
    "negative_prompt": "",
    "batch_size": 1,
    "sampler_index": "Euler a",
    "seed":0,
    "steps": 20,
    "cfg_scale": 7,
    "alwayson_scripts": {
        "controlnet": {
            "args": [
                {
                    "input_image": "LR_encoded_image (base64 image)",
                    "model": "control_v11f1e_sd15_tile [a371b31b]",
                    "resize_mode":1,
                    "control_mode":0,
                    "weight":1,
                },
                {
                    "input_image": "Depth_encoded_image (base64 image)",
                    "model": "control_v11f1p_sd15_depth [cfd03158]",
                    "resize_mode":1,
                    "control_mode":0,
                    "weight":1,
                }
            ]
        }
    }
}