bakeboolean
Bake advanced materials into the textures.
Standard: true
tripo3d/tripo/convertTripo Convert exports a 3D model to GLTF, FBX, USDZ, OBJ, STL or 3MF, with optional quad remesh, scaling and texture settings.
Modell testen
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Tripo Convert exports a 3D model to GLTF, FBX, USDZ, OBJ, STL or 3MF, with optional quad remesh, scaling and texture settings.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the input 3D model (GLB, GLTF, FBX, OBJ or STL, up to 150 MB). |
format | GLTF / FBX / USDZ / OBJ / STL / 3MF, required | FBX | Output format. |
quad | boolean | false | Quad remesh (10,000 faces when face_limit is unset). Forces FBX. |
force_symmetry | boolean | false | Symmetric quad mesh. Only with quad. |
face_limit | integer | — | Target face count. Original when unset. |
texture_size | integer | 4096 | Texture size in pixels. |
texture_format | JPEG / PNG / WEBP / BMP / DPX / HDR / OPEN_EXR / TARGA / TIFF | JPEG | Texture image format. |
bake | boolean | true | Bake advanced materials into the textures. |
pack_uv | boolean | false | Pack all UV islands into one texture. |
export_vertex_colors | boolean | false | Vertex colors (OBJ and GLTF only). |
flatten_bottom | boolean | false | Flatten the bottom of the model. |
flatten_bottom_threshold | number | 0.01 | Depth flattened when flatten_bottom is on. |
pivot_to_center_bottom | boolean | false | Move the pivot to the bottom center. |
scale_factor | number | 1 | Uniform scale. |
with_animation | boolean | true | Keep animations. |
animate_in_place | boolean | false | Remove root motion from animations. |
part_names | array | — | Only process these parts (node names from a segmentation, e.g. tripo_part_0). All parts when unset. |
export_orientation | +x / -x / +y / -y | — | Forward axis of the exported model. |
fbx_preset | blender / 3dsmax / mixamo / bake_scale | blender | FBX target application. |
texture_packaging | embedded / zip | embedded | FBX only: embedded textures, or a zip with the FBX and a .fbm folder. |
url: Converted model file (a .zip when texture_packaging is zip).$0.05 per conversion; $0.10 when any of quad, face_limit, flatten_bottom, flatten_bottom_threshold, texture_size, texture_format, pivot_to_center_bottom or scale_factor is not the default. Failed runs are not charged.
Jetzt loslegen
Wählen Sie eine der unterstützten APIs mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "tripo3d/tripo/convert",
"bake": true,
"quad": false,
"format": "FBX",
"pack_uv": false,
"model_url": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/object.glb",
"fbx_preset": "blender",
"scale_factor": 1,
"texture_size": 4096,
"flatten_bottom": false,
"force_symmetry": false,
"texture_format": "JPEG",
"with_animation": true,
"animate_in_place": false,
"texture_packaging": "embedded",
"export_vertex_colors": false,
"pivot_to_center_bottom": false,
"flatten_bottom_threshold": 0.01
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Erstellen Sie einen SandBase API-Schlüssel und legen Sie ihn in Ihrer Serverumgebung fest. Alle Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie den Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis und committen Sie ihn nicht in ein Repository.
POST an /v1/run mit dieser Modell-ID und ihren Eingaben. Das obige Anfragebeispiel umfasst Übermittlung und Polling.
Verwenden Sie die zurückgegebene Run-ID zum Polling, bis der Status completed, failed oder timeout ist. Lesen Sie die Ausgabe erst nach completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Übergeben Sie eine öffentlich zugängliche Date-URL im Bild-, Video- oder Audiofeld des Modells. Unterstützte Formate und Limits werden neben jedem Playground-Eingabefeld angezeigt.
Verwenden Sie im Playground bei unterstützten Bildfeldern die Steuerung zum Hochladen oder Ersetzen. Video-URL-Felder akzeptieren ein gehostetes Fahrvideo; sie implizieren keine Unterstützung für Video-Uploads.
bakebooleanBake advanced materials into the textures.
Standard: true
quadbooleanQuad remesh (10,000 faces when face_limit is unset). Forces FBX.
Standard: false
formatstringerforderlichOutput format.
Standard: "FBX"
Mögliche Werte: "GLTF", "FBX", "USDZ", "OBJ", "STL", "3MF"
pack_uvbooleanPack all UV islands into one texture.
Standard: false
model_urlstringerforderlichURL of the input 3D model (GLB, GLTF, FBX, OBJ or STL, up to 150 MB).
face_limitintegerTarget face count. Original when unset.
Minimum: 1
fbx_presetstringFBX target application.
Standard: "blender"
Mögliche Werte: "blender", "3dsmax", "mixamo", "bake_scale"
part_namesarrayOnly process these parts (node names from a segmentation, e.g. tripo_part_0). All parts when unset.
scale_factornumberUniform scale.
Standard: 1
texture_sizeintegerTexture size in pixels.
Standard: 4096
flatten_bottombooleanFlatten the bottom of the model.
Standard: false
force_symmetrybooleanSymmetric quad mesh. Only with quad.
Standard: false
texture_formatstringTexture image format.
Standard: "JPEG"
Mögliche Werte: "JPEG", "PNG", "WEBP", "BMP", "DPX", "HDR", "OPEN_EXR", "TARGA", "TIFF"
with_animationbooleanKeep animations.
Standard: true
animate_in_placebooleanRemove root motion from animations.
Standard: false
texture_packagingstringFBX only: embedded textures, or a zip with the FBX and a .fbm folder.
Standard: "embedded"
Mögliche Werte: "embedded", "zip"
export_orientationstringForward axis of the exported model.
Mögliche Werte: "+x", "-x", "+y", "-y"
export_vertex_colorsbooleanVertex colors (OBJ and GLTF only).
Standard: false
pivot_to_center_bottombooleanMove the pivot to the bottom center.
Standard: false
flatten_bottom_thresholdnumberDepth flattened when flatten_bottom is on.
Standard: 0.01
{
"model": "tripo3d/tripo/convert",
"bake": true,
"quad": false,
"format": "FBX",
"pack_uv": false,
"model_url": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/object.glb",
"fbx_preset": "blender",
"scale_factor": 1,
"texture_size": 4096,
"flatten_bottom": false,
"force_symmetry": false,
"texture_format": "JPEG",
"with_animation": true,
"animate_in_place": false,
"texture_packaging": "embedded",
"export_vertex_colors": false,
"pivot_to_center_bottom": false,
"flatten_bottom_threshold": 0.01
}Ein abgeschlossener Run stellt sein Ergebnis in der Ausgabe bereit. Das Folgende ist das gespeicherte Beispiel des Modells, keine neue Generierung.
Noch wurde kein Beispiel für die Ausgabe veröffentlicht. Verwenden Sie Playground → Result → JSON nach einem abgeschlossenen Run, um Ihre Antwort zu prüfen.
Dieses Modell wird auch über Tripos v3 API bereitgestellt. Request-Bodies, Task-Objekte und Fehlercodes folgen Tripo, sodass vorhandener Tripo-Code funktioniert, nachdem Sie die Base-URL auf https://api.sandbase.ai/tripo/v3 geändert und einen SandBase API-Schlüssel als Authorization: Bearer gesendet haben. Anfragen laufen im offiziellen Kanal von Tripo zum gleichen Preis wie /v1/run.
POST https://api.sandbase.ai/tripo/v3/models/convert. model ist optional und wählt die Tripo-Algorithmusversion; wird es weggelassen, gilt Tripos Standard. Das obige Anfragebeispiel unter Tripo v3 API zeigt einen vollständigen Aufruf.
Tripo benennt diese Eingaben anders als das folgende Schema. Alle anderen Felder behalten ihren Namen.
| Schema-Feld | Tripo-Feld |
|---|---|
model_url | input |
Eingaben sind öffentliche URLs, entweder als String oder als Objekt mit einem url-Feld. Tripo-Task-IDs und file_token-Werte werden noch nicht akzeptiert, Datei-Uploads sind nicht verfügbar und webhook_url wird ignoriert.
Die Übermittlung gibt data.task_id zurück. Pollen Sie, bis data.status success, failed oder cancelled ist. Bei Erfolg verwendet data.output Tripo-Feldnamen wie model_url, und credits_consumed ist die SandBase-Gebühr bei 1 Credit = $0.01.
curl "https://api.sandbase.ai/tripo/v3/tasks/$TASK_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"POST /tripo/v3/tasks/list mit {"task_ids": [...]} gibt bis zu 100 Tasks zurück. GET /tripo/v3/account/balance gibt Ihr SandBase-Guthaben in Credits zurück.
Fehler verwenden den Tripo-Envelope: {"code": 1004, "status": "error", "message": "..."}.
| code | Bedeutung |
|---|---|
2 / 1002 | Fehlender, ungültiger oder nicht autorisierter SandBase API-Schlüssel |
1003 | Der Body ist kein JSON-Objekt |
1004 | Fehlender oder ungültiger Parameter. Die Meldung nennt das Tripo-Feld |
1007 / 2000 | Ratenlimit oder Parallelitätslimit erreicht |
2001 | Task nicht gefunden oder mit einem anderen API-Schlüssel erstellt |
2002 | Endpunkt oder Funktion auf SandBase nicht unterstützt |
2010 | Unzureichendes SandBase-Guthaben oder Ausgabenlimit des API-Schlüssels erreicht |
4001 | Unbekannter Endpunkt |
Wenn Tripo einen Task ablehnt oder er fehlschlägt, endet er als failed mit Tripos error_code und error_message. Codes zu Ihrer Anfrage oder Ihrem Inhalt werden unverändert weitergegeben; Codes zum Upstream-Tripo-Konto werden als 1000 gemeldet.