PopNowAPI 文件
主要內容

Tripo 3D Tools API 呼叫參考

為完成的 3D 模型綁骨、套動作、換貼圖,並轉成 GLB、FBX 或 STL

只要一把 PopNow API 金鑰,就能在自己的程式裡呼叫 Tripo 3D Tools。以下列出要填的呼叫名稱、這個型號接受的每個輸入欄位、每次請求花多少美元(USD),以及一段可以直接貼進終端機執行的請求。

參數說明直接取自型號的輸入 schema,目前只有英文。

總覽

開發商
Tripo
產出
圖片
起價
$0.072 USD 每次請求

價格以 USD 顯示,從你的 PopNow 餘額扣款。任務受理時預留可能的最高費用,完成後依實際用量結算並釋放餘款;失敗任務不收費。執行前可呼叫 POST /api/v1/jobs/quote 取得準確報價。

3D 動作

tripo/tools/animate

價格

選項USD
預設$0.504 每次請求

參數

欄位型別預設值可用值用途
mesh_url必填string——The 3D character to animate: a GLB, binary FBX, OBJ or STL file up to 90 MB. It does not need a skeleton; one is added in the same run.
animations必填array<object>—最多 5 項One to five preset motions, one per row. Each becomes a named clip in the file and adds to the price.
rig_type選填stringautoauto, biped, quadruped, hexapod, octopod, avian, serpentine, aquatic, othersSkeleton type. auto picks one from the shape; choose another for animals and creatures. Does not change the price.
bone_naming選填stringtripotripo, mixamo, actorcore, unity, unreal, vrmBone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price.
output_format選填stringglbglb, fbxFile format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price.
in_place選填booleanfalse—Play the motions on the spot, without forward movement (no root motion). Does not change the price.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 mesh_url 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "tripo/tools/animate",
  "input": {
    "mesh_url": "https://media.popnow.ai/image-to-3d/kettle-04641a.glb",
    "animations": [
      {
        "name": "idle"
      }
    ]
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

3D 格式轉換

tripo/tools/convert

價格

選項USD
預設$0.072 每次請求

參數

欄位型別預設值可用值用途
mesh_url必填string——The 3D model to convert: a GLB, binary FBX, OBJ or STL file up to 90 MB. Skeleton and animation are carried over by default.
output_format必填string—glb, fbx, stlTarget format: glb for browsers and web games, fbx for animation software and engines, stl for 3D printing (geometry only). Does not change the price.
quad_mesh選填booleanfalse—Remesh to four-sided polygons (about 10,000 faces unless face_limit is set). Requires output_format fbx. Uses the higher rate.
face_limit選填integer—48 到 2000000Maximum number of faces, 48 to 2,000,000. Leave empty to keep the original count. Setting it uses the higher rate.
texture_size選填integer4096128 到 8192Diffuse texture size in pixels, 128 to 8192. Any value other than 4096 uses the higher rate.
texture_format選填stringjpegjpeg, png, webpImage format of the exported textures. png or webp uses the higher rate.
pivot_to_bottom選填booleanfalse—Move the pivot to the centre of the model's base. Uses the higher rate.
scale_factor選填number10.001 到 1000Uniform scale for the exported model. Any value other than 1 uses the higher rate.
flatten_bottom選填booleanfalse—Flatten the underside of the model, useful for 3D printing. Uses the higher rate.
forward_axis選填string+x+x, -x, +y, -yAxis the model faces in the exported file. Does not change the price.
fbx_preset選填stringblenderblender, 3dsmax, mixamo, bake_scaleCompatibility preset for FBX exports. Does not change the price.
bake_textures選填booleantrue—Bake advanced materials into the base textures. Does not change the price.
keep_animation選填booleantrue—Keep skeleton and animation data. Turn off for a static mesh. Does not change the price.
in_place選填booleanfalse—Remove forward movement from animation clips during export. Does not change the price.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 mesh_url 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "tripo/tools/convert",
  "input": {
    "mesh_url": "https://media.popnow.ai/image-to-3d/kettle-04641a.glb",
    "output_format": "glb",
    "flatten_bottom": false,
    "scale_factor": 1,
    "pivot_to_bottom": false,
    "texture_format": "jpeg",
    "texture_size": 4096,
    "quad_mesh": false
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

3D 換貼圖

tripo/tools/retexture

價格

選項USD
預設$0.12 每次請求

參數

欄位型別預設值可用值用途
mesh_url必填string——The 3D model to repaint: a GLB, binary FBX, OBJ or STL file up to 90 MB. The shape is kept; only the textures are rebuilt.
texture_prompt選填string——What the new surface should look like: colours, materials, wear, markings. Give this, texture_image_url, or both.
texture_image_url選填string (uri)——A picture to texture from. Alone it is matched onto the model; with texture_prompt it is used as the style reference.
texture_quality選填stringstandardstandard, fast, detailed, extremestandard (default) or fast at the base rate, detailed for higher-resolution maps at twice the base rate, extreme for 8K maps at three times the base rate.
generate_pbr選填booleantrue—Add metal-roughness and normal maps next to the base colour. On by default. Does not change the price.
remove_lighting選填booleantrue—Strip shadows and highlights from the reference picture before texturing. On by default. Does not change the price.
texture_alignment選填stringoriginal_imageoriginal_image, geometryFollow the colours of the reference picture (default) or the shape of the mesh. Does not change the price.
bake_textures選填booleantrue—Bake advanced material effects into the standard texture maps for wider compatibility. On by default. Does not change the price.
texture_seed選填integer—0 到 2147483647Seed for the texture step. Change it for another variation on the same mesh.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 mesh_url 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "tripo/tools/retexture",
  "input": {
    "mesh_url": "https://media.popnow.ai/image-to-3d/kettle-04641a.glb",
    "texture_quality": "standard"
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

3D 綁骨

tripo/tools/rig

價格

選項USD
預設$0.36 每次請求

參數

欄位型別預設值可用值用途
mesh_url必填string——The 3D model to rig: a GLB, binary FBX, OBJ or STL file up to 90 MB. Geometry and textures are kept; a skeleton is added.
rig_type選填stringautoauto, biped, quadruped, hexapod, octopod, avian, serpentine, aquatic, othersSkeleton type. auto picks one from the shape; choose another for animals and creatures. Does not change the price.
bone_naming選填stringtripotripo, mixamo, actorcore, unity, unreal, vrmBone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price.
output_format選填stringglbglb, fbxFile format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 mesh_url 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "tripo/tools/rig",
  "input": {
    "mesh_url": "https://media.popnow.ai/image-to-3d/kettle-04641a.glb"
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

接下來

本頁內容