Cutout

Cut a product out of its photo — estimate

Price the request without executing it. Same body as POST /v1/studio/cutout.

post/v1/studio/cutout/estimate

Request

  • Base URL: https://apihub.co.il
  • URL: https://apihub.co.il/v1/studio/cutout/estimate
  • Auth: HTTP bearer

Request body

cropboolean

Crop the result to the product, plus padding

maskboolean

Also return the mask: a black-and-white PNG (white = the product) at cutout.mask_url

format'png' | 'jpg'

png = transparent (the default without a background); jpg = smaller (the default with a background; needs one)

paddingnumber

With crop: room around the product, as a share of its larger side

image_urlstring uri required

Public URL of the product photo (JPEG, PNG or WebP) — or the url of a previous render

Response

Estimate

operationstring
estimated_creditsnumber
credits_to_reservenumber
estimated_usageobject
notestring nullable
sufficientboolean

Changes

No recorded changes to this operation across all 2 revisions of this API.