Image or prompt in, asset out
Image to 3D models reconstruct an object from one photo; text to 3D models build one from a description. Both return a model_mesh file, a preview render and the format. Photos of a single object on a plain background work best, so a cutout from a background removal model is a good input.
3D models
Every model below takes the same three calls. Prices come from the catalog and are billed per 3D model or per the unit shown.
- tencent/hunyuan3d-2-1$0.15 / 3D model
- Hunyuan3D 2.1. Open weights image to 3D model producing textured meshes with PBR materials. Open weights.
- microsoft/trellis$0.02 / 3D model
- TRELLIS. Open source structured latent model that turns one image into a 3D asset. Open weights.
- tripo/tripo-v2-5$0.20 / 3D model
- Tripo v2.5. Image to 3D with clean topology and PBR textures, suited to game and product assets.
- meshy/meshy-5-text-to-3d$0.40 / 3D model
- Meshy 5 Text to 3D. Generate a textured 3D asset from a prompt, with a preview mesh first and a refine pass.
Inputs of Hunyuan3D 2.1
This walkthrough uses tencent/hunyuan3d-2-1. Its inputs, read from the same schema that GET /models/tencent/hunyuan3d-2-1 returns:
- image_urlimage_url, required
- Object photo on a plain background works best.
- textured_meshboolean
- Generate PBR textures. Default
true. - octree_resolutioninteger
- Mesh detail. From
128to512. Default256. - seedinteger
- Fix the seed to reproduce a result. Leave empty for random. From
0to2147483647.
Submit the request
curl -X POST "https://inferlane.net/api/v1/queue/tencent/hunyuan3d-2-1" \
-H "Authorization: Key $API_KEY" \
-H "Content-Type: application/json" \
-d '{"image_url":"/media/outputs/cutout-1x1.png","textured_mesh":true}'The answer is 202 with a request_id. Keep it: export REQUEST_ID="...".
Poll until it completes
Poll the status about once a second. A Hunyuan3D 2.1 request completes in about 8 seconds.
curl "https://inferlane.net/api/v1/requests/$REQUEST_ID/status" \
-H "Authorization: Key $API_KEY"Read the result
curl "https://inferlane.net/api/v1/requests/$REQUEST_ID" \
-H "Authorization: Key $API_KEY"{
"request_id": "dGVuY2VudC9odW55dWFuM2QtMi0xfG11cXpkMHZzfDF8Y2IyYWVmZmJ8NTZhZWEy",
"model_id": "tencent/hunyuan3d-2-1",
"status": "COMPLETED",
"sample": true,
"output": {
"model_mesh": null,
"preview": {
"url": "https://inferlane.net/media/outputs/object-render-1x1.webp",
"width": 1024,
"height": 1024,
"content_type": "image/webp"
},
"format": "glb"
},
"billing": {
"unit": "model",
"quantity": 1,
"unit_price": 0.15,
"amount": 0.15,
"currency": "USD",
"sample": true
},
"timings": {
"queue_ms": 1500,
"inference_ms": 6500
},
"submitted_at": "2026-10-02T13:09:55.000Z",
"completed_at": "2026-10-02T13:10:03.000Z"
}model_mesh is null and only the preview render is returned. Check for null before downloading.Hunyuan3D 2.1 is priced at $0.15 / 3D model. Each 3D asset returned. This request bills a quantity of 1, so billing.amount is 0.15 USD.
The whole flow in one script
# 1. Submit the request and keep its request_id
REQUEST_ID=$(curl -s -X POST "https://inferlane.net/api/v1/queue/tencent/hunyuan3d-2-1" \
-H "Authorization: Key $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image_url": "/media/outputs/cutout-1x1.png",
"textured_mesh": true
}' \
| sed -n 's/.*"request_id": *"\([^"]*\)".*/\1/p')
# 2. Poll the status about once a second until it is COMPLETED
until curl -s "https://inferlane.net/api/v1/requests/$REQUEST_ID/status" \
-H "Authorization: Key $API_KEY" | grep -q '"status": "COMPLETED"'; do
sleep 1
done
# 3. Fetch the result
curl "https://inferlane.net/api/v1/requests/$REQUEST_ID" \
-H "Authorization: Key $API_KEY"Start from a prompt
curl -X POST "https://inferlane.net/api/v1/queue/meshy/meshy-5-text-to-3d" \
-H "Authorization: Key $API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"A small ceramic planter with a ribbed body and a matte sand glaze","art_style":"realistic"}'Meshy 5 Text to 3D is priced at $0.40 / 3D model. Each 3D asset returned. This request bills a quantity of 1, so billing.amount is 0.4 USD.