# The segmentation.keepSalientObject parameter stops working

Calls to POST /v2/edit, body parameter segmentation.keepSalientObject on Photoroom Image Editing API stopped working on December 19, 2024.

On December 19, 2024, the Photoroom Image Editing API removed the body parameter segmentation.keepSalientObject. This change affects POST /v2/edit requests that still submit this setting. Following this removal, calls containing the parameter fail.

## What to use instead

Send segmentation.mode=keepSalientObject or segmentation.mode=ignoreSalientObject instead.

- API: Photoroom Image Editing API (image-api.photoroom.com)
- Kind: Endpoint removal
- Announced: December 19, 2024
- Takes effect: December 19, 2024
- Calls after that day: fail
- Calls it hits: `POST /v2/edit`, `body parameter segmentation.keepSalientObject`
- Source: [Announcement](https://docs.photoroom.com/getting-started/changelog)
- Verified: October 26, 2026, against Photoroom Image Editing API's own pages
- Page: https://www.okapi.bot/providers/photoroom-image-editing-api/breaking-changes/the-segmentation-keepsalientobject-parameter-stops-working-2/

## Photoroom Image Editing API's words

> the property segmentation.keepSalientObject=true|false has been removed

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
