Tripo3d Convert API Documentation
Playground
Try it on WaveSpeedAI!Tripo3D Convert converts a 3D model to GLTF, FBX, USDZ, OBJ, STL or 3MF, with optional remeshing and export settings. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
Tripo3D Convert converts a 3D model to GLTF, FBX, USDZ, OBJ, STL or 3MF, with optional remeshing and export settings, powered by Tripo.
Why Choose This?
-
Official Tripo models The same Tripo models used in Tripo Studio, served as a REST API.
-
Production-ready output Download the result as a 3D file ready for game engines, DCC tools, AR and 3D printing.
-
Pay per task No subscription; you pay only for what you run.
Parameters
| Parameter | Required | Description |
|---|---|---|
| model | Yes | The 3D model to process (GLB, GLTF, FBX, OBJ or STL, up to 150 MB). |
| format | Yes | Target format: GLTF (web), FBX (game engines, DCC tools), USDZ (Apple AR), OBJ, STL or 3MF (3D printing). Options: GLTF, FBX, USDZ, OBJ, STL, 3MF. Default: FBX. |
| quad | No | Remesh to quads (forces FBX). Without a face_limit it targets 10,000 faces. Default: false. |
| face_limit | No | Maximum number of faces. Omit to keep the original count. |
| texture_size | No | Diffuse texture size in pixels. Default: 4096. |
| texture_format | No | Texture image format. Options: JPEG, PNG, WEBP. Default: JPEG. |
| pivot_to_center_bottom | No | Move the pivot to the bottom center. Default: false. |
| scale_factor | No | Scale factor for the exported model. Default: 1. |
| flatten_bottom | No | Flatten the bottom of the model. Default: false. |
| export_orientation | No | Forward axis of the export. Options: +x, -x, +y, -y. Default: +x. |
| fbx_preset | No | FBX compatibility preset. Options: blender, 3dsmax, mixamo, bake_scale. Default: blender. |
| bake | No | Bake advanced materials into base textures. Default: true. |
| with_animation | No | Keep skeleton and animation data. Default: true. |
| animate_in_place | No | Play animations in place, without root motion. Default: false. |
Pricing
$0.06 per conversion; $0.12 when quad, face_limit, flatten_bottom, texture_size, texture_format, pivot_to_center_bottom or scale_factor differ from the defaults.
How to Use
- Upload your 3D model — GLB, GLTF, FBX, OBJ or STL.
- Adjust the options you need, or keep the defaults.
- Submit — download the 3D file when it is ready.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
set -euo pipefail
export WAVESPEED_API_KEY="your-api-key"
REQUEST_BODY=$(cat <<'JSON'
{
"model": "example",
"format": "FBX",
"quad": false,
"texture_size": 4096,
"texture_format": "JPEG",
"pivot_to_center_bottom": false,
"scale_factor": 1,
"flatten_bottom": false,
"export_orientation": "+x",
"fbx_preset": "blender",
"bake": true,
"with_animation": true,
"animate_in_place": false
}
JSON
)
# 1. Submit the prediction once. Never retry this request automatically:
# a retry after an unclear failure can create a second, billed task.
CHECK='The task may already exist. Check History or the predictions list before submitting again.'
if ! SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
--connect-timeout 10 --max-time 60 \
-X POST "https://api.wavespeed.ai/api/v3/tripo3d/convert" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}" \
-H "Content-Type: application/json" \
-d "${REQUEST_BODY}"); then
printf 'Submit failed. %s\n' "${CHECK}" >&2
exit 1
fi
TASK=$(printf '%s' "${SUBMIT_RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "${TASK}" | jq -r '.id // empty')
if [ -z "${PREDICTION_ID}" ]; then
printf 'Submission response did not contain a prediction id. %s\n' "${CHECK}" >&2
exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/${PREDICTION_ID}/result"
# 2. Poll until the prediction reaches a final status.
BODY_FILE=$(mktemp)
trap 'rm -f "${BODY_FILE}"' EXIT
while true; do
# Transient errors (429, 5xx) are retried, honoring Retry-After.
HTTP_CODE=$(curl --silent --show-error --fail-with-body \
--connect-timeout 10 --max-time 60 --retry 5 --retry-delay 2 \
--output "${BODY_FILE}" --write-out '%{http_code}' \
"${RESULT_URL}" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}" || true)
case "${HTTP_CODE}" in
2??) ;;
000|429|5??) # dropped connection or temporary error: keep polling
printf 'Task %s: HTTP %s, polling again in 10s\n' "${PREDICTION_ID}" "${HTTP_CODE}" >&2
sleep 10; continue ;;
*) printf 'Task %s: HTTP %s\n' "${PREDICTION_ID}" "${HTTP_CODE}" >&2
cat "${BODY_FILE}" >&2; exit 1 ;;
esac
RESULT=$(jq 'if type == "object" and has("data") then .data else . end' "${BODY_FILE}")
STATUS=$(printf '%s' "${RESULT}" | jq -r '.status // empty')
case "${STATUS}" in
completed) printf '%s\n' "${RESULT}" | jq '.outputs'; break ;;
failed|cancelled|timeout|deleted)
printf 'Task %s ended with status %s\n' "${PREDICTION_ID}" "${STATUS}" >&2
printf '%s\n' "${RESULT}" | jq . >&2; exit 1 ;;
*) sleep 2 ;;
esac
doneRetry temporary errors only while polling, never the submit request. Errors, retries and timeouts
Parameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| model | string | Yes | - | - | The 3D model to process (GLB, GLTF, FBX, OBJ or STL, up to 150 MB). |
| format | string | Yes | FBX | GLTF, FBX, USDZ, OBJ, STL, 3MF | Target format: GLTF (web), FBX (game engines, DCC tools), USDZ (Apple AR), OBJ, STL or 3MF (3D printing). |
| quad | boolean | No | false | - | Remesh to quads (forces FBX). Without a face_limit it targets 10,000 faces. |
| face_limit | integer | No | - | 48 ~ ∞ | Maximum number of faces. Omit to keep the original count. |
| texture_size | integer | No | 4096 | 128 ~ 8192 | Diffuse texture size in pixels. |
| texture_format | string | No | JPEG | JPEG, PNG, WEBP | Texture image format. |
| pivot_to_center_bottom | boolean | No | false | - | Move the pivot to the bottom center. |
| scale_factor | number | No | 1 | - | Scale factor for the exported model. |
| flatten_bottom | boolean | No | false | - | Flatten the bottom of the model. |
| export_orientation | string | No | +x | +x, -x, +y, -y | Forward axis of the export. |
| fbx_preset | string | No | blender | blender, 3dsmax, mixamo, bake_scale | FBX compatibility preset. |
| bake | boolean | No | true | - | Bake advanced materials into base textures. |
| with_animation | boolean | No | true | - | Keep skeleton and animation data. |
| animate_in_place | boolean | No | false | - | Play animations in place, without root motion. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Output values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.status | string | Task status. completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses. |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction |
| data.model | string | Model ID used for the prediction |
| data.outputs | array<string | object> | Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model. |
| data.urls | object | Object containing related API endpoints |
| data.status | string | Status: completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses |
| data.created_at | string | ISO timestamp of when the request was created |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |