Search-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. Request
Body Params multipart/form-data
Request Code Samples
curl --location --request POST 'https://api.302.ai/sd/v2beta/stable-image/edit/search-and-replace' \
--header 'Accept: image/*' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: multipart/form-data' \
--form 'image=@""' \
--form 'prompt=""' \
--form 'search_prompt=""'
Responses
application/json Modified at 2024-09-03 08:02:43