Call it
curl https://api.peume.com/v1/call/carve-photo-into-plaque \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"image_url": "your image url"
}
}'const res = await fetch("https://api.peume.com/v1/call/carve-photo-into-plaque", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"image_url": "your image url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/carve-photo-into-plaque",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"image_url": "your image 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: carve-photo-into-plaque.
Parameters
image_urlRequiredstringThe photo: JPG, PNG or WebP at a public https URL, up to 20 MB.
variantstringhigh: deeper carving for 3D prints; low (default): shallow, for laser engraving, CNC carving and thin plaques.
high · low
should_generate_modelbooleanfalse returns the depth map only (empty model_urls and thumbnail_url), still $0.60.
size_mmnumberLength of the photo's longer side on the model, mm (default 60).
carving_modestringemboss (default): the near parts stand out; engrave: they are cut in.
emboss · engrave
carving_depth_mmnumberCarving depth, mm (default 6 for high, 3 for low). Not 0 with remove_base when a model is generated: that model would have no geometry.
remove_basebooleanCut away the background and build no base plate.
removal_thresholdnumberDepth (0.01–1, default 0.01) below which remove_base cuts the background away; a high value can leave an empty model, still $0.60.
base_thickness_mmnumberBase plate thickness, 0.1–10 mm (default 1); with remove_base omit it or send 0.
bend_modestringBend the relief outward or inward (default off).
off · convex · concave
bend_axisstringxz (default) curls the left and right edges, yz the top and bottom.
xz · yz
bend_anglenumberArc of the bend in degrees (default 60).
mesh_resolutionintegerMesh points along the photo's longer side (default 1024); higher keeps finer detail and makes larger files.
target_formatsarrayFormats to return (default glb and stl); obj comes with an mtl.
color_mappingbooleanColor the GLB, OBJ, FBX and USDZ files with the photo (STL and 3MF stay white); adds texture_urls, same price.
