Meshy Relief API-Referenz
Aus einem Foto wird eine druckbare Reliefplatte, mit GLB, STL und Tiefenkarte
Mit einem einzigen PopNow-API-Schlüssel rufst du Meshy Relief aus deinem eigenen Code auf. Hier findest du die Modell-IDs, jedes Eingabefeld, die Kosten pro Anfrage in USD und eine Anfrage, die du direkt ins Terminal kopieren kannst.
Die Parameterbeschreibungen stammen aus dem Eingabeschema des Modells und sind nur auf Englisch verfügbar.
Auf einen Blick
- Hersteller
- Meshy
- Ergebnis
- Bild
- Ab
- $0.96 USD pro Anfrage
- Modell-IDs
Die Preise werden in USD angezeigt und von deinem PopNow-Guthaben abgebucht. Bei Annahme wird der Höchstbetrag reserviert, nach Abschluss der tatsächliche Verbrauch abgerechnet und der Rest freigegeben. Fehlgeschlagene Tasks kosten nichts. Ein genaues Angebot erhältst du vorab über POST /api/v1/jobs/quote.
Fotorelief
meshy/relief/image-to-3d
Preis
| Option | USD |
|---|---|
Standard | $0.96 pro Anfrage |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
image_urlPflicht | 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 bis 60 | Carving depth in millimetres. Leave it unset to use the depth of the chosen relief style. |
size_mmOptional | number | 60 | 20 bis 250 | Length of the photo's longer side on the model, in millimetres, measured flat before any bend. |
base_thickness_mmOptional | number | — | 0.1 bis 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 bis 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 bis 360 | Arc the bend spans, in degrees, from 0 to 360. |
mesh_resolutionOptional | integer | 1024 | 512 bis 1024 | Mesh points along the longer side, from 512 to 1,024. Lower makes smaller files with less fine detail. |
Beispielanfrage
Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.
Das Beispiel nutzt in image_url Beispieldateien von PopNow. Ersetze sie durch eigene öffentliche HTTPS-Links, Uploads oder gespeicherte 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"
}
}'Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
