pbrboolean
PBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Mặc định: true
tripo3d/tripo-h3.0/multiview-to-3dTripo H3.0 Multiview to 3D by Tripo3D: build a textured 3D model from 2 to 4 views of the same object.
Thử model
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 4
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Tripo H3.0 (v3.0-20250812) is Tripo's previous-generation stable model, kept for backward compatibility, with HD geometry, quad, smart low-poly and part generation.
| 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 | true | 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. |
geometry_quality | standard / detailed | standard | detailed (Ultra) adds mesh detail and is billed as an add-on. |
quad | boolean | false | Quad topology instead of triangles. Output becomes FBX; 10,000 faces when face_limit is unset. |
smart_low_poly | boolean | false | Hand-crafted style low-poly topology (500-20,000 faces). Best for simple objects; billed as an add-on. |
generate_parts | boolean | false | Editable segmented parts. Requires texture=false and pbr=false; billed as an add-on. |
face_limit | integer | — | Maximum face count, up to 2,000,000 (detailed geometry) or 1,000,000; up to 150,000 with quad. 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. |
compress | geometry | — | geometry applies meshopt compression to reduce file size. |
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.30 textured (standard or fast texture), $0.20 untextured (texture and pbr false).
| Add-on | Price |
|---|---|
| texture_quality = detailed | +$0.10 |
| texture_quality = extreme | +$0.20 |
| geometry_quality = detailed | +$0.20 |
| quad | +$0.05 |
| smart_low_poly | +$0.10 |
| generate_parts | +$0.20 |
| Failed runs are not charged. |
Bắt đầu xây dựng
Chọn một API được hỗ trợ với xác thực và theo dõi mức sử dụng thống nhất.
# 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-h3.0/multiview-to-3d",
"pbr": true,
"quad": 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",
"generate_parts": false,
"smart_low_poly": false,
"texture_quality": "standard",
"geometry_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"Tạo một SandBase API key và đặt nó trong môi trường máy chủ của bạn. Tất cả request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key trên máy chủ. Không hiển thị trong mã trình duyệt hoặc commit vào repository.
POST tới /v1/run với model ID này và các đầu vào của nó. Ví dụ request ở trên bao gồm cả bước gửi và polling.
Dùng run ID được trả về để poll cho đến khi trạng thái là completed, failed hoặc timeout. Chỉ đọc đầu ra sau khi completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Cung cấp một URL tệp có thể truy cập công khai trong trường image, video hoặc audio của model. Các định dạng và giới hạn được hỗ trợ hiển thị bên cạnh từng input trong Playground.
Dùng điều khiển upload hoặc replace trên các trường image được hỗ trợ trong Playground. Trường URL video chấp nhận một video driving được host; điều này không đồng nghĩa hỗ trợ tải lên video.
pbrbooleanPBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Mặc định: true
quadbooleanQuad topology instead of triangles. Output becomes FBX; 10,000 faces when face_limit is unset.
Mặc định: false
seedintegerSeed for geometry generation (Tripo model_seed). Same seed and input give the same mesh.
imagesarraybắt buộc2 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).
Mặc định: false
texturebooleanGenerate textures. Set texture and pbr to false for bare geometry (cheaper).
Mặc định: true
compressstringgeometry applies meshopt compression to reduce file size.
Giá trị có thể dùng: "geometry"
auto_sizebooleanScale the model to real-world size in meters.
Mặc định: false
export_uvbooleanUV-unwrap during generation. false is faster and smaller; UVs are then made during texturing.
Mặc định: true
face_limitintegerMaximum face count, up to 2,000,000 (detailed geometry) or 1,000,000; up to 150,000 with quad. Adaptive when unset.
Tối đa: 2000000
orientationstringalign_image rotates the model to match the input image (needs texture).
Mặc định: "default"
Giá trị có thể dùng: "default", "align_image"
texture_seedintegerSeed for texture generation. Keep seed and change texture_seed for new textures on the same geometry.
generate_partsbooleanEditable segmented parts. Requires texture=false and pbr=false; billed as an add-on.
Mặc định: false
smart_low_polybooleanHand-crafted style low-poly topology (500-20,000 faces). Best for simple objects; billed as an add-on.
Mặc định: false
texture_qualitystringfast and standard cost the same; detailed (HD) and extreme (8K) are add-ons.
Mặc định: "standard"
Giá trị có thể dùng: "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.
Giá trị có thể dùng: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
geometry_qualitystringdetailed (Ultra) adds mesh detail and is billed as an add-on.
Mặc định: "standard"
Giá trị có thể dùng: "standard", "detailed"
texture_alignmentstringoriginal_image keeps textures close to the input image; geometry favors the mesh.
Mặc định: "original_image"
Giá trị có thể dùng: "original_image", "geometry"
export_orientationstringForward axis of the exported model. Leave unset if you will post-process the model.
Giá trị có thể dùng: "+x", "-x", "+y", "-y"
{
"model": "tripo3d/tripo-h3.0/multiview-to-3d",
"pbr": true,
"quad": 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",
"generate_parts": false,
"smart_low_poly": false,
"texture_quality": "standard",
"geometry_quality": "standard",
"texture_alignment": "original_image"
}Một run đã hoàn tất sẽ hiển thị kết quả trong output. Phần sau là ví dụ đã lưu của model, không phải một lần tạo mới.
Chưa có đầu ra ví dụ nào được công bố. Dùng Playground → Result → JSON sau khi run hoàn tất để xem phản hồi của bạn.
Model này cũng được cung cấp trên Tripo v3 API. Phần thân yêu cầu, đối tượng tác vụ và mã lỗi tuân theo Tripo, nên mã Tripo hiện có sẽ chạy sau khi bạn đổi base URL thành https://api.sandbase.ai/tripo/v3 và gửi SandBase API key dưới dạng Authorization: Bearer. Các yêu cầu chạy trên kênh chính thức của Tripo với cùng mức giá như /v1/run.
POST https://api.sandbase.ai/tripo/v3/generation/multiview-to-model với "model": "v3.0-20250812". Ví dụ yêu cầu ở trên trong mục Tripo v3 API cho thấy một lệnh gọi hoàn chỉnh.
Tripo đặt tên các đầu vào này khác với Schema bên dưới. Mọi trường khác giữ nguyên tên.
| Trường Schema | Trường Tripo |
|---|---|
images | inputs |
seed | model_seed |
Đầu vào là các URL công khai, dưới dạng chuỗi hoặc đối tượng có trường url. Hiện chưa chấp nhận mã tác vụ Tripo và giá trị file_token, chưa hỗ trợ tải tệp lên, và webhook_url bị bỏ qua.
Gửi yêu cầu sẽ trả về data.task_id. Thăm dò cho đến khi data.status là success, failed hoặc cancelled. Khi thành công, data.output dùng tên trường của Tripo như model_url, và credits_consumed là phí SandBase với 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 với {"task_ids": [...]} trả về tối đa 100 tác vụ. GET /tripo/v3/account/balance trả về số dư SandBase của bạn tính bằng credits.
Lỗi dùng cấu trúc của Tripo: {"code": 1004, "status": "error", "message": "..."}.
| code | Ý nghĩa |
|---|---|
2 / 1002 | Thiếu, không hợp lệ hoặc API key SandBase không được ủy quyền |
1003 | Phần thân không phải là một đối tượng JSON |
1004 | Thiếu hoặc sai tham số. Thông báo nêu tên trường Tripo |
1007 / 2000 | Đã đạt giới hạn tốc độ hoặc giới hạn đồng thời |
2001 | Không tìm thấy tác vụ, hoặc được tạo bằng API key khác |
2002 | Endpoint hoặc tính năng không được hỗ trợ trên SandBase |
2010 | Số dư SandBase không đủ hoặc đã đạt giới hạn chi tiêu của API key |
4001 | Endpoint không xác định |
Khi Tripo từ chối hoặc tác vụ thất bại, nó kết thúc ở failed với error_code và error_message của Tripo. Các mã liên quan đến yêu cầu hoặc nội dung của bạn được giữ nguyên; các mã liên quan đến tài khoản Tripo phía upstream được báo là 1000.