pbrboolean
Generate PBR materials.
Varsayılan: false
tripo3d/tripo-v2.5/image-to-3dTripo v2.5 by Tripo3D generates a textured 3D mesh from a single image, with optional HD textures, PBR materials and quad topology.
Modeli deneyin
PNG, JPEG, WebP veya GIF · en fazla 20 MiB

Sırada ne yapmak istersiniz?
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"image": "https://static.sandbase.ai/examples/20dc0941-0d15-4467-9387-f1c3018cabba/input/73d6d211-722b-4b2c-9616-4f48332d7c75.png"
}Tripo v2.5 by Tripo3D generates a textured 3D mesh from a single image, with optional HD textures, PBR materials and quad topology.
| Field | Type | Default | Notes |
|---|---|---|---|
image | string, required | — | Input image URL for 3D model creation. |
texture | no / standard / HD | standard | Texture quality: no (untextured), standard, or HD. |
pbr | boolean | false | Generate PBR materials. |
quad | boolean | false | Generate quad mesh topology (billed as an add-on). |
face_limit | integer 1000–500000 | — | Maximum face count (1,000-500,000). Adaptive when unset. |
orientation | default / align_image | default | Set to align_image to rotate the model to match the input image. |
seed | integer | — | Seed for reproducible geometry generation. |
texture_seed | integer | — | Seed for texture generation. Keep seed and change texture_seed for new textures on the same geometry. |
texture_version | v3.5-20260815 / v3.0-20250812 / v2.5-20250123 | — | Accepted for compatibility with Tripo: v2.5 geometry is always textured with v2.5-20250123, whatever this field says. |
delight | boolean | false | Accepted for compatibility with Tripo; only the v3.5 texture model reads it, so it has no effect on v2.5. |
export_orientation | +x / -x / +y / -y | — | Forward axis of the exported model. Leave unset if you will post-process the model. |
export_uv | boolean | true | UV-unwrap during generation. false is faster and smaller; UVs are then made during texturing. |
texture_alignment | original_image / geometry | original_image | original_image keeps textures close to the input image; geometry favors the mesh. |
enable_image_autofix | boolean | false | Enhance the input image before generation. |
url: 3D model (GLB; FBX when quad is on).thumbnail: Preview render.$0.30 textured, $0.20 untextured (texture = no and pbr off).
| Add-on | Price |
|---|---|
| texture = HD | +$0.10 |
| quad | +$0.05 |
| 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-v2.5/image-to-3d",
"pbr": false,
"quad": false,
"image": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/front.jpg",
"delight": false,
"texture": "standard",
"export_uv": true,
"orientation": "default",
"texture_alignment": "original_image",
"enable_image_autofix": false
}
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.
pbrbooleanGenerate PBR materials.
Varsayılan: false
quadbooleanGenerate quad mesh topology (billed as an add-on).
Varsayılan: false
seedintegerSeed for reproducible geometry generation.
imagestringzorunluInput image URL for 3D model creation.
delightbooleanAccepted for compatibility with Tripo; only the v3.5 texture model reads it, so it has no effect on v2.5.
Varsayılan: false
texturestringTexture quality: no (untextured), standard, or HD.
Varsayılan: "standard"
Olası değerler: "no", "standard", "HD"
export_uvbooleanUV-unwrap during generation. false is faster and smaller; UVs are then made during texturing.
Varsayılan: true
face_limitintegerMaximum face count (1,000-500,000). Adaptive when unset.
Minimum: 1000
Maksimum: 500000
orientationstringSet to align_image to rotate the model to match the input image.
Varsayılan: "default"
Olası değerler: "default", "align_image"
texture_seedintegerSeed for texture generation. Keep seed and change texture_seed for new textures on the same geometry.
texture_versionstringAccepted for compatibility with Tripo: v2.5 geometry is always textured with v2.5-20250123, whatever this field says.
Olası değerler: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
texture_alignmentstringoriginal_image keeps textures close to the input image; geometry favors the mesh.
Varsayılan: "original_image"
Olası değerler: "original_image", "geometry"
export_orientationstringForward axis of the exported model. Leave unset if you will post-process the model.
Olası değerler: "+x", "-x", "+y", "-y"
enable_image_autofixbooleanEnhance the input image before generation.
Varsayılan: false
{
"model": "tripo3d/tripo-v2.5/image-to-3d",
"pbr": false,
"quad": false,
"image": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/front.jpg",
"delight": false,
"texture": "standard",
"export_uv": true,
"orientation": "default",
"texture_alignment": "original_image",
"enable_image_autofix": false
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
[
{
"poster": "https://static.sandbase.ai/examples/20dc0941-0d15-4467-9387-f1c3018cabba/output/93c446cd-eb80-439f-af04-84f1cb87a0fb.webp",
"thumbnail": "https://static.sandbase.ai/examples/20dc0941-0d15-4467-9387-f1c3018cabba/output/93c446cd-eb80-439f-af04-84f1cb87a0fb.webp",
"url": "https://static.sandbase.ai/examples/20dc0941-0d15-4467-9387-f1c3018cabba/output/2d8b7664-5b8c-43e1-8058-3817f047dd43.glb"
}
]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.
"model": "v2.5-20250123" ile POST https://api.sandbase.ai/tripo/v3/generation/image-to-model. Yukarıdaki Tripo v3 API altındaki istek örneği eksiksiz bir çağrıyı 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ı |
|---|---|
image | input |
seed | model_seed |
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.