Relief — Photo to Bas-Relief Model
meshy_reliefConverts a photo into a bas-relief 3D model and a 16-bit grayscale depth map for 3D printing, laser engraving, CNC carving, and plaques.
Instructions
Turn one photo (file_path or image_url) into a bas-relief 3D model and a 16-bit grayscale depth map, for 3D printing, laser engraving, CNC carving and plaques. Cost: 20 credits, depth map only included; needs a paid plan. Confirm the use and options first.
variant: "low" (default) shallow, for laser engraving, CNC and thin plaques; "high" deeper, for 3D-printed pieces
should_generate_model false: the depth map only (a height map for laser / CNC software), no model
target_formats: only these are made (default glb + stl). STL (mm, Z up) and 3MF keep the real size. Files are large: at mesh_resolution 1024 a GLB is ~40–50 MB and an STL ~80–105 MB; ~150 / ~300 MB at 2048, more with a bend
color_mapping true: GLB, OBJ, FBX and USDZ carry the photo's color; STL and 3MF stay white Photo: JPG, PNG or WebP, at most 20 MB, at least 32×32 px, longer side at most ~16× the shorter.
Wait with meshy_get_task_status (task_type "relief"), then meshy_download_model, which also saves the depth map. A relief task cannot be the input of other tools (remesh, convert, resize, auto split...), so set its formats and size here.
Example (3D print): { file_path: "/path/to/photo.jpg", variant: "high", size_mm: 120, target_formats: ["stl"] }
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "meshy_relief"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size_mm | No | Length of the photo's longer side on the model, flat, in mm: 20–250 (default 60). | |
| variant | No | 'low' (default): shallow carving for laser engraving, CNC and thin plaques. 'high': deeper carving for 3D-printed pieces. | |
| bend_axis | No | With a bend: 'xz' curls the left and right edges (default), 'yz' the top and bottom. | |
| bend_mode | No | 'off' (default, flat), 'convex' (the front bulges out) or 'concave' (the front curves in). | |
| file_path | No | Absolute path to a local .jpg/.jpeg/.png/.webp; the server encodes it. | |
| image_url | No | Public URL or data URI of the photo. For local files use file_path. | |
| bend_angle | No | With a bend: the arc in degrees, 0–360 (default 60; below 1 stays flat). | |
| remove_base | No | Cut away the background and build no base plate (default false). | |
| carving_mode | No | 'emboss' (default): the nearer parts stand out. 'engrave': they are cut in. | |
| color_mapping | No | Color the model with the photo (default false, same cost): GLB, OBJ, FBX and USDZ carry color; STL and 3MF stay white. | |
| target_formats | No | Formats to generate; only these are returned (default glb and stl). STL and 3MF keep the real size. | |
| mesh_resolution | No | Mesh points along the longer side, 512–2048 (default 1024). Higher keeps finer detail in much larger files. | |
| response_format | No | markdown (default) or json | markdown |
| carving_depth_mm | No | Carving depth in mm, 0–60 (default 3 for low, 6 for high). | |
| base_thickness_mm | No | Base plate thickness in mm, 0.1–10 (default 1). With remove_base true, omit it or send 0. | |
| removal_threshold | No | With remove_base: the depth (0.01–1, default 0.01) below which the background is cut away. A high value can leave an empty model, still charged. | |
| should_generate_model | No | false: the depth map only, with no model or preview (same cost). Default true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | Yes | ||
| task_id | Yes | ||
| estimated_time | Yes |