Call it
curl https://api.peume.com/v1/call/repair-model-for-printing \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"input_run_id": "your input run id",
"model_url": "your model url"
}
}'const res = await fetch("https://api.peume.com/v1/call/repair-model-for-printing", {
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",
"model_url": "your model url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/repair-model-for-printing",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"input_run_id": "your input run id",
"model_url": "your model url"
}
},
)
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: repair-model-for-printing.
Parameters
input_run_idstringrunId of one of YOUR OWN earlier, successful Meshy runs of /text-to-3d/preview, /text-to-3d/refine, /image-to-3d/generate, /multi-image-to-3d/generate, /model/retexture, /model/remesh, /model/convert, /model/resize, /model/uv-unwrap, /print/repair or /print/analyze; a /print/analyze run also hands over its printer type and print size.
model_urlstringA public https URL of the model file instead.
printer_typestringPrinter type for the minimum wall thickness check.
fdm · sla · full_color
intended_print_height_mmnumberPlanned print height in mm (GLB / run inputs only).
intended_print_longest_side_mmnumberPlanned print longest side in mm.
alpha_thumbnailbooleanAlso return a transparent-background preview.
