Call it
curl https://api.peume.com/v1/call/split-model-into-parts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"input_run_id": "your input run id",
"input": "your input"
}
}'const res = await fetch("https://api.peume.com/v1/call/split-model-into-parts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"input_run_id": "your input run id",
"input": "your input"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/split-model-into-parts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"input_run_id": "your input run id",
"input": "your input"
}
},
)
print(res.json()["output"])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: split-model-into-parts.
Parameters
input_run_idstringrunId of one of YOUR OWN earlier, successful runs that generated a 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 or /multiview-to-model/p-series.
inputstringA model file instead (GLB, GLTF, FBX, OBJ, STL; ≤ 150 MB): a public https URL — e.g. a model_url from an earlier run — or a file_ token from /files/presign.
modelstringv1.0-20250506 (default, geometry-based) or v2.0-20260430 (beta, semantic parts with labels).
v1.0-20250506 · v2.0-20260430
segmentation_granularitystringv2 only: how finely to split (default balanced).
simple · balanced · detailed
split_by_connectivitybooleanv2 only: split by connected components (default true).
ref_imagestringv2 only: a segmentation mask image (URL or file_ token) to guide the split.
