Inpaint(图片修改)
POST
/302/submit/inpaint智能地通过根据mask图像的内容,填充或替换指定区域的图像。
价格:0.05PTC/次
请求参数
Header Params
Accept
string
required
Example:
image/*
Authorization
string
required
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
prompt
string
required
negative_prompt
string
required
image_url
string
required
mask_url
string
required
model_name
string
required
Example
{
"prompt": "a photo of a cat",
"negative_prompt": "",
"image_url": "",
"mask_url": "",
"model_name": "diffusers/stable-diffusion-xl-1.0-inpainting-0.1"
}
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 4 个月前