Inpaint(图片修改)
POST
/sd/v2beta/stable-image/edit/inpaint智能地通过根据mask图像的内容,填充或替换指定区域的图像。
详细用法请参考官方文档:https://platform.stability.ai/docs/api-reference#tag/Edit/paths/~1v2beta~1stable-image~1edit~1inpaint/post
价格:0.1PTC/次
请求参数
Header 参数
Content-Type
string
必需
示例值:
multipart/form-data
Accept
string
必需
示例值:
image/*
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数multipart/form-data
image
file
必需
The image you wish to inpaint.
prompt
string
必需
What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results.
mask
file
必需
The image passed to this parameter should be a black and white image that represents, at any pixel
示例代码
返回响应
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
修改于 1 个月前