跳至內容

Tripo H3.1 Image to 3D

整合

模型 id tripo3d/h3.1/image-to-3d
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/tripo3d/h3.1/image-to-3d?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

像範例一樣的檔案: $0.30 300 API 點數 · ≈ ₽32.19 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Tripo 圖像轉 3D #3d#image-to-3d#3d-generation#tripo

單張圖片 3D 生成,支援 PBR 材質、四邊形網格與面數控制

Tripo · 3D

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

•必填 image_url
拖放檔案,或

用於建立 3D 模型的輸入圖像 URL。

texture_quality 預設 standard

紋理品質設定;選擇 'detailed' 會提高紋理解析度。

geometry_quality 預設 standard

幾何的品質設定。

進階 texture_alignment · orientation · face_limit · model_seed · texture_seed · auto_size · enable_safety_checker
texture_alignment 預設 original_image

紋理對齊參照:對生成的幾何使用 'geometry',或對輸入圖像使用 'original_image'。

orientation 預設 default

模型方向;'align_image' 會自動旋轉模型,使其符合輸入圖像。

網格生成的明確面數目標;提供時會覆寫模型的自適應面數選擇。

用於讓幾何生成可重現的 Seed。

用於讓紋理生成可重現的 Seed。

POST /run/tripo3d/h3.1/image-to-3d?wait=20 報價 → $0.30
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/tripo3d/h3.1/image-to-3d?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 Tripo H3.1 Image to 3D

從 `image_url` 中的一張圖像建立 3D 模型。選項包括 `face_limit`(1,000 至 2,000,000)、`texture`、`pbr`、標準或詳細的 `texture_quality` 和 `geometry_quality`、`quad` 拓撲、`auto_size` 與 `orientation`。結果包含預覽渲染和之後進行綁定所需的工作 ID。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
image_url必填 image
類型url · image
用於建立 3D 模型的輸入圖像 URL。
face_limit選填
類型integer | null
1,000 – 2,000,000
網格生成的明確面數目標;提供時會覆寫模型的自適應面數選擇。
texture選填
類型boolean
預設值true
控制模型是否接收生成的紋理。
pbr選填
類型boolean
預設值true
啟用 PBR 材質(Physically Based Rendering);設為 true 時也會啟用紋理生成。
model_seed選填
類型integer | null
用於讓幾何生成可重現的 Seed。
texture_seed選填
類型integer | null
用於讓紋理生成可重現的 Seed。
texture_quality選填
類型enum
預設值standard
standarddetailed
紋理品質設定;選擇 'detailed' 會提高紋理解析度。
geometry_quality選填
類型enum
預設值standard
standarddetailed
幾何的品質設定。
texture_alignment選填
類型enum
預設值original_image
original_imagegeometry
紋理對齊參照:對生成的幾何使用 'geometry',或對輸入圖像使用 'original_image'。
auto_size選填
類型boolean
預設值false
自動縮放模型,使其具有以公尺測量的實際尺寸。
orientation選填
類型enum
預設值default
defaultalign_image
模型方向;'align_image' 會自動旋轉模型,使其符合輸入圖像。
quad選填
類型boolean
預設值false
啟用四邊形拓撲,在三角形面與四邊形面之間選擇。對於四邊形結果,只要 Tripo 以 FBX 位元組提供資料,就會回傳 FBX 檔案。
enable_safety_checker選填
類型boolean
預設值true
在呼叫端獲得授權的情況下,將此值設為 false 可放寬審核。
必填 標準名稱,也可使用

檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "tripo3d/h3.1/image-to-3d",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 300,
    "usd": "0.30",
    "charged": 300,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "model_mesh": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "model_urls": {
      "glb": {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      },
      "fbx": {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      },
      "base_model": {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      },
      "pbr_model": {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    },
    "rendered_image": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "task_id": "string"
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
您的檔案,由您選擇每個 outputs[].url 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 type、url、content_type、width、height 和 duration。output 是模型自己的結果物件。
輸出欄位
model_mesh
object {url, content_type, file_name, file_size}包含生成 3D 模型的 GLB 或 FBX 檔案,格式取決於 Tripo 產生的內容。
model_urls
object {glb, fbx, base_model, pbr_model}指向 3D 模型替代版本的 URL。
rendered_image
object {url, content_type, file_name, file_size} | null顯示生成 3D 模型的渲染預覽。
task_id
string | null識別生成模型的可重複使用 Tripo 工作 ID,可在不重新上傳模型的情況下執行 rig 或 rig-check。

更多模型:圖像轉 3D

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/tripo3d/h3.1/image-to-3d.md. 所有模型與指南: https://doitong.com/developers/llms.txt