
Turns a photo into a bas-relief 3D model and a depth map for 3D printing, engraving, and carving, with size, carving depth, base, and bend controls.
Turns a photo into a bas-relief 3D model and a depth map for 3D printing, engraving, and carving, with size, carving depth, base, and bend controls.
meshy-relief/v1/3d/generationsmeshy/meshy-relief来自 EmpirioLabs 目录的实时按量计费价格。也可以选择包含每周用量额度的套餐。
Meshy Relief 通过 POST /v1/3d/generations 运行。请求会立即返回 job_id;轮询 GET /v1/jobs/{job_id} 直到任务完成,再从结果中读取输出 URL。 在EmpirioLabs 控制台获取 API 密钥。
curl https://api.empiriolabs.ai/v1/3d/generations \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "meshy-relief",
"prompt": "Describe what you want Meshy Relief to generate."
}'curl https://api.empiriolabs.ai/v1/jobs/JOB_ID \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY"import requests
response = requests.post(
"https://api.empiriolabs.ai/v1/3d/generations",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
json={
"model": "meshy-relief",
"prompt": "Describe what you want Meshy Relief to generate.",
},
)
job = response.json()
# Generation runs as an async job. Poll until it completes.
import time
while True:
status = requests.get(
f"https://api.empiriolabs.ai/v1/jobs/{job['job_id']}",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
).json()
if status.get("status") in ("completed", "failed"):
print(status)
break
time.sleep(5)EmpirioLabs 上 Meshy Relief API 支持的请求参数。省略字段时使用默认值。
| 参数 | 类型 | 默认值 | 范围 / 值 | 描述 |
|---|---|---|---|---|
| image | image | - | - | The photo to turn into a relief. JPG, PNG or WebP, up to 20 MB, as a URL or base64. Transparent areas are filled with black. |
| variant | enum | low | high, low | high carves deeper, for printed pieces. low carves shallow, for engraving, carving and thin plaques. |
| should_generate_model | boolean | true | - | Build the relief model. Off returns the depth map only, at the same price. |
| size_mm | number | 60 | 20 到 250 | The length of the photo's longer side on the model, in millimeters. |
| carving_mode | enum | emboss | emboss, engrave | emboss raises the near parts of the photo. engrave cuts them in. |
| carving_depth_mm | number | - | 0 到 60 | How deep the relief is carved, in millimeters. When unset: 6 for the high style, 3 for the low style. |
| remove_base | boolean | false | - | Cut away the background and build no base plate. |
| removal_threshold | number | 0.01 | 0.01 到 1 | The depth, from 0.01 to 1, below which the background is cut away. Applies when remove_base is on. |
| base_thickness_mm | number | - | 0.1 到 10 | The thickness of the base plate, in millimeters. When unset: 1. Not available when remove_base is on. |
| bend_mode | enum | off | off, convex, concave | off keeps the relief flat. convex bulges the front outward, concave curves it inward. |
| bend_axis | enum | xz | xz, yz | xz curls the left and right edges. yz curls the top and bottom edges. |
| bend_angle | number | 60 | 0 到 360 | The arc the bend spans, in degrees. |
| mesh_resolution | integer | 1024 | 512 到 2048 | The number of mesh points along the photo's longer side. A higher value keeps finer detail and makes larger files. |
Turns one photo into a relief: a raised or engraved model of the picture. Billing is per request.
涵盖这个模型的公告、提示词测试和对比文章。
在 EmpirioLabs,Meshy Relief 按量计费。也可以选择包含每周用量额度的套餐。本页的实时价格表始终与 API 的实际计费一致。
Meshy Relief 接受 图像 作为输入,并返回 3D。
Meshy Relief 通过 api.empiriolabs.ai 上的 POST /v1/3d/generations 提供,使用标准的 Bearer 令牌认证。
在请求中将 meshy-relief 作为 model 发送。备用 ID meshy/meshy-relief 同样可用。
Meshy 于 2026年11月5日 发布了 Meshy Relief。
可以。EmpirioLabs Playground在浏览器中以与 API 相同的参数运行 Meshy Relief,你可以在写代码之前先测试提示词。
创建 EmpirioLabs 账户,然后在控制台的 API Keys生成密钥。计费使用按量付费的额度,只为实际发出的请求付费。也可以选择包含每周用量额度的套餐。