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

主体复原,数值越大主体越接近原图

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"
    }
  }
}