pbrboolean
PBR material maps (base color, metallic, roughness, normal). true also turns texture on.
ค่าเริ่มต้น: false
tripo3d/tripo-p1/multiview-to-3dTripo P1 Multiview to 3D by Tripo3D: build a textured 3D model from 2 to 4 views of the same object.
ลองใช้โมเดล
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 4
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Tripo P1 (P1-20260311) produces clean low-poly meshes (50–20,000 faces).
| Field | Type | Default | Notes |
|---|---|---|---|
images | array, required | — | 2 to 4 images of the same object, in the order front, left, back, right. Front is required. |
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. |
texture_alignment | original_image / geometry | original_image | original_image keeps textures close to the input image; geometry favors the mesh. |
orientation | default / align_image | default | align_image rotates the model to match the input image (needs texture). |
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. |
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.$0.50 textured (standard or fast texture), $0.40 untextured (texture and pbr false).
| Add-on | Price |
|---|---|
| texture_quality = detailed | +$0.10 |
| texture_quality = extreme | +$0.20 |
| Failed runs are not charged. |
เริ่มสร้าง
เลือก API ที่รองรับใดก็ได้ด้วยการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
# 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/multiview-to-3d",
"pbr": false,
"images": [
[
"https://static.sandbase.ai/examples/tripo3d/tripo/shared/front.jpg",
"https://static.sandbase.ai/examples/tripo3d/tripo/shared/left.jpg",
"https://static.sandbase.ai/examples/tripo3d/tripo/shared/back.jpg",
"https://static.sandbase.ai/examples/tripo3d/tripo/shared/right.jpg"
]
],
"delight": false,
"texture": true,
"auto_size": false,
"export_uv": true,
"orientation": "default",
"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"สร้าง SandBase API key และตั้งค่าไว้ในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอทั้งหมดใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์หรือคอมมิตลง repository
POST ไปที่ /v1/run ด้วย model ID นี้และอินพุตของมัน ตัวอย่างคำขอด้านบนมีทั้งการส่งและการ polling
ใช้ run ID ที่ส่งกลับมาเพื่อ polling จนกว่าสถานะจะเป็น completed, failed หรือ timeout ให้อ่าน output หลังจาก completed เท่านั้น
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"ส่ง URL ไฟล์ที่เข้าถึงได้สาธารณะในช่อง image, video หรือ audio ของโมเดล รูปแบบและข้อจำกัดที่รองรับแสดงอยู่ข้างแต่ละอินพุตใน Playground
ใช้ตัวควบคุม upload หรือ replace ในช่องรูปภาพที่รองรับใน Playground ช่อง URL ของวิดีโอรองรับวิดีโอ driving ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
pbrbooleanPBR material maps (base color, metallic, roughness, normal). true also turns texture on.
ค่าเริ่มต้น: false
seedintegerSeed for geometry generation (Tripo model_seed). Same seed and input give the same mesh.
imagesarrayจำเป็น2 to 4 images of the same object, in the order front, left, back, right. Front is required.
delightbooleanRemove baked-in lighting from the reference image before texturing (texture v3.5).
ค่าเริ่มต้น: false
texturebooleanGenerate textures. Set texture and pbr to false for bare geometry (cheaper).
ค่าเริ่มต้น: true
auto_sizebooleanScale the model to real-world size in meters.
ค่าเริ่มต้น: false
export_uvbooleanUV-unwrap during generation. false is faster and smaller; UVs are then made during texturing.
ค่าเริ่มต้น: true
face_limitintegerMaximum face count (50-20,000). Adaptive when unset.
ขั้นต่ำ: 50
สูงสุด: 20000
orientationstringalign_image rotates the model to match the input image (needs texture).
ค่าเริ่มต้น: "default"
ค่าที่เป็นไปได้: "default", "align_image"
texture_seedintegerSeed for texture generation. Keep seed and change texture_seed for new textures on the same geometry.
texture_qualitystringfast and standard cost the same; detailed (HD) and extreme (8K) are add-ons.
ค่าเริ่มต้น: "standard"
ค่าที่เป็นไปได้: "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.
ค่าที่เป็นไปได้: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
texture_alignmentstringoriginal_image keeps textures close to the input image; geometry favors the mesh.
ค่าเริ่มต้น: "original_image"
ค่าที่เป็นไปได้: "original_image", "geometry"
export_orientationstringForward axis of the exported model. Leave unset if you will post-process the model.
ค่าที่เป็นไปได้: "+x", "-x", "+y", "-y"
{
"model": "tripo3d/tripo-p1/multiview-to-3d",
"pbr": false,
"images": [
[
"https://static.sandbase.ai/examples/tripo3d/tripo/shared/front.jpg",
"https://static.sandbase.ai/examples/tripo3d/tripo/shared/left.jpg",
"https://static.sandbase.ai/examples/tripo3d/tripo/shared/back.jpg",
"https://static.sandbase.ai/examples/tripo3d/tripo/shared/right.jpg"
]
],
"delight": false,
"texture": true,
"auto_size": false,
"export_uv": true,
"orientation": "default",
"texture_quality": "standard",
"texture_alignment": "original_image"
}run ที่เสร็จสมบูรณ์จะแสดงผลลัพธ์ใน output ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
ยังไม่มีตัวอย่าง output เผยแพร่ในตอนนี้ ใช้ Playground → Result → JSON หลังจาก run เสร็จสมบูรณ์เพื่อตรวจสอบการตอบกลับของคุณ
โมเดลนี้ยังให้บริการบน Tripo's v3 API ด้วย เนื้อหาของคำขอ ออบเจ็กต์งาน และรหัสข้อผิดพลาดเป็นไปตาม Tripo ดังนั้นโค้ด Tripo เดิมจะใช้งานได้หลังจากคุณเปลี่ยน base URL เป็น https://api.sandbase.ai/tripo/v3 และส่ง SandBase API key เป็น Authorization: Bearer คำขอจะรันผ่านช่องทางทางการของ Tripo ในราคาเดียวกับ /v1/run
POST https://api.sandbase.ai/tripo/v3/generation/multiview-to-model พร้อม "model": "P1-20260311" ตัวอย่างคำขอด้านบนในหัวข้อ Tripo v3 API แสดงการเรียกใช้งานครบถ้วน
Tripo ตั้งชื่ออินพุตเหล่านี้ต่างจากสคีมาด้านล่าง ฟิลด์อื่นทั้งหมดคงชื่อเดิม
| ฟิลด์ของสคีมา | ฟิลด์ของ Tripo |
|---|---|
images | inputs |
seed | model_seed |
อินพุตต้องเป็น URL สาธารณะ ในรูปแบบสตริงหรือออบเจ็กต์ที่มีฟิลด์ url ยังไม่รองรับ task id ของ Tripo และค่าของ file_token ยังอัปโหลดไฟล์ไม่ได้ และ webhook_url จะถูกละเว้น
การส่งคืนจะได้ data.task_id คอยตรวจจนกว่า data.status จะเป็น success, failed หรือ cancelled เมื่อสำเร็จ data.output จะใช้ชื่อฟิลด์แบบ Tripo เช่น model_url และ credits_consumed คือค่าบริการของ SandBase ที่ 1 credit = $0.01
curl "https://api.sandbase.ai/tripo/v3/tasks/$TASK_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"POST /tripo/v3/tasks/list พร้อม {"task_ids": [...]} จะส่งกลับ task ได้สูงสุด 100 รายการ GET /tripo/v3/account/balance จะส่งคืนยอดคงเหลือของ SandBase ในหน่วย credit
ข้อผิดพลาดใช้ envelope ของ Tripo: {"code": 1004, "status": "error", "message": "..."}
| code | ความหมาย |
|---|---|
2 / 1002 | ไม่มี API key ของ SandBase, API key ไม่ถูกต้อง หรือไม่ได้รับอนุญาต |
1003 | เนื้อหาไม่ใช่ออบเจ็กต์ JSON |
1004 | พารามิเตอร์หายไปหรือไม่ถูกต้อง ข้อความจะระบุฟิลด์ของ Tripo |
1007 / 2000 | ถึงขีดจำกัดอัตราเรียกใช้หรือขีดจำกัดการทำงานพร้อมกันแล้ว |
2001 | ไม่พบ task หรือสร้างด้วย API key อื่น |
2002 | endpoint หรือฟีเจอร์นี้ยังไม่รองรับบน SandBase |
2010 | ยอดคงเหลือ SandBase ไม่เพียงพอ หรือถึงขีดจำกัดการใช้จ่ายของ API key แล้ว |
4001 | ไม่รู้จัก endpoint |
เมื่อ Tripo ปฏิเสธหรือทำ task ไม่สำเร็จ ระบบจะจบที่ failed พร้อม error_code และ error_message ของ Tripo รหัสที่เกี่ยวกับคำขอหรือเนื้อหาของคุณจะส่งผ่านโดยไม่เปลี่ยนแปลง ส่วนรหัสที่เกี่ยวกับบัญชี Tripo ต้นทางจะแสดงเป็น 1000