上傳一張圖片,使用 Tripo3D(H 系列)AI 自動生成可下載的 3D 模型(GLB)。
正在建立任務...
(用時 0 秒)
進度 0%
發生錯誤
本頁透過後端代理呼叫 Tripo3D(API Key 保存在伺服器端)。流程為「建立任務 → 輪詢任務」兩步。
/api/tripo3d/generate| 欄位 | 必填 | 說明 |
|---|---|---|
| image | 是 | 要生成 3D 模型的圖片(也支援 file / artwork_image 欄位名)。 |
| model | 否 | 模型版本,預設 v3.0-20250812(H 系列穩定版)。 |
| texture | 否 | 1 或 0,是否生成貼圖,預設 1。 |
| pbr | 否 | 1 或 0,是否啟用 PBR 材質,預設 0。 |
| smart_low_poly | 否 | 1 或 0,是否生成乾淨低面數模型,預設 1(需 model ≥ v3.0-20250812)。 |
| face_limit | 否 | 輸出網格最大面數,預設 5000。 |
curl -X POST "http://34.81.2.129/face_lineart/api/tripo3d/generate" \
-F "image=@./photo.jpg" \
-F "model=v3.0-20250812" \
-F "texture=1" \
-F "pbr=0" \
-F "smart_low_poly=1" \
-F "face_limit=5000"
{
"success": true,
"message": "任務已建立,請輪詢任務狀態",
"data": {
"task_id": "task_abc123",
"input_image": "/uploads/tripo_input_...",
"model_used": "v3.0-20250812"
}
}
/api/tripo3d/task/<task_id>每 2~3 秒輪詢一次,status 為 queued / running / success / failed / cancelled。
{
"success": true,
"data": {
"task_id": "task_abc123",
"status": "success",
"progress": 100,
"model_url": "https://cdn.tripo3d.ai/output/model_pbr.glb",
"rendered_image_url": "https://cdn.tripo3d.ai/output/preview.png"
}
}
注意:model_url 約 5 分鐘後過期,取得後請盡快下載。
/api/tripo3d/status{ "success": true, "online": true, "provider": "tripo3d", "default_model": "v3.1-20260211" }