datong-new
/
bg_change
- Public
- 6 runs
Run datong-new/bg_change 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 product image
|
|
target |
string
|
Upload target image
|
|
prompt |
string
|
A 4k, highly detailed, high quality, cinematic. Keep the product unchanged!
|
prompt to generate new image
|
mask |
string
|
上传自定义抠图蒙版
|
|
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
|
mask_prompt |
string
|
|
mask prompt 前景提示词(需先绘制前景蒙版)
|
seed |
integer
|
0
Max: 10000000 |
seed for generating new image
|
illustration_mode |
integer
|
1
Min: 1 Max: 2 |
插画模式 (1:关闭 2:打开)
|
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.8
Max: 1 |
主体复原,数值越大主体越接近原图
|
{
"type": "object",
"title": "Input",
"required": [
"product",
"target"
],
"properties": {
"mask": {
"type": "string",
"title": "Mask",
"format": "uri",
"x-order": 3,
"description": "\u4e0a\u4f20\u81ea\u5b9a\u4e49\u62a0\u56fe\u8499\u7248"
},
"seed": {
"type": "integer",
"title": "Seed",
"default": 0,
"maximum": 10000000,
"minimum": 0,
"x-order": 6,
"description": "seed for generating new image"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "A 4k, highly detailed, high quality, cinematic. Keep the product unchanged!",
"x-order": 2,
"maxLength": 1024,
"minLength": 1,
"description": "prompt to generate new image"
},
"target": {
"type": "string",
"title": "Target",
"format": "uri",
"x-order": 1,
"description": "Upload target image"
},
"product": {
"type": "string",
"title": "Product",
"format": "uri",
"x-order": 0,
"description": "Upload product image"
},
"resolution": {
"type": "integer",
"title": "Resolution",
"default": 1024,
"maximum": 4096,
"minimum": 1,
"x-order": 8,
"description": "\u751f\u6210\u56fe\u7247\u5206\u8fa8\u7387"
},
"mask_prompt": {
"type": "string",
"title": "Mask Prompt",
"default": "",
"x-order": 5,
"maxLength": 1024,
"minLength": 0,
"description": "mask prompt \u524d\u666f\u63d0\u793a\u8bcd\uff08\u9700\u5148\u7ed8\u5236\u524d\u666f\u8499\u7248\uff09"
},
"art_fixation": {
"type": "number",
"title": "Art Fixation",
"default": 1,
"maximum": 1,
"minimum": 0,
"x-order": 11,
"description": "\u73b0\u5b9e\u4e0e\u827a\u672f_MASK\u8c03\u8282"
},
"fix_fixation": {
"type": "number",
"title": "Fix Fixation",
"default": 0.8,
"maximum": 1,
"minimum": 0,
"x-order": 12,
"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": 9,
"description": "\u4e3b\u4f53\u5916\u5f62\u56fa\u5b9a\u5f3a\u5ea6"
},
"style_fixation": {
"type": "number",
"title": "Style Fixation",
"default": 0.7,
"maximum": 1,
"minimum": 0,
"x-order": 10,
"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": 4,
"maxLength": 1024,
"minLength": 1,
"description": "negative prompt to generate new image"
},
"illustration_mode": {
"type": "integer",
"title": "Illustration Mode",
"default": 1,
"maximum": 2,
"minimum": 1,
"x-order": 7,
"description": "\u63d2\u753b\u6a21\u5f0f \uff081:\u5173\u95ed 2:\u6253\u5f00\uff09"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "object",
"title": "Output",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri"
}
}
}