bakeboolean
Bake advanced materials into the textures.
Varsayılan: 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.
Modeli deneyin
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan desteklenen API'lerden birini seçin.
# 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"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
bakebooleanBake advanced materials into the textures.
Varsayılan: true
quadbooleanQuad remesh (10,000 faces when face_limit is unset). Forces FBX.
Varsayılan: false
formatstringzorunluOutput format.
Varsayılan: "FBX"
Olası değerler: "GLTF", "FBX", "USDZ", "OBJ", "STL", "3MF"
pack_uvbooleanPack all UV islands into one texture.
Varsayılan: false
model_urlstringzorunluURL 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.
Varsayılan: "blender"
Olası değerler: "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.
Varsayılan: 1
texture_sizeintegerTexture size in pixels.
Varsayılan: 4096
flatten_bottombooleanFlatten the bottom of the model.
Varsayılan: false
force_symmetrybooleanSymmetric quad mesh. Only with quad.
Varsayılan: false
texture_formatstringTexture image format.
Varsayılan: "JPEG"
Olası değerler: "JPEG", "PNG", "WEBP", "BMP", "DPX", "HDR", "OPEN_EXR", "TARGA", "TIFF"
with_animationbooleanKeep animations.
Varsayılan: true
animate_in_placebooleanRemove root motion from animations.
Varsayılan: false
texture_packagingstringFBX only: embedded textures, or a zip with the FBX and a .fbm folder.
Varsayılan: "embedded"
Olası değerler: "embedded", "zip"
export_orientationstringForward axis of the exported model.
Olası değerler: "+x", "-x", "+y", "-y"
export_vertex_colorsbooleanVertex colors (OBJ and GLTF only).
Varsayılan: false
pivot_to_center_bottombooleanMove the pivot to the bottom center.
Varsayılan: false
flatten_bottom_thresholdnumberDepth flattened when flatten_bottom is on.
Varsayılan: 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
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
Henüz örnek çıktı yayınlanmadı. Yanıtınızı incelemek için Playground → Result → JSON'u, tamamlanan bir run sonrasında kullanın.
Bu model Tripo'nun v3 API'si üzerinden de sunulur. İstek gövdeleri, görev nesneleri ve hata kodları Tripo ile aynıdır; bu yüzden temel URL'yi https://api.sandbase.ai/tripo/v3 olarak değiştirip Authorization: Bearer olarak bir SandBase API anahtarı gönderdiğinizde mevcut Tripo kodunuz çalışır. İstekler Tripo'nun resmi kanalında /v1/run ile aynı fiyatla çalışır.
POST https://api.sandbase.ai/tripo/v3/models/convert. model isteğe bağlıdır ve Tripo algoritma sürümünü seçer; belirtilmediğinde Tripo’nun varsayılanı uygulanır. Yukarıdaki Tripo v3 API altındaki istek örneği, eksiksiz bir çağrı gösterir.
Tripo, bu girişleri aşağıdaki Şema'dan farklı şekilde adlandırır. Diğer tüm alanlar adını korur.
| Şema alanı | Tripo alanı |
|---|---|
model_url | input |
Girdiler herkese açık URL'lerdir; bir string olarak ya da url alanlı bir nesne olarak gönderilir. Tripo görev kimlikleri ve file_token değerleri henüz kabul edilmez, dosya yükleme kullanılamaz ve webhook_url yok sayılır.
Gönderim, data.task_id döndürür. data.status, success, failed veya cancelled olana kadar sorgulayın. Başarılı হলে data.output, model_url gibi Tripo alan adlarını kullanır ve credits_consumed, 1 kredi = $0.01 üzerinden SandBase ücretidir.
curl "https://api.sandbase.ai/tripo/v3/tasks/$TASK_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"POST /tripo/v3/tasks/list ve {"task_ids": [...]} ile en fazla 100 görev döner. GET /tripo/v3/account/balance, kredi cinsinden SandBase bakiyenizi döndürür.
Hatalar Tripo'nun sarmalayıcısını kullanır: {"code": 1004, "status": "error", "message": "..."}.
| code | Anlamı |
|---|---|
2 / 1002 | Eksik, geçersiz veya yetkilendirilmemiş SandBase API anahtarı |
1003 | Gövde bir JSON nesnesi değil |
1004 | Eksik veya geçersiz parametre. İleti Tripo alanını adlandırır |
1007 / 2000 | Hız limiti veya eşzamanlılık limiti aşıldı |
2001 | Görev bulunamadı veya başka bir API anahtarıyla oluşturuldu |
2002 | SandBase'te desteklenmeyen uç nokta veya özellik |
2010 | Yetersiz SandBase bakiyesi veya API anahtarı harcama limiti aşıldı |
4001 | Bilinmeyen uç nokta |
Tripo bir görevi reddettiğinde veya görev başarısız olduğunda, failed ile ve Tripo'nun error_code ve error_message değerleriyle sonlanır. İsteğiniz veya içeriğinizle ilgili kodlar aynen iletilir; üstteki Tripo hesabıyla ilgili kodlar 1000 olarak raporlanır.