Call it
curl https://api.peume.com/v1/call/retopologize-model \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"model": "v1.0"
}
}'const res = await fetch("https://api.peume.com/v1/call/retopologize-model", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"model": "v1.0"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/retopologize-model",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"model": "v1.0"
}
},
)
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: retopologize-model.
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.
modelRequiredstringRequired. v3.0 newest ($0.35, quad $0.40, optional UVs); v2.0 smart retopology ($0.30); v1.0 basic decimation ($0.10).
v1.0 · v2.0 · v3.0
face_limitintegerTarget faces. v2.0 / v3.0: triangle 500–20,000, quad 500–10,000, adaptive if omitted. v1.0: required, triangle ≤ 2,000,000, quad ≤ 150,000.
quadbooleanQuad mesh output.
smart_uvbooleanUnwrap UVs too (v3.0 only).
bakebooleanBake textures onto the result (default true; not v1.0).
part_namesarrayOnly these parts (from /mesh/segment; not v1.0).
