tencent cloud

LLM Service TokenHub

Tripo-3D-Retopology API Guide

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-23 19:11:00
Diterjemahkan oleh AI

Introduction

The Tripo retopology model supports mesh reduction and topology optimization for 3D models, preserves clean topology, and can also perform automatic UV unwrapping in the new-generation retopology tasks.

Integration Guide

1. Obtaining an API Key

1. Go to the API Key Management page and click Create API Key. For detailed operations, see Create API Key.
2. After creation, be sure to copy and securely store the API Key. This information will be used in the subsequent process of configuring the tool.

Note:
The key of each account can only be queried by that account. The key information of the main account is not visible to sub-accounts. If a sub-account needs to call APIs, it must create its own key information.
If a sub-account cannot be created, the user may not have permission to create keys. In this case, authorization from the main account is required. After the main account logs in, click User List, select Authorization next to the corresponding sub-account, and a policy association dialog will appear. Enter the authorization policy name, search for it, select the corresponding policy, and click Confirm.
Authorization policy: QcloudTokenhubFullAccess

2. Concurrency Quota

By default, 3 concurrent tasks are provided, meaning up to 3 submitted tasks can be processed simultaneously. Tasks that exceed the concurrency limit must wait until the preceding tasks are completed before they can start processing.
Concurrent tasks: the maximum number of tasks that can run during the period when the corresponding service is being called. While a task is not completed, you cannot submit the next task. After the task is completed, you can submit the next task.

API Documentation

Submitting a Tripo Retopology Task

Input parameters
Parameter Name
Required
Type
Parameter Description
model
Yes
string
Model name. Defaults to tripo-3d-retopology. Example value: tripo-3d-retopology.
input
Yes
string
Publicly accessible URL of a 3D model file. Supported formats: GLB, GLTF, FBX, OBJ, STL. Maximum size: 150 MB.
model_version
No
string
Retopology algorithm version. Optional values: v3.0, v2.0, and v1.0.
Retopology v3.0: the latest generation of retopology, which can also unwrap UVs within the same task. Billing by output topology: 35 credits for triangles and 40 credits for quads (quad=true).
face_limit: Optional. Triangular faces: 500–20,000. Quadrilateral faces: 500–10,000. If face_limit is omitted, the value is adaptive.
quad: Supported
smart_uv: Supported (v3.0 only)
bake: Supported (default: true)
part_names: Supported
Smart retopology: rebuilds clean topology while preserving edges and details.
face_limit: Optional. Triangular faces: 500–20,000. Quadrilateral faces: 500–10,000. If face_limit is omitted, the value is adaptive.
quad: Supported
bake: Supported (default: true)
part_names: Supported
format: Not supported (outputs GLB, or FBX when quad=true)
Basic decimation: decimation in the post-processing pipeline.
face_limit: Required. Maximum triangular faces: 2,000,000. Maximum quadrilateral faces: 150,000.
quad: Supported
bake, part_names: Not supported
face_limit
Conditional
integer
Target number of faces: optional for v3.0/v2.0, ranging from 500 to 20,000 for triangles and 500 to 10,000 for quads, with adaptive behavior when omitted. Required for v1.0, with a maximum of 2,000,000 for triangles and 150,000 for quads.
smart_uv
No
boolean
Unwraps UV during retopology. Only valid when model_version=v3.0. Defaults to false. If the parameter is passed in v1.0/v2.0, a 400 error (error code 1004) is returned and the parameter is not silently ignored.
quad
No
boolean
Outputs quad meshes. Supported in v3.0, v2.0, and v1.0. In v3.0, quad output is billed at 40 credits (35 for triangles).
bake
No
boolean
Whether to bake textures onto the low-poly model. Defaults to true. Not supported in v1.0.
part_names
No
string[]
Names of parts to be decimated, derived from semantic segmentation. Not supported in v1.0.
Output parameters
Parameter Name
Type
Description
id
string
Task ID, valid for 24 hours, used to query results.
request_id
string
Unique request ID generated by the server, used to locate issues.
object
string
Type of the returned object. Example: 3d_job.
created_at
integer
Time when the task was created.
status
string
Task status: queued (waiting), in_progress (in progress), completed (successful), failed (failed).

Querying a Tripo Retopology Task

Input parameters
Parameter Name
Required
Type
Parameter Description
model
Yes
string
Model name. Defaults to tripo-3d-retopology. Example value: tripo-3d-retopology.
id
Yes
string
Task ID returned by the submission API. Example value: xxxxx.
Output parameters
Parameter Name
Type
Description
status
string
Task status: completed (successful), failed (failed), in_progress (in progress), queued (waiting).
request_id
string
Request ID generated by the server, used to locate issues.
object
string
Type of the returned object. Example: 3d_job.
created_at
integer
Time when the task was created.
completed_at
integer
Time when the task was completed.
progress
integer
Task progress, ranging from 0 to 100.
data
object
Generated result, available only when status=completed.
data.model_url
string
URL of the retopologized 3D model file (GLB format).
data.rendered_image_url
string
URL of the rendered preview image.
error_code
integer
Returned when status=failed, indicating the failure reason.
error_message
string
Returned when status=failed and error_code is present, providing the corresponding error description.
credits_consumed
number
Credits consumed, with a minimum of two decimal places.

Examples

Submitting a Tripo Retopology Task

Input Example
curl --location --request POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/api/3d/submit' \\
--header "Authorization: Bearer ${APIKEY}" \\
--header 'Content-Type: application/json' \\
--data-raw '{
"model": "tripo-3d-retopology",
"input": "https://example.com/model.glb"
}'
Output Example
{
"created_at": 1793094400,
"id": "<JOB_ID>",
"object": "3d_job",
"request_id": "<REQUEST_ID>",
"status": "queued"
}

Querying a Tripo Retopology Task

Input Example
curl --location --request POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/api/3d/query' \\
--header "Authorization: Bearer ${APIKEY}" \\
--header 'Content-Type: application/json' \\
--data-raw '{
"model": "tripo-3d-retopology",
"id": "<JOB_ID>"
}'
Output Example
{
"created_at": 1793094500,
"data": [
{
"model_url": "https://example.com/model.glb",
"rendered_image_url": "https://example.com/model.png"
}
],
"object": "3d_job",
"request_id": "<REQUEST_ID>",
"status": "completed"
}





Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan