pbrboolean
PBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Default: false
tripo3d/tripo-p1/text-to-3dTripo P1 is Tripo3D's text-to-3D model. It generates a 3D mesh with optional textures from a text description.
Coba model ini
Pilih contoh untuk memuat input dan hasilnya ke playground.
{
"prompt": "A potted bonsai tree with twisted trunk and lush green foliage in a glazed blue pot"
}Tripo P1 (P1-20260311) produces clean low-poly meshes (50–20,000 faces).
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text description of the 3D object to generate. Maximum 1024 characters. |
negative_prompt | string | — | What to avoid, up to 255 characters. |
texture | boolean | true | Generate textures. Set texture and pbr to false for bare geometry (cheaper). |
pbr | boolean | false | PBR material maps (base color, metallic, roughness, normal). true also turns texture on. |
texture_quality | fast / standard / detailed / extreme | standard | fast and standard cost the same; detailed (HD) and extreme (8K) are add-ons. |
face_limit | integer 50–20000 | — | Maximum face count (50-20,000). Adaptive when unset. |
seed | integer | — | Seed for geometry generation (Tripo model_seed). Same seed and input give the same mesh. |
texture_seed | integer | — | Seed for texture generation. Keep seed and change texture_seed for new textures on the same geometry. |
image_seed | integer | — | Seed for the internal text-to-image step. |
texture_version | v3.5-20260815 / v3.0-20250812 / v2.5-20250123 | — | Texture model. v3.5-20260815 is current (v3.0-20250812 runs as v3.5); v2.5-20250123 is the legacy texture model and the default for v2.5 geometry. |
delight | boolean | false | Remove baked-in lighting from the reference image before texturing (texture v3.5). |
export_uv | boolean | true | UV-unwrap during generation. false is faster and smaller; UVs are then made during texturing. |
export_orientation | +x / -x / +y / -y | — | Forward axis of the exported model. Leave unset if you will post-process the model. |
auto_size | boolean | false | Scale the model to real-world size in meters. |
url: 3D model (GLB; FBX when quad is on).thumbnail: Preview render.generated_image: Reference image Tripo generated from the prompt.$0.40 textured (standard or fast texture), $0.30 untextured (texture and pbr false).
| Add-on | Price |
|---|---|
| texture_quality = detailed | +$0.10 |
| texture_quality = extreme | +$0.20 |
| 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-p1/text-to-3d",
"pbr": false,
"prompt": "A simple wooden chair",
"delight": false,
"texture": true,
"auto_size": false,
"export_uv": true,
"texture_quality": "standard"
}
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: false
seedintegerSeed for geometry generation (Tripo model_seed). Same seed and input give the same mesh.
promptstringwajibText description of the 3D object to generate. Maximum 1024 characters.
delightbooleanRemove baked-in lighting from the reference image before texturing (texture v3.5).
Default: false
texturebooleanGenerate textures. Set texture and pbr to false for bare geometry (cheaper).
Default: true
auto_sizebooleanScale the model to real-world size in meters.
Default: false
export_uvbooleanUV-unwrap during generation. false is faster and smaller; UVs are then made during texturing.
Default: true
face_limitintegerMaximum face count (50-20,000). Adaptive when unset.
Minimum: 50
Maksimum: 20000
image_seedintegerSeed for the internal text-to-image step.
texture_seedintegerSeed for texture generation. Keep seed and change texture_seed for new textures on the same geometry.
negative_promptstringWhat to avoid, up to 255 characters.
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_versionstringTexture model. v3.5-20260815 is current (v3.0-20250812 runs as v3.5); v2.5-20250123 is the legacy texture model and the default for v2.5 geometry.
Nilai yang mungkin: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
export_orientationstringForward axis of the exported model. Leave unset if you will post-process the model.
Nilai yang mungkin: "+x", "-x", "+y", "-y"
{
"model": "tripo3d/tripo-p1/text-to-3d",
"pbr": false,
"prompt": "A simple wooden chair",
"delight": false,
"texture": true,
"auto_size": false,
"export_uv": true,
"texture_quality": "standard"
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"poster": "https://static.sandbase.ai/examples/8030312c-3eb2-43b9-afe3-3ba4346a83a5/output/067959ca-989b-47b5-a659-e217d79410e5.png",
"thumbnail": "https://static.sandbase.ai/examples/8030312c-3eb2-43b9-afe3-3ba4346a83a5/output/067959ca-989b-47b5-a659-e217d79410e5.png",
"url": "https://static.sandbase.ai/examples/8030312c-3eb2-43b9-afe3-3ba4346a83a5/output/1577fbd2-22da-4fe0-adbf-98289ee3d3ec.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/text-to-model dengan "model": "P1-20260311". 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 |
|---|---|
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.