GET

/v1/schemas/stability/image/v2beta/stable-image/edit/erase

kind inputactivity imagehash 3d752b54…extracted Sep 16, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
1ea5455da5ce2efef103daa142cc44a3e70b4fb3cfcdfa0c9a6a6f46d93912ea
{
  "fetchedAt": 1789536057,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

5 properties · 2 required · 1 $defs
propertytypedescriptionconstraints
image*stringThe image you wish to erase from.format: binary
maskstringControls the strength of the inpainting process on a per-pixel basis, either via a second image (passed into this parameter) or via the alpha channel of the `image` parameter.format: binary
grow_masknumberGrows the edges of the mask outward in all directions by the specified number of pixels. The expanded area around the mask will be blurred, which can help smooth the transition between inpainted content and the original image.0 ≤ n ≤ 20 · default: 5
seednumberA specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)0 ≤ n ≤ 4294967294 · default: 0
output_formatenumDictates the `content-type` of the generated image.jpeg | png | webp · default: "png"

Types

1 $defs

Seednumber

A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)

0 ≤ n ≤ 4294967294 · default: 0

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"stability","endpointId":"v2beta/stable-image/edit/erase","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}