imagestring필수
Input image; the subject should stand out from a clean background.
tripo3d/tripo/image-to-multiviewTripo Image to Multiview generates front, left, back and right views of an object from one image, ready for multiview-to-3D.
모델 사용해 보기
PNG, JPEG, WebP 또는 GIF · 최대 20 MiB
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Tripo Image to Multiview generates front, left, back and right views of an object from one image, ready for multiview-to-3D.
| Field | Type | Default | Notes |
|---|---|---|---|
image | string, required | — | Input image; the subject should stand out from a clean background. |
url: Front view image.left_view: Left view image.back_view: Back view image.right_view: Right view image.$0.10 per request (4 views). 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/image-to-multiview",
"image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png"
}
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를 받으며, 비디오 업로드 지원을 의미하지는 않습니다.
imagestring필수Input image; the subject should stand out from a clean background.
{
"model": "tripo3d/tripo/image-to-multiview",
"image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png"
}완료된 실행의 결과는 출력에 표시됩니다. 아래 내용은 새 생성 결과가 아니라 모델에 저장된 예시입니다.
예시 출력이 아직 게시되지 않았습니다. 완료된 실행 후 Playground → Result → JSON에서 응답을 확인하세요.
이 모델은 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/generation/image-to-multiview. model는 선택 사항이며 Tripo 알고리즘 버전을 선택합니다. 생략하면 Tripo의 기본값이 적용됩니다. 위의 Tripo v3 API 요청 예시는 전체 호출을 보여줍니다.
Tripo는 아래 Schema와 다르게 이 입력들의 이름을 지정합니다. 나머지 모든 필드는 이름이 그대로 유지됩니다.
| Schema 필드 | Tripo 필드 |
|---|---|
image | input |
입력은 공개 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으로 보고됩니다.