bakeboolean
Bake advanced materials into the textures.
Default: 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.
Coba model ini
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Pilih salah satu API yang didukung dengan autentikasi dan pelacakan penggunaan terpadu.
# 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"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
bakebooleanBake advanced materials into the textures.
Default: true
quadbooleanQuad remesh (10,000 faces when face_limit is unset). Forces FBX.
Default: false
formatstringwajibOutput format.
Default: "FBX"
Nilai yang mungkin: "GLTF", "FBX", "USDZ", "OBJ", "STL", "3MF"
pack_uvbooleanPack all UV islands into one texture.
Default: false
model_urlstringwajibURL 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.
Default: "blender"
Nilai yang mungkin: "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.
Default: 1
texture_sizeintegerTexture size in pixels.
Default: 4096
flatten_bottombooleanFlatten the bottom of the model.
Default: false
force_symmetrybooleanSymmetric quad mesh. Only with quad.
Default: false
texture_formatstringTexture image format.
Default: "JPEG"
Nilai yang mungkin: "JPEG", "PNG", "WEBP", "BMP", "DPX", "HDR", "OPEN_EXR", "TARGA", "TIFF"
with_animationbooleanKeep animations.
Default: true
animate_in_placebooleanRemove root motion from animations.
Default: false
texture_packagingstringFBX only: embedded textures, or a zip with the FBX and a .fbm folder.
Default: "embedded"
Nilai yang mungkin: "embedded", "zip"
export_orientationstringForward axis of the exported model.
Nilai yang mungkin: "+x", "-x", "+y", "-y"
export_vertex_colorsbooleanVertex colors (OBJ and GLTF only).
Default: false
pivot_to_center_bottombooleanMove the pivot to the bottom center.
Default: false
flatten_bottom_thresholdnumberDepth flattened when flatten_bottom is on.
Default: 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
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
Belum ada contoh output yang dipublikasikan. Gunakan Playground → Result → JSON setelah run selesai untuk melihat respons Anda.
Model ini juga tersedia di Tripo v3 API. Body request, objek tugas, dan kode error mengikuti Tripo, jadi kode Tripo yang sudah ada akan berfungsi setelah Anda mengubah base URL ke https://api.sandbase.ai/tripo/v3 dan mengirim API key SandBase sebagai Authorization: Bearer. Request berjalan di kanal resmi Tripo dengan harga yang sama seperti /v1/run.
POST https://api.sandbase.ai/tripo/v3/models/convert. model bersifat opsional dan memilih versi algoritma Tripo; default Tripo berlaku saat tidak diisi. Contoh request di atas pada bagian Tripo v3 API menunjukkan panggilan lengkap.
Tripo menamai input ini berbeda dari Skema di bawah. Semua field lainnya tetap sama.
| Field skema | Field Tripo |
|---|---|
model_url | input |
Input berupa URL publik, sebagai string atau objek dengan field url. ID tugas Tripo dan nilai file_token belum didukung, upload file tidak tersedia, dan webhook_url diabaikan.
Pengiriman akan mengembalikan data.task_id. Polling sampai data.status menjadi success, failed, atau cancelled. Saat berhasil, data.output menggunakan nama field Tripo seperti model_url, dan credits_consumed adalah biaya SandBase dengan 1 kredit = $0.01.
curl "https://api.sandbase.ai/tripo/v3/tasks/$TASK_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"POST /tripo/v3/tasks/list dengan {"task_ids": [...]} mengembalikan hingga 100 tugas. GET /tripo/v3/account/balance mengembalikan saldo SandBase Anda dalam kredit.
Error menggunakan envelope Tripo: {"code": 1004, "status": "error", "message": "..."}.
| code | Arti |
|---|---|
2 / 1002 | API key SandBase tidak ada, tidak valid, atau tidak berwenang |
1003 | Body bukan objek JSON |
1004 | Parameter hilang atau tidak valid. Pesan menamai field Tripo |
1007 / 2000 | Batas rate atau batas konkurensi tercapai |
2001 | Tugas tidak ditemukan, atau dibuat dengan API key lain |
2002 | Endpoint atau fitur tidak didukung di SandBase |
2010 | Saldo SandBase tidak mencukupi atau batas pengeluaran API key tercapai |
4001 | Endpoint tidak dikenal |
Saat Tripo menolak atau gagal memproses tugas, status akhirnya menjadi failed dengan error_code dan error_message dari Tripo. Kode yang terkait permintaan atau konten Anda diteruskan tanpa perubahan; kode yang terkait akun Tripo upstream dilaporkan sebagai 1000.