
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. |
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). |
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. |
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. |
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"}'
{"created_at": 1793094400,"id": "<JOB_ID>","object": "3d_job","request_id": "<REQUEST_ID>","status": "queued"}
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>"}'
{"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"}
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan