Photoroom API Documentation
Ask or search…


By default, the API will cut out the main subject of the input image, position it at the center of the result image, and apply the specified padding around it:
If some of the sides of the subject are cropped, then by default the API will not apply any padding to these sides, so as to avoid having empty whitespace between the edge of the subject and that of the result image:
If you want, you can disable this behavior by adding the parameter ignorePaddingAndSnapOnCroppedSides=false to your API call, which will produce this result: