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
Example:multipart/form-data
API Key from 302.AI backend
Example:Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
Request 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