bakeboolean
Bake textures onto the new mesh (not v1.0).
기본값: true
tripo3d/tripo/remeshTripo Remesh rebuilds an existing 3D model with clean triangle or quad topology at a target face count. Accepts GLB, OBJ, FBX or STL input.
모델 사용해 보기
예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
{
"model_url": "https://static.sandbase.ai/examples/d844350a-5fac-4a9d-a0c3-79ef0ea8e7e7/input/1a91c960-1c7f-4348-90e9-55eadc4a9b77.glb"
}Tripo Remesh rebuilds an existing 3D model with clean triangle or quad topology at a target face count. Accepts GLB, OBJ, FBX or STL input.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the input 3D model (GLB, GLTF, FBX, OBJ or STL, up to 150 MB). |
model_version | v3.0 / v2.0 / v1.0 | v3.0 | v3.0 is the newest; v2.0 smart; v1.0 basic (no bake or part_names). |
quad | boolean | false | Quad topology instead of triangles. |
face_limit | integer 500–20000 | — | Target face count. v3.0: 500-20,000 (500-10,000 with quad). Adaptive when unset. |
smart_uv | boolean | false | Also unwrap UVs (v3.0 only). |
bake | boolean | true | Bake textures onto the new mesh (not v1.0). |
part_names | array | — | Only process these parts (node names from a segmentation, e.g. tripo_part_0). All parts when unset. |
url: Remeshed model (FBX with quad).thumbnail: Preview render.| model | Price |
|---|---|
| v3.0 triangle | $0.35 |
| v3.0 quad | $0.40 |
| v2.0 | $0.30 |
| v1.0 | $0.10 |
| 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/remesh",
"bake": true,
"quad": false,
"smart_uv": false,
"model_url": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/object.glb",
"model_version": "v3.0"
}
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 키를 생성해 서버 환경에 설정하세요. 모든 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하거나 저장소에 커밋하지 마세요.
이 모델 ID와 입력값을 사용해 /v1/run로 POST하세요. 위의 요청 예시에는 제출과 폴링이 포함되어 있습니다.
반환된 실행 ID를 사용해 상태가 completed, failed 또는 timeout이 될 때까지 폴링하세요. completed 이후에만 출력을 읽으세요.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"모델의 이미지, 비디오 또는 오디오 필드에 공개적으로 접근 가능한 파일 URL을 전달하세요. 지원 형식과 제한은 각 Playground 입력 옆에 표시됩니다.
Playground의 지원되는 이미지 필드에서 업로드 또는 교체 컨트롤을 사용하세요. 비디오 URL 필드는 호스팅된 driving video를 받으며, 비디오 업로드 지원을 의미하지는 않습니다.
bakebooleanBake textures onto the new mesh (not v1.0).
기본값: true
quadbooleanQuad topology instead of triangles.
기본값: false
smart_uvbooleanAlso unwrap UVs (v3.0 only).
기본값: false
model_urlstring필수URL of the input 3D model (GLB, GLTF, FBX, OBJ or STL, up to 150 MB).
face_limitintegerTarget face count. v3.0: 500-20,000 (500-10,000 with quad). Adaptive when unset.
최소값: 500
최대값: 20000
part_namesarrayOnly process these parts (node names from a segmentation, e.g. tripo_part_0). All parts when unset.
model_versionstringv3.0 is the newest; v2.0 smart; v1.0 basic (no bake or part_names).
기본값: "v3.0"
가능한 값: "v3.0", "v2.0", "v1.0"
{
"model": "tripo3d/tripo/remesh",
"bake": true,
"quad": false,
"smart_uv": false,
"model_url": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/object.glb",
"model_version": "v3.0"
}완료된 실행의 결과는 출력에 표시됩니다. 아래 내용은 새 생성 결과가 아니라 모델에 저장된 예시입니다.
[
{
"poster": "https://static.sandbase.ai/examples/d844350a-5fac-4a9d-a0c3-79ef0ea8e7e7/output/47b4985a-89cd-4d59-8f71-392e43741f53.png",
"thumbnail": "https://static.sandbase.ai/examples/d844350a-5fac-4a9d-a0c3-79ef0ea8e7e7/output/47b4985a-89cd-4d59-8f71-392e43741f53.png",
"url": "https://static.sandbase.ai/examples/d844350a-5fac-4a9d-a0c3-79ef0ea8e7e7/output/997c155c-2abb-44ab-9591-8d0424624304.glb"
}
]이 모델은 Tripo의 v3 API에서도 제공됩니다. 요청 본문, 작업 객체, 오류 코드는 Tripo를 따르므로, 기본 URL을 https://api.sandbase.ai/tripo/v3로 변경하고 SandBase API 키를 Authorization: Bearer로 보내면 기존 Tripo 코드를 그대로 사용할 수 있습니다. 요청은 /v1/run과 같은 가격으로 Tripo의 공식 채널에서 실행됩니다.
POST https://api.sandbase.ai/tripo/v3/mesh/decimate. model는 선택 사항이며 Tripo 알고리즘 버전을 선택합니다. 생략하면 Tripo의 기본값이 적용됩니다. 위의 Tripo v3 API 요청 예시는 전체 호출을 보여줍니다.
Tripo는 아래 Schema와 다르게 이 입력들의 이름을 지정합니다. 나머지 모든 필드는 이름이 그대로 유지됩니다.
| Schema 필드 | Tripo 필드 |
|---|---|
model_url | input |
model_version | model |
입력은 공개 URL이며, 문자열 또는 url 필드가 있는 객체로 전달합니다. Tripo task id와 file_token 값은 아직 지원되지 않으며, 파일 업로드는 사용할 수 없고, webhook_url은 무시됩니다.
제출하면 data.task_id가 반환됩니다. data.status가 success, failed 또는 cancelled가 될 때까지 폴링하세요. 성공 시 data.output은 model_url 같은 Tripo 필드 이름을 사용하며, credits_consumed는 1 credit = $0.01 기준의 SandBase 요금입니다.
curl "https://api.sandbase.ai/tripo/v3/tasks/$TASK_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"POST /tripo/v3/tasks/list에 {"task_ids": [...]}를 사용하면 최대 100개의 작업이 반환됩니다. GET /tripo/v3/account/balance는 SandBase 잔액을 credit 단위로 반환합니다.
오류는 Tripo의 envelope를 사용합니다: {"code": 1004, "status": "error", "message": "..."}.
| code | 의미 |
|---|---|
2 / 1002 | SandBase API 키가 없거나, 유효하지 않거나, 권한이 없습니다 |
1003 | 본문이 JSON 객체가 아닙니다 |
1004 | 필수 파라미터가 없거나 유효하지 않습니다. 메시지에는 Tripo 필드명이 표시됩니다 |
1007 / 2000 | 속도 제한 또는 동시 실행 제한에 도달했습니다 |
2001 | 작업을 찾을 수 없거나, 다른 API 키로 생성되었습니다 |
2002 | SandBase에서 지원하지 않는 엔드포인트 또는 기능입니다 |
2010 | SandBase 잔액이 부족하거나 API 키 지출 한도에 도달했습니다 |
4001 | 알 수 없는 엔드포인트 |
Tripo가 작업을 거부하거나 실패하면 failed로 종료되며, Tripo의 error_code와 error_message가 함께 반환됩니다. 요청이나 콘텐츠에 관한 코드는 그대로 전달되고, 상위 Tripo 계정에 관한 코드는 1000으로 보고됩니다.