Meshy Relief API reference
Turn a photo into a printable relief plaque, with GLB, STL and a depth map
Call Meshy Relief from your own code with one PopNow API key. Below are the exact model IDs to send, every input field the model accepts, what each request costs in USD, and a request you can paste into a terminal.
At a glance
- Made by
- Meshy
- Output
- Image
- From
- $0.96 USD per request
- Model IDs
Prices are in USD, charged to your PopNow balance. A task reserves the maximum possible charge when accepted and settles actual usage on completion; any remainder is released. Failed tasks are not charged. Call POST /api/v1/jobs/quote for an exact quote before running.
Photo Relief
meshy/relief/image-to-3d
Price
| Option | USD |
|---|---|
Default | $0.96 per request |
Parameters
| Field | Type | Default | Allowed | What it does |
|---|---|---|---|---|
image_urlRequired | string | — | — | The photo to carve: JPEG, PNG or WebP, at least 32 × 32 pixels, up to 20 MB. A clear subject on a plain background works best. |
relief_heightOptional | string | low | low, high | Relief style: low carves about 3 mm deep by default, high about 6 mm. |
carving_modeOptional | string | emboss | emboss, engrave | emboss raises the subject from the plate; engrave cuts the nearer parts into it. |
carving_depth_mmOptional | number | — | 0 to 60 | Carving depth in millimetres. Leave it unset to use the depth of the chosen relief style. |
size_mmOptional | number | 60 | 20 to 250 | Length of the photo's longer side on the model, in millimetres, measured flat before any bend. |
base_thickness_mmOptional | number | — | 0.1 to 10 | Thickness of the back plate in millimetres. Leave it unset when remove_base is on. |
remove_baseOptional | boolean | false | — | Cut the background away and build no back plate, leaving only the subject. |
removal_thresholdOptional | number | 0.01 | 0.01 to 1 | Depth below which the background is cut away, from 0.01 to 1. Only used with remove_base. |
bend_modeOptional | string | off | off, convex, concave | Bend the whole relief: convex bulges the front outward, concave curves it inward. |
bend_axisOptional | string | xz | xz, yz | Which edges curl when bending: xz curls the left and right edges, yz the top and bottom. |
bend_angleOptional | number | 60 | 0 to 360 | Arc the bend spans, in degrees, from 0 to 360. |
mesh_resolutionOptional | integer | 1024 | 512 to 1024 | Mesh points along the longer side, from 512 to 1,024. Lower makes smaller files with less fine detail. |
Example request
This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.
The example uses PopNow sample files in image_url. Replace them with your own public HTTPS links, uploads or saved assets.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "meshy/relief/image-to-3d",
"input": {
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp"
}
}'The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
