task_type: image-to-3d and text-to-3d.preview builds the mesh, then refine adds textures — pass the task_id returned by your preview task as preview_task_id..glb model file hosted on our servers and kept for 3 days.{
"model": "meshy",
"task_type": "text-to-3d",
"input": {
"mode": "preview",
"prompt": "a small ceramic teapot, simple shape",
"art_style": "realistic",
"should_remesh": true
},
"config": {
"service_mode": "public"
}
}curl --location 'https://api.piapi.ai/api/v1/task' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data '{
"model": "meshy",
"task_type": "text-to-3d",
"input": {
"mode": "preview",
"prompt": "a small ceramic teapot, simple shape",
"art_style": "realistic",
"should_remesh": true
},
"config": {
"service_mode": "public"
}
}'{
"code": 200,
"data": {
"task_id": "42247ddb-bcf1-4b2e-b2f4-2b2870df1469",
"model": "meshy",
"task_type": "image-to-3d",
"status": "pending",
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": {
"image_url": "https://img.theapi.app/temp/e7da0939-1b67-44fb-a587-5ea1601d0aeb.png",
"should_texture": true,
"should_remesh": true,
"result_formats": [
"glb"
]
},
"output": null,
"meta": {
"created_at": "2026-09-29T09:22:17.153849693Z",
"started_at": "0001-01-01T00:00:00Z",
"ended_at": "0001-01-01T00:00:00Z",
"usage": {
"type": "point",
"frozen": 3600000,
"consume": 0
},
"is_using_private_pool": false
},
"detail": null,
"logs": [],
"error": {
"code": 0,
"message": "",
"detail": null
}
},
"message": "success"
}