Search-and-replace
POST
/sd/v2beta/stable-image/edit/search-and-replaceSearch-and-replace is a special method of image editing that does not require masking. Users can identify the target to be replaced using simple language through search prompts. The service will automatically recognize and replace objects in the image with the target specified in the search prompt.
For details, please view: https://platform.stability.ai/docs/api-reference#tag/Edit/paths/~1v2beta~1stable-image~1edit~1search-and-replace/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
prompt
string
required
search_prompt
string
required
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 2 个月前