You're looking at a specific version of this model. Jump to the model overview.

zf-kbot /md-me-qwen-v21-l40s:f02f2e58

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
images
array
参考图数组:edit/inpaint 1..6 张,face_swap 原图+1..6 张参考脸(2..7 张),remove 单图;保持图片编号顺序
prompt
string
编辑/局部修改必填;换脸/移除可追加描述
ref_longest_edge
integer
1920

Min: 32

Max: 4096

旧接口兼容长边,仅 edit 的 resolution=auto 使用
steps
integer

Min: 1

Max: 200

采样步数;留空自动:edit 40,其余 25
seed
integer
0

Max: 9007199254740991

0 随机;正数固定,实际种子记录到日志
task
None
edit
通用编辑、移除、局部修改、换脸/换头
mask
string
独立遮罩:白色处理,黑色保留;与原图同尺寸;移除/局部修改必填
protect_mask
string
独立保护遮罩:白色保留,与原图同尺寸
enhance_prompt
boolean
False
使用 QwenPERewriteT8/Bonsai 增强提示词;完成后卸载增强模型
canvas_image
integer
1

Min: 1

Max: 6

edit 的主要编辑画布编号,按 images 顺序从 1 开始
resolution
None
auto
edit 生成长边:auto 使用旧长边;original 原图长边;custom 指定宽高
aspect_ratio
None
original
edit 生成画布比例;与 custom 宽高不可同时指定
width
integer
1024

Min: 32

Max: 4096

edit custom 生成宽度
height
integer
1024

Min: 32

Max: 4096

edit custom 生成高度
local_min
integer
512

Min: 32

Max: 4096

局部裁剪长边最小值
local_max
integer
1024

Min: 32

Max: 4096

局部裁剪长边最大值;须不小于 local_min
mask_expand
number

Max: 100

贴回扩张百分比;默认换脸 5,其他局部任务 2
mask_feather
number

Max: 100

贴回羽化百分比;默认换脸 5,其他局部任务 1
crop_top
number

Min: 1

Max: 5

局部裁剪上扩展倍率;留空使用任务预设
crop_bottom
number

Min: 1

Max: 5

局部裁剪下扩展倍率;留空使用任务预设
crop_left
number

Min: 1

Max: 5

局部裁剪左扩展倍率;留空使用任务预设
crop_right
number

Min: 1

Max: 5

局部裁剪右扩展倍率;留空使用任务预设
swap_mode
None
face
face 仅换脸;head 包含头发
forehead
boolean
False
换脸时包括额头区域
bfs_version
None
v1.1
v1.0 倾向原图表情;v1.1 倾向参考图表情;自动同步 LoRA 和提示词
bfs_strength
number
1

Max: 2

BFS LoRA 强度;0 旁路
person_count
integer
1

Min: 1

Max: 6

最多处理人数;实际取检测数与该值的较小值
face_order
None
left_to_right
人脸对应顺序;参考图按该顺序提供
color_match_strength
number
0

Max: 1

换脸肤色匹配 mean_std factor;0 直接保留生成颜色
removal_mode
None
normal
移除:普通轮廓定位;增强实心块化重建
marking
None
circle
移除遮罩:闭合画圈填充内部;涂抹保留涂抹形状
nsfw_lora_strength
number
0

Max: 2

三个编辑任务的可选 nsfw_qwen_21 LoRA;0 不加载;换脸使用 BFS

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}