pbrboolean
PBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Default: true
tripo3d/tripo/textureTripo Texture paints new textures on an existing 3D model from a text prompt, one image or multiple views.
Coba model ini
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 4
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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. |
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/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"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.
pbrbooleanPBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Default: true
bakebooleanBake advanced materials into the textures.
Default: 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).
Default: false
compressstringgeometry applies meshopt compression to reduce file size.
Nilai yang mungkin: "geometry"
model_urlstringwajibURL 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.
Default: "v3.5-20260815"
Nilai yang mungkin: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
texture_qualitystringfast and standard cost the same; detailed (HD) and extreme (8K) are add-ons.
Default: "standard"
Nilai yang mungkin: "fast", "standard", "detailed", "extreme"
texture_alignmentstringoriginal_image keeps textures close to the input image; geometry favors the mesh.
Default: "original_image"
Nilai yang mungkin: "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"
}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/texture. 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 |
model_version | model |
prompt | texture_prompt.text |
image | texture_prompt.image |
images | texture_prompt.images |
style_image | texture_prompt.style_image |
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.