pbrboolean
PBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Varsayılan: true
tripo3d/tripo/textureTripo Texture paints new textures on an existing 3D model from a text prompt, one image or multiple views.
Modeli deneyin
PNG, JPEG, WebP veya GIF · en fazla 20 MiB
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 4
PNG, JPEG, WebP veya GIF · en fazla 20 MiB
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Tripo Texture paints new textures on an existing 3D model from a text prompt, one image or multiple views.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the input 3D model (GLB, GLTF, FBX, OBJ or STL, up to 150 MB). |
prompt | string | — | Text describing the texture (Tripo texture_prompt.text). |
image | string | — | Reference image for the texture (texture_prompt.image). Use prompt, image or images, not several. |
images | array | — | 2 to 4 reference views in the order front, left, back, right (texture_prompt.images). |
style_image | string | — | Style reference used together with prompt (texture_prompt.style_image). |
model_version | v3.5-20260815 / v3.0-20250812 / v2.5-20250123 | v3.5-20260815 | v3.5-20260815 is current; v3.0-20250812 runs as v3.5; v2.5-20250123 for models made with Tripo v2.5. |
texture_quality | fast / standard / detailed / extreme | standard | fast and standard cost the same; detailed (HD) and extreme (8K) are add-ons. |
pbr | boolean | true | PBR material maps (base color, metallic, roughness, normal). true also turns texture on. |
texture_alignment | original_image / geometry | original_image | original_image keeps textures close to the input image; geometry favors the mesh. |
delight | boolean | false | Remove baked-in lighting from the reference image before texturing (texture v3.5). |
bake | boolean | true | Bake advanced materials into the textures. |
part_names | array | — | Only process these parts (node names from a segmentation, e.g. tripo_part_0). All parts when unset. |
texture_seed | integer | — | Seed for texture generation. Keep seed and change texture_seed for new textures on the same geometry. |
compress | geometry | — | geometry applies meshopt compression to reduce file size. |
url: Textured GLB.thumbnail: Preview render.| texture_quality | Price |
|---|---|
| fast / standard | $0.10 |
| detailed | $0.20 |
| extreme (8K) | $0.30 |
| 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/texture",
"pbr": true,
"bake": true,
"image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"prompt": "weathered bronze with green patina",
"delight": false,
"model_url": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/object.glb",
"style_image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"model_version": "v3.5-20260815",
"texture_quality": "standard",
"texture_alignment": "original_image"
}
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.
pbrbooleanPBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Varsayılan: true
bakebooleanBake advanced materials into the textures.
Varsayılan: true
imagestringReference image for the texture (texture_prompt.image). Use prompt, image or images, not several.
imagesarray2 to 4 reference views in the order front, left, back, right (texture_prompt.images).
promptstringText describing the texture (Tripo texture_prompt.text).
delightbooleanRemove baked-in lighting from the reference image before texturing (texture v3.5).
Varsayılan: false
compressstringgeometry applies meshopt compression to reduce file size.
Olası değerler: "geometry"
model_urlstringzorunluURL of the input 3D model (GLB, GLTF, FBX, OBJ or STL, up to 150 MB).
part_namesarrayOnly process these parts (node names from a segmentation, e.g. tripo_part_0). All parts when unset.
style_imagestringStyle reference used together with prompt (texture_prompt.style_image).
texture_seedintegerSeed for texture generation. Keep seed and change texture_seed for new textures on the same geometry.
model_versionstringv3.5-20260815 is current; v3.0-20250812 runs as v3.5; v2.5-20250123 for models made with Tripo v2.5.
Varsayılan: "v3.5-20260815"
Olası değerler: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
texture_qualitystringfast and standard cost the same; detailed (HD) and extreme (8K) are add-ons.
Varsayılan: "standard"
Olası değerler: "fast", "standard", "detailed", "extreme"
texture_alignmentstringoriginal_image keeps textures close to the input image; geometry favors the mesh.
Varsayılan: "original_image"
Olası değerler: "original_image", "geometry"
{
"model": "tripo3d/tripo/texture",
"pbr": true,
"bake": true,
"image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"prompt": "weathered bronze with green patina",
"delight": false,
"model_url": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/object.glb",
"style_image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"model_version": "v3.5-20260815",
"texture_quality": "standard",
"texture_alignment": "original_image"
}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/texture. 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 |
model_version | model |
prompt | texture_prompt.text |
image | texture_prompt.image |
images | texture_prompt.images |
style_image | texture_prompt.style_image |
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.