Cutouts
Create a subject cutout (inline)
Generates a production-grade transparent cutout of an image's subject, plus a grayscale matte and a subject-removed background plate. Processes one image per call, synchronously.
Source — exactly one required
| Field | Type | Description |
|---|---|---|
| file | binary (multipart only) | Raw image upload |
| generation_id | string (JSON only) | Use an existing generation |
| asset_id | string (JSON only) | Use an existing asset |
Pass the source as multipart/form-data (with a file field) or as JSON (with generation_id or asset_id). Supplying zero sources or more than one returns 400 validation_error.
Outputs
- cutout_url — transparent-background WebP of the subject. Omitted if compositing produced no foreground.
- matte_url — grayscale alpha matte PNG (white = subject, black = background).
- bg_plate_url — subject-removed background plate PNG.
All URLs are signed and expire in ~1 hour. Re-fetch GET /v1/cutouts/{generation_id} for fresh URLs.
Cost
Charged per call (operation key alpha_extract_*). See GET /v1/pricing for the current credit amount.
post/v1/cutouts
Request
- Base URL: https://nanostudiopro.com/api
- URL: https://nanostudiopro.com/api/v1/cutouts
- Auth: HTTP bearer
Request body
Response
Cutout created and ready.
Changes
No recorded changes to this operation across all 2 revisions of this API.