PopNowAPI Docs
Main content

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

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

OptionUSD
Default$0.96 per request

Parameters

FieldTypeDefaultAllowedWhat it does
image_urlRequiredstring——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_heightOptionalstringlowlow, highRelief style: low carves about 3 mm deep by default, high about 6 mm.
carving_modeOptionalstringembossemboss, engraveemboss raises the subject from the plate; engrave cuts the nearer parts into it.
carving_depth_mmOptionalnumber—0 to 60Carving depth in millimetres. Leave it unset to use the depth of the chosen relief style.
size_mmOptionalnumber6020 to 250Length of the photo's longer side on the model, in millimetres, measured flat before any bend.
base_thickness_mmOptionalnumber—0.1 to 10Thickness of the back plate in millimetres. Leave it unset when remove_base is on.
remove_baseOptionalbooleanfalse—Cut the background away and build no back plate, leaving only the subject.
removal_thresholdOptionalnumber0.010.01 to 1Depth below which the background is cut away, from 0.01 to 1. Only used with remove_base.
bend_modeOptionalstringoffoff, convex, concaveBend the whole relief: convex bulges the front outward, concave curves it inward.
bend_axisOptionalstringxzxz, yzWhich edges curl when bending: xz curls the left and right edges, yz the top and bottom.
bend_angleOptionalnumber600 to 360Arc the bend spans, in degrees, from 0 to 360.
mesh_resolutionOptionalinteger1024512 to 1024Mesh 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.

POST /api/v1/jobs/createTask
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.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Next steps

On this page