BrightShotBrightShot API
Object Manipulation

Inpaint with mask

Make specific modifications to parts of an image using a mask. White areas in the mask will be edited.

POST
/inpaint
AuthorizationBearer <token>

API key in format: bs_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

image_urlstring

URL of the original image

Formaturi
mask_urlstring

URL of the mask image (white areas will be modified)

Formaturi
promptstring

Description of what to generate in the masked area

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.bright-shot.com/api/v1/inpaint" \  -H "Content-Type: application/json" \  -d '{    "image_url": "https://example.com/room.jpg",    "mask_url": "https://example.com/mask.png",    "prompt": "A modern leather armchair"  }'
{
  "requestId": "pred_abc123xyz",
  "status": "starting",
  "remainingGenerations": 149
}
{
  "error": "image_url is required"
}
{
  "error": "Invalid API key"
}
{
  "error": "Not enough generations"
}