mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-04-20 14:29:40 +00:00
Updated REST API (markdown)
225
REST-API.md
225
REST-API.md
@@ -129,3 +129,228 @@ Default means adetailer's default, not user's default.
|
||||
```
|
||||
|
||||
You can send as many models as you want. However, requests that exceed the max models set in the settings tab can cause errors.
|
||||
|
||||
## Json Schema
|
||||
|
||||
```json
|
||||
{
|
||||
"title": "ADetailerArgs",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ad_model": { "title": "Ad Model", "default": "None", "type": "string" },
|
||||
"ad_model_classes": {
|
||||
"title": "Ad Model Classes",
|
||||
"default": "",
|
||||
"type": "string"
|
||||
},
|
||||
"ad_tab_enable": {
|
||||
"title": "Ad Tab Enable",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_prompt": { "title": "Ad Prompt", "default": "", "type": "string" },
|
||||
"ad_negative_prompt": {
|
||||
"title": "Ad Negative Prompt",
|
||||
"default": "",
|
||||
"type": "string"
|
||||
},
|
||||
"ad_confidence": {
|
||||
"title": "Ad Confidence",
|
||||
"default": 0.3,
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0,
|
||||
"type": "number"
|
||||
},
|
||||
"ad_mask_filter_method": {
|
||||
"title": "Ad Mask Filter Method",
|
||||
"default": "Area",
|
||||
"enum": ["Area", "Confidence"],
|
||||
"type": "string"
|
||||
},
|
||||
"ad_mask_k": {
|
||||
"title": "Ad Mask K",
|
||||
"default": 0,
|
||||
"minimum": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"ad_mask_min_ratio": {
|
||||
"title": "Ad Mask Min Ratio",
|
||||
"default": 0.0,
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0,
|
||||
"type": "number"
|
||||
},
|
||||
"ad_mask_max_ratio": {
|
||||
"title": "Ad Mask Max Ratio",
|
||||
"default": 1.0,
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0,
|
||||
"type": "number"
|
||||
},
|
||||
"ad_dilate_erode": {
|
||||
"title": "Ad Dilate Erode",
|
||||
"default": 4,
|
||||
"type": "integer"
|
||||
},
|
||||
"ad_x_offset": { "title": "Ad X Offset", "default": 0, "type": "integer" },
|
||||
"ad_y_offset": { "title": "Ad Y Offset", "default": 0, "type": "integer" },
|
||||
"ad_mask_merge_invert": {
|
||||
"title": "Ad Mask Merge Invert",
|
||||
"default": "None",
|
||||
"enum": ["None", "Merge", "Merge and Invert"],
|
||||
"type": "string"
|
||||
},
|
||||
"ad_mask_blur": {
|
||||
"title": "Ad Mask Blur",
|
||||
"default": 4,
|
||||
"minimum": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"ad_denoising_strength": {
|
||||
"title": "Ad Denoising Strength",
|
||||
"default": 0.4,
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0,
|
||||
"type": "number"
|
||||
},
|
||||
"ad_inpaint_only_masked": {
|
||||
"title": "Ad Inpaint Only Masked",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_inpaint_only_masked_padding": {
|
||||
"title": "Ad Inpaint Only Masked Padding",
|
||||
"default": 32,
|
||||
"minimum": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"ad_use_inpaint_width_height": {
|
||||
"title": "Ad Use Inpaint Width Height",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_inpaint_width": {
|
||||
"title": "Ad Inpaint Width",
|
||||
"default": 512,
|
||||
"exclusiveMinimum": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"ad_inpaint_height": {
|
||||
"title": "Ad Inpaint Height",
|
||||
"default": 512,
|
||||
"exclusiveMinimum": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"ad_use_steps": {
|
||||
"title": "Ad Use Steps",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_steps": {
|
||||
"title": "Ad Steps",
|
||||
"default": 28,
|
||||
"exclusiveMinimum": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"ad_use_cfg_scale": {
|
||||
"title": "Ad Use Cfg Scale",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_cfg_scale": {
|
||||
"title": "Ad Cfg Scale",
|
||||
"default": 7.0,
|
||||
"minimum": 0,
|
||||
"type": "number"
|
||||
},
|
||||
"ad_use_checkpoint": {
|
||||
"title": "Ad Use Checkpoint",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_checkpoint": { "title": "Ad Checkpoint", "type": "string" },
|
||||
"ad_use_vae": {
|
||||
"title": "Ad Use Vae",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_vae": { "title": "Ad Vae", "type": "string" },
|
||||
"ad_use_sampler": {
|
||||
"title": "Ad Use Sampler",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_sampler": {
|
||||
"title": "Ad Sampler",
|
||||
"default": "DPM++ 2M Karras",
|
||||
"type": "string"
|
||||
},
|
||||
"ad_scheduler": {
|
||||
"title": "Ad Scheduler",
|
||||
"default": "Use same scheduler",
|
||||
"type": "string"
|
||||
},
|
||||
"ad_use_noise_multiplier": {
|
||||
"title": "Ad Use Noise Multiplier",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_noise_multiplier": {
|
||||
"title": "Ad Noise Multiplier",
|
||||
"default": 1.0,
|
||||
"minimum": 0.5,
|
||||
"maximum": 1.5,
|
||||
"type": "number"
|
||||
},
|
||||
"ad_use_clip_skip": {
|
||||
"title": "Ad Use Clip Skip",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_clip_skip": {
|
||||
"title": "Ad Clip Skip",
|
||||
"default": 1,
|
||||
"minimum": 1,
|
||||
"maximum": 12,
|
||||
"type": "integer"
|
||||
},
|
||||
"ad_restore_face": {
|
||||
"title": "Ad Restore Face",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"ad_controlnet_model": {
|
||||
"title": "Ad Controlnet Model",
|
||||
"default": "None",
|
||||
"type": "string"
|
||||
},
|
||||
"ad_controlnet_module": {
|
||||
"title": "Ad Controlnet Module",
|
||||
"default": "None",
|
||||
"type": "string"
|
||||
},
|
||||
"ad_controlnet_weight": {
|
||||
"title": "Ad Controlnet Weight",
|
||||
"default": 1.0,
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0,
|
||||
"type": "number"
|
||||
},
|
||||
"ad_controlnet_guidance_start": {
|
||||
"title": "Ad Controlnet Guidance Start",
|
||||
"default": 0.0,
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0,
|
||||
"type": "number"
|
||||
},
|
||||
"ad_controlnet_guidance_end": {
|
||||
"title": "Ad Controlnet Guidance End",
|
||||
"default": 1.0,
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0,
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user