pbrboolean
PBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Domyślnie: 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.
Wypróbuj model
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 4
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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. |
Zacznij tworzyć
Wybierz dowolne obsługiwane API z jednolitym uwierzytelnianiem i śledzeniem użycia.
# 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"Utwórz klucz API SandBase i ustaw go w środowisku serwera. Wszystkie żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym ani nie commituj do repozytorium.
Wyślij POST do /v1/run z tym identyfikatorem modelu i jego danymi wejściowymi. Powyższy przykład żądania obejmuje wysyłanie i odpytywanie statusu.
Użyj zwróconego ID uruchomienia, aby odpytywać status do momentu completion, failed lub timeout. Odczytaj wynik dopiero po completion.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Przekaż publicznie dostępny URL pliku w polu image, video lub audio modelu. Obsługiwane formaty i limity są pokazane obok każdego pola wejściowego w Playground.
Użyj kontrolki upload lub replace w obsługiwanych polach image w Playground. Pola URL wideo akceptują hostowany film źródłowy; nie oznacza to obsługi przesyłania wideo.
pbrbooleanPBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Domyślnie: false
seedintegerSeed for geometry generation (Tripo model_seed). Same seed and input give the same mesh.
imagesarraywymagane2 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).
Domyślnie: false
texturebooleanGenerate textures. Set texture and pbr to false for bare geometry (cheaper).
Domyślnie: true
auto_sizebooleanScale the model to real-world size in meters.
Domyślnie: false
export_uvbooleanUV-unwrap during generation. false is faster and smaller; UVs are then made during texturing.
Domyślnie: true
face_limitintegerMaximum face count (50-20,000). Adaptive when unset.
Minimum: 50
Maksimum: 20000
orientationstringalign_image rotates the model to match the input image (needs texture).
Domyślnie: "default"
Możliwe wartości: "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.
Domyślnie: "standard"
Możliwe wartości: "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.
Możliwe wartości: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
texture_alignmentstringoriginal_image keeps textures close to the input image; geometry favors the mesh.
Domyślnie: "original_image"
Możliwe wartości: "original_image", "geometry"
export_orientationstringForward axis of the exported model. Leave unset if you will post-process the model.
Możliwe wartości: "+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"
}Zakończone uruchomienie udostępnia swój wynik w output. Poniżej znajduje się zapisany przykład modelu, a nie nowa generacja.
Nie opublikowano jeszcze przykładowego output. Użyj Playground → Result → JSON po zakończonym uruchomieniu, aby sprawdzić odpowiedź.
Ten model jest też dostępny przez Tripo v3 API. Ciała żądań, obiekty zadań i kody błędów są zgodne z Tripo, więc istniejący kod Tripo będzie działał po zmianie adresu bazowego na https://api.sandbase.ai/tripo/v3 i wysłaniu klucza API SandBase jako Authorization: Bearer. Żądania są wykonywane w oficjalnym kanale Tripo, w tej samej cenie co /v1/run.
POST https://api.sandbase.ai/tripo/v3/generation/multiview-to-model z "model": "P1-20260311". Przykład żądania powyżej w sekcji Tripo v3 API pokazuje pełne wywołanie.
Tripo nazywa te wejścia inaczej niż poniższy schemat. Wszystkie pozostałe pola zachowują swoje nazwy.
| Pole schematu | Pole Tripo |
|---|---|
images | inputs |
seed | model_seed |
Wejściami są publiczne adresy URL, jako ciąg znaków lub obiekt z polem url. Identyfikatory zadań Tripo i wartości file_token nie są jeszcze akceptowane, przesyłanie plików nie jest dostępne, a webhook_url jest ignorowane.
Przesłanie zwraca data.task_id. Odpytywanie trwa, aż data.status będzie równe success, failed lub cancelled. Po powodzeniu data.output używa nazw pól Tripo, takich jak model_url, a credits_consumed to opłata SandBase przy kursie 1 kredyt = $0.01.
curl "https://api.sandbase.ai/tripo/v3/tasks/$TASK_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"POST /tripo/v3/tasks/list z {"task_ids": [...]} zwraca do 100 zadań. GET /tripo/v3/account/balance zwraca saldo SandBase w kredytach.
Błędy używają struktury Tripo: {"code": 1004, "status": "error", "message": "..."}.
| code | Znaczenie |
|---|---|
2 / 1002 | Brakujący, nieprawidłowy lub nieautoryzowany klucz API SandBase |
1003 | Treść nie jest obiektem JSON |
1004 | Brakujący lub nieprawidłowy parametr. Komunikat podaje nazwę pola Tripo |
1007 / 2000 | Osiągnięto limit liczby żądań lub limit współbieżności |
2001 | Nie znaleziono zadania albo zostało utworzone innym kluczem API |
2002 | Punkt końcowy lub funkcja nieobsługiwana w SandBase |
2010 | Niewystarczające saldo SandBase lub osiągnięto limit wydatków klucza API |
4001 | Nieznany punkt końcowy |
Gdy Tripo odrzuca zadanie lub kończy się ono niepowodzeniem, otrzymuje status failed wraz z error_code i error_message od Tripo. Kody dotyczące Twojego żądania lub treści są przekazywane bez zmian; kody dotyczące nadrzędnego konta Tripo są raportowane jako 1000.