pbrboolean
Generate PBR materials.
Default: 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.
Coba model ini
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
Pilih contoh untuk memuat input dan hasilnya ke playground.
{
"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. |
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-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"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.
pbrbooleanGenerate PBR materials.
Default: false
quadbooleanGenerate quad mesh topology (billed as an add-on).
Default: false
seedintegerSeed for reproducible geometry generation.
imagestringwajibInput 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.
Default: false
texturestringTexture quality: no (untextured), standard, or HD.
Default: "standard"
Nilai yang mungkin: "no", "standard", "HD"
export_uvbooleanUV-unwrap during generation. false is faster and smaller; UVs are then made during texturing.
Default: 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.
Default: "default"
Nilai yang mungkin: "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.
Nilai yang mungkin: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
texture_alignmentstringoriginal_image keeps textures close to the input image; geometry favors the mesh.
Default: "original_image"
Nilai yang mungkin: "original_image", "geometry"
export_orientationstringForward axis of the exported model. Leave unset if you will post-process the model.
Nilai yang mungkin: "+x", "-x", "+y", "-y"
enable_image_autofixbooleanEnhance the input image before generation.
Default: 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
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"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"
}
]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/generation/image-to-model dengan "model": "v2.5-20250123". 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 |
|---|---|
image | input |
seed | model_seed |
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.