Inpaint
POST
/sd/v2beta/stable-image/edit/inpaintIntelligently fill or replace the specified area of the image based on the content of the mask image.
For details, please view: https://platform.stability.ai/docs/api-reference#tag/Edit/paths/~1v2beta~1stable-image~1edit~1inpaint/post
Price: 0.1 PTC / call
请求参数
Header Params
Content-Type
string
required
Example:
multipart/form-data
Accept
string
required
Example:
image/*
Authorization
string
required
API Key from 302.AI backend
Example:
Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
image
file
required
The image you wish to inpaint.
prompt
string
required
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
required
The image passed to this parameter should be a black and white image that represents, at any pixel
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 2 个月前