Image to 3D mesh
$0.24
- Mesh-only GLB output
Meshy 3D API / 用于图像转 3D 和文本转 3D 生成
使用 通过 PiAPI 提交异步 3D 生成任务,并获取完成的 GLB 资产。
通过 PiAPI 按成功生成次数付费。
$0.24
from $0.36
from $0.24
发送图片 URL,选择仅网格输出,或选择纹理分辨率为 2K、4K 或 8K 的带纹理输出。
使用提示词启动文本转 3D 预览任务,完成后使用其 PiAPI task_id 进行精修。
精修请求接受 preview_task_id,并通过相同的任务轮询流程返回完成的 GLB 模型。
向 PiAPI 提交任务,轮询任务状态或使用 webhook,然后从 output.model_file 读取完成的模型。
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "meshy",
"task_type": "image-to-3d",
"input": {
"image_url": "YOUR_IMAGE_URL",
"should_texture": true,
"texture_resolution": "2k"
}
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'model_file
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "meshy",
"task_type": "text-to-3d",
"input": {
"mode": "preview",
"prompt": "A ceramic teapot",
"texture_resolution": "2k"
}
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'model_file
使用 mode=preview 创建预览,等待完成后,将其 PiAPI task_id 作为 preview_task_id,并以 mode=refine 发送请求。
费用估算随 should_texture 和 texture_resolution 变化。工作区会在提交前显示所选配置的估算费用。
请查看本页链接的 Meshy 创建任务和获取任务 API 文档。
More questions? See the API docs.