PeumeAPI

Developer & public data

Segment Image or Model Parts

Find and separate the parts of an image or a GLB model by hint.

From $0.825 per call

Call it

curl https://api.peume.com/v1/call/segment-image-or-model-parts \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "seg_type": "image"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: segment-image-or-model-parts.

Parameters

seg_typeRequiredstring

Required. image ($0.85): segment a picture; model ($0.55): segment a GLB, needs transform.

image · model

input_run_idstring

runId of one of YOUR OWN successful runs. image: /text-to-image/generate, /image-to-image/generate, /text-to-model/h-series or /text-to-model/p-series; model: /text-to-model/h-series, /text-to-model/p-series, /image-to-model/h-series, /image-to-model/p-series, /multiview-to-model/h-series, /multiview-to-model/p-series, /model/texture, /model/convert, /model/convert-advanced, /model/import, /mesh/segment, /mesh/complete, /mesh/decimate, /mesh/uv-unwrap, /animation/rig or /animation/retarget. For a /mesh/smart-segment result pass its seg_model_url as input.

inputstring

A file instead: an image (PNG / JPEG / WebP) for image, a GLB for model — public https URL or file_ token.

granularitystring

How finely to split (default medium).

coarse · medium · fine

hintstring

Which parts to look for, e.g. wheels, doors.

transformarray

model only, required: column-major 4×4 matrix, e.g. identity [1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1].

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.