pbrboolean
PBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Padrão: 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.
Testar o modelo
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 4
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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. |
Comece a construir
Escolha qualquer API compatível com autenticação unificada e rastreamento de uso.
# 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"Crie uma chave da API SandBase e defina-a no ambiente do seu servidor. Todas as requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha a chave no servidor. Não a exponha em código do navegador nem a comite em um repositório.
Faça POST para /v1/run com este ID de modelo e suas entradas. O exemplo de requisição acima inclui envio e polling.
Use o ID de execução retornado para fazer polling até que o status seja completed, failed ou timeout. Leia a saída somente após completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passe uma URL de arquivo acessível publicamente no campo de imagem, vídeo ou áudio do modelo. Os formatos e limites suportados são mostrados ao lado de cada entrada do Playground.
Use o controle de upload ou substituição nos campos de imagem suportados no Playground. Campos de URL de vídeo aceitam um vídeo de condução hospedado; isso não implica suporte a upload de vídeo.
pbrbooleanPBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Padrão: false
seedintegerSeed for geometry generation (Tripo model_seed). Same seed and input give the same mesh.
imagesarrayobrigatório2 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).
Padrão: false
texturebooleanGenerate textures. Set texture and pbr to false for bare geometry (cheaper).
Padrão: true
auto_sizebooleanScale the model to real-world size in meters.
Padrão: false
export_uvbooleanUV-unwrap during generation. false is faster and smaller; UVs are then made during texturing.
Padrão: true
face_limitintegerMaximum face count (50-20,000). Adaptive when unset.
Mínimo: 50
Máximo: 20000
orientationstringalign_image rotates the model to match the input image (needs texture).
Padrão: "default"
Valores possíveis: "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.
Padrão: "standard"
Valores possíveis: "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.
Valores possíveis: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
texture_alignmentstringoriginal_image keeps textures close to the input image; geometry favors the mesh.
Padrão: "original_image"
Valores possíveis: "original_image", "geometry"
export_orientationstringForward axis of the exported model. Leave unset if you will post-process the model.
Valores possíveis: "+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"
}Uma execução concluída expõe seu resultado em output. O texto a seguir é o exemplo salvo do modelo, não uma nova geração.
Ainda não foi publicada nenhuma saída de exemplo. Use Playground → Result → JSON após uma execução concluída para inspecionar sua resposta.
Este modelo também é disponibilizado na API v3 da Tripo. Os corpos das solicitações, os objetos de tarefa e os códigos de erro seguem a Tripo, então o código Tripo existente funciona depois que você alterar a URL base para https://api.sandbase.ai/tripo/v3 e enviar uma chave da SandBase API como Authorization: Bearer. As solicitações são executadas no canal oficial da Tripo pelo mesmo preço de /v1/run.
POST https://api.sandbase.ai/tripo/v3/generation/multiview-to-model com "model": "P1-20260311". O exemplo de solicitação acima em Tripo v3 API mostra uma chamada completa.
A Tripo nomeia estas entradas de forma diferente do Schema abaixo. Todos os outros campos mantêm o nome.
| Campo do Schema | Campo da Tripo |
|---|---|
images | inputs |
seed | model_seed |
As entradas são URLs públicas, como uma string ou um objeto com um campo url. IDs de tarefa da Tripo e valores de file_token ainda não são aceitos, o upload de arquivos não está disponível e webhook_url é ignorado.
O envio retorna data.task_id. Faça polling até data.status ser success, failed ou cancelled. Em caso de sucesso, data.output usa nomes de campos da Tripo, como model_url, e credits_consumed é a cobrança da SandBase a 1 crédito = $0.01.
curl "https://api.sandbase.ai/tripo/v3/tasks/$TASK_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"POST /tripo/v3/tasks/list com {"task_ids": [...]} retorna até 100 tarefas. GET /tripo/v3/account/balance retorna seu saldo da SandBase em créditos.
Os erros usam o envelope da Tripo: {"code": 1004, "status": "error", "message": "..."}.
| code | Significado |
|---|---|
2 / 1002 | Chave da SandBase API ausente, inválida ou sem autorização |
1003 | O corpo não é um objeto JSON |
1004 | Parâmetro ausente ou inválido. A mensagem nomeia o campo da Tripo |
1007 / 2000 | Limite de taxa ou limite de concorrência atingido |
2001 | Tarefa não encontrada ou criada com outra chave da API |
2002 | Endpoint ou recurso sem suporte no SandBase |
2010 | Saldo insuficiente na SandBase ou limite de gastos da chave da API atingido |
4001 | Endpoint desconhecido |
Quando a Tripo rejeita ou falha uma tarefa, ela termina como failed com error_code e error_message da Tripo. Códigos relacionados à sua solicitação ou conteúdo são repassados sem שינוי; códigos relacionados à conta upstream da Tripo são reportados como 1000.