pbrboolean
PBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Padrão: true
tripo3d/tripo-p2/text-to-3dTripo P2 is Tripo3D's latest flagship 3D generation model. It turns a text description into a production-ready mesh with optional PBR textures.
Testar o modelo

O que você gostaria de fazer em seguida?
Selecione um exemplo para carregar as entradas e o resultado no playground.
{
"prompt": "An ornate Japanese stone lantern covered in patches of green moss"
}Tripo P2 (P2-20260801) produces production-ready low-poly meshes with native quad topology (48–50,000 faces).
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text description of the 3D object to generate. Maximum 1024 characters. |
negative_prompt | string | — | What to avoid, up to 255 characters. |
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. |
quad | boolean | false | Quad topology instead of triangles. Output becomes FBX; 10,000 faces when face_limit is unset. |
face_limit | integer 48–50000 | — | Maximum face count (48-50,000). Adaptive when unset. |
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. |
image_seed | integer | — | Seed for the internal text-to-image step. |
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.generated_image: Reference image Tripo generated from the prompt.$1.10 textured (standard or fast texture), $1.00 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-p2/text-to-3d",
"pbr": true,
"quad": false,
"prompt": "A low-poly wooden chair",
"delight": false,
"texture": true,
"auto_size": false,
"export_uv": true,
"texture_quality": "standard"
}
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: true
quadbooleanQuad topology instead of triangles. Output becomes FBX; 10,000 faces when face_limit is unset.
Padrão: false
seedintegerSeed for geometry generation (Tripo model_seed). Same seed and input give the same mesh.
promptstringobrigatórioText description of the 3D object to generate. Maximum 1024 characters.
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 (48-50,000). Adaptive when unset.
Mínimo: 48
Máximo: 50000
image_seedintegerSeed for the internal text-to-image step.
texture_seedintegerSeed for texture generation. Keep seed and change texture_seed for new textures on the same geometry.
negative_promptstringWhat to avoid, up to 255 characters.
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"
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-p2/text-to-3d",
"pbr": true,
"quad": false,
"prompt": "A low-poly wooden chair",
"delight": false,
"texture": true,
"auto_size": false,
"export_uv": true,
"texture_quality": "standard"
}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.
[
{
"poster": "https://static.sandbase.ai/examples/b5b23cf2-90da-449b-9ecf-20c92e6ecd62/output/8155919a-22c7-4fd3-9309-0cb2eb4cf932.png",
"thumbnail": "https://static.sandbase.ai/examples/b5b23cf2-90da-449b-9ecf-20c92e6ecd62/output/8155919a-22c7-4fd3-9309-0cb2eb4cf932.png",
"url": "https://static.sandbase.ai/examples/b5b23cf2-90da-449b-9ecf-20c92e6ecd62/output/ee5e92f5-e505-44a4-8e4a-9357ecc235fa.glb"
}
]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/text-to-model com "model": "P2-20260801". 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 |
|---|---|
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.