s-henmind
/
portrait_chg_bg
- Public
- 41 runs
Run s-henmind/portrait_chg_bg with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
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 |
---|---|---|---|
product |
string
|
Upload portrait photo
|
|
target |
string
|
Upload background image
|
|
prompt |
string
|
(best quality, masterpiece:1.05), (bokeh, Blurred_background:1.1),( (depth of field:1.2)), professional
|
正向提示词补充 + 风格选择
|
negative_prompt |
string
|
unsuitable, nude, watermark, glitch, noise, bad, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, worst quality,low quality, glare
|
negative prompt to generate new image
|
seed |
integer
|
0
Max: 10000000 |
seed for generating new image
|
resolution |
integer
|
1024
Min: 1 Max: 4096 |
生成图片分辨率
|
shape_fixation |
number
|
0.92
Max: 1 |
主体风格固定强度
|
style_fixation |
number
|
0.7
Max: 1 |
主体风格固定强度
|
art_fixation |
number
|
1
Max: 1 |
现实与艺术_MASK调节
|
fix_fixation |
number
|
0.9
Max: 1 |
主体复原,数值越大主体越接近原图
|
{
"type": "object",
"title": "Input",
"required": [
"product",
"target"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": 0,
"maximum": 10000000,
"minimum": 0,
"x-order": 4,
"description": "seed for generating new image"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "(best quality, masterpiece:1.05), (bokeh, Blurred_background:1.1),( (depth of field:1.2)), professional",
"x-order": 2,
"maxLength": 1024,
"minLength": 1,
"description": "\u6b63\u5411\u63d0\u793a\u8bcd\u8865\u5145 + \u98ce\u683c\u9009\u62e9"
},
"target": {
"type": "string",
"title": "Target",
"format": "uri",
"x-order": 1,
"description": "Upload background image"
},
"product": {
"type": "string",
"title": "Product",
"format": "uri",
"x-order": 0,
"description": "Upload portrait photo"
},
"resolution": {
"type": "integer",
"title": "Resolution",
"default": 1024,
"maximum": 4096,
"minimum": 1,
"x-order": 5,
"description": "\u751f\u6210\u56fe\u7247\u5206\u8fa8\u7387"
},
"art_fixation": {
"type": "number",
"title": "Art Fixation",
"default": 1,
"maximum": 1,
"minimum": 0,
"x-order": 8,
"description": "\u73b0\u5b9e\u4e0e\u827a\u672f_MASK\u8c03\u8282"
},
"fix_fixation": {
"type": "number",
"title": "Fix Fixation",
"default": 0.9,
"maximum": 1,
"minimum": 0,
"x-order": 9,
"description": "\u4e3b\u4f53\u590d\u539f\uff0c\u6570\u503c\u8d8a\u5927\u4e3b\u4f53\u8d8a\u63a5\u8fd1\u539f\u56fe"
},
"shape_fixation": {
"type": "number",
"title": "Shape Fixation",
"default": 0.92,
"maximum": 1,
"minimum": 0,
"x-order": 6,
"description": "\u4e3b\u4f53\u98ce\u683c\u56fa\u5b9a\u5f3a\u5ea6"
},
"style_fixation": {
"type": "number",
"title": "Style Fixation",
"default": 0.7,
"maximum": 1,
"minimum": 0,
"x-order": 7,
"description": "\u4e3b\u4f53\u98ce\u683c\u56fa\u5b9a\u5f3a\u5ea6"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "unsuitable, nude, watermark, glitch, noise, bad, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, worst quality,low quality, glare",
"x-order": 3,
"maxLength": 1024,
"minLength": 1,
"description": "negative prompt to generate new image"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "object",
"title": "Output",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri"
}
}
}