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.