Intelligently fill or replace specified areas of an image based on the content of the mask image
Request
Body Params  application/json
{
  "prompt": "a photo of a cat",
  "negative_prompt": "",
  "image_url": "",
  "mask_url": "",
  "model_name": "diffusers/stable-diffusion-xl-1.0-inpainting-0.1"
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/302/submit/inpaint' \
--header 'Accept: image/*' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "prompt": "a photo of a cat",
  "negative_prompt": "",
  "image_url": "",
  "mask_url": "",
  "model_name": "diffusers/stable-diffusion-xl-1.0-inpainting-0.1"
}'
Responses
application/json Modified at 2024-09-03 08:00:31