pbrboolean
PBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Valor predeterminado: true
tripo3d/tripo-p2/image-to-3dTripo P2 is Tripo3D's latest flagship 3D generation model. It reconstructs a production-ready mesh with optional PBR textures from a single image.
Probar el modelo
PNG, JPEG, WebP o GIF · máximo 20 MiB
¿Qué le gustaría hacer después?
Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
{
"image": "https://static.sandbase.ai/examples/b9c8f336-1f12-4a85-bb42-8683feabd507/input/09fd0b4f-c9ff-4db9-abca-fd94e1b44049.png"
}Tripo P2 (P2-20260801) produces production-ready low-poly meshes with native quad topology (48–50,000 faces).
| Field | Type | Default | Notes |
|---|---|---|---|
image | string, required | — | Input image URL for 3D model creation. |
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. |
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). |
enable_image_autofix | boolean | false | Enhance the input image before generation. |
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.$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. |
Empiece a construir
Elija cualquiera de las APIs compatibles con autenticación unificada y seguimiento 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/image-to-3d",
"pbr": true,
"quad": false,
"image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"delight": false,
"texture": true,
"auto_size": false,
"export_uv": true,
"orientation": "default",
"texture_quality": "standard",
"texture_alignment": "original_image",
"enable_image_autofix": false
}
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"Cree una clave de API de SandBase y configúrela en el entorno de su servidor. Todas las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve la clave en el servidor. No la exponga en código del navegador ni la confirme en un repositorio.
Haga un POST a /v1/run con este ID de modelo y sus entradas. El ejemplo de solicitud anterior incluye el envío y el sondeo.
Use el ID de ejecución devuelto para sondear hasta que el estado sea completed, failed o timeout. Lea la salida solo después de completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Proporcione una URL de archivo accesible públicamente en el campo de imagen, video o audio del modelo. Los formatos y límites admitidos se muestran junto a cada entrada de Playground.
Use el control de subir o reemplazar en los campos de imagen admitidos en Playground. Los campos de URL de video aceptan un video de conducción alojado; no implican compatibilidad con la subida de video.
pbrbooleanPBR material maps (base color, metallic, roughness, normal). true also turns texture on.
Valor predeterminado: true
quadbooleanQuad topology instead of triangles. Output becomes FBX; 10,000 faces when face_limit is unset.
Valor predeterminado: false
seedintegerSeed for geometry generation (Tripo model_seed). Same seed and input give the same mesh.
imagestringrequeridoInput image URL for 3D model creation.
delightbooleanRemove baked-in lighting from the reference image before texturing (texture v3.5).
Valor predeterminado: false
texturebooleanGenerate textures. Set texture and pbr to false for bare geometry (cheaper).
Valor predeterminado: true
auto_sizebooleanScale the model to real-world size in meters.
Valor predeterminado: false
export_uvbooleanUV-unwrap during generation. false is faster and smaller; UVs are then made during texturing.
Valor predeterminado: true
face_limitintegerMaximum face count (48-50,000). Adaptive when unset.
Mínimo: 48
Máximo: 50000
orientationstringalign_image rotates the model to match the input image (needs texture).
Valor predeterminado: "default"
Valores posibles: "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.
Valor predeterminado: "standard"
Valores posibles: "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 posibles: "v3.5-20260815", "v3.0-20250812", "v2.5-20250123"
texture_alignmentstringoriginal_image keeps textures close to the input image; geometry favors the mesh.
Valor predeterminado: "original_image"
Valores posibles: "original_image", "geometry"
export_orientationstringForward axis of the exported model. Leave unset if you will post-process the model.
Valores posibles: "+x", "-x", "+y", "-y"
enable_image_autofixbooleanEnhance the input image before generation.
Valor predeterminado: false
{
"model": "tripo3d/tripo-p2/image-to-3d",
"pbr": true,
"quad": false,
"image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"delight": false,
"texture": true,
"auto_size": false,
"export_uv": true,
"orientation": "default",
"texture_quality": "standard",
"texture_alignment": "original_image",
"enable_image_autofix": false
}Una ejecución completada expone su resultado en la salida. Lo siguiente es el ejemplo guardado del modelo, no una nueva generación.
[
{
"poster": "https://static.sandbase.ai/examples/b9c8f336-1f12-4a85-bb42-8683feabd507/output/b6d7b12d-e575-4193-8a27-4087e3b3a41b.png",
"thumbnail": "https://static.sandbase.ai/examples/b9c8f336-1f12-4a85-bb42-8683feabd507/output/b6d7b12d-e575-4193-8a27-4087e3b3a41b.png",
"url": "https://static.sandbase.ai/examples/b9c8f336-1f12-4a85-bb42-8683feabd507/output/d055f165-9ea9-402d-ba71-e1f474903afd.glb"
}
]Este modelo también se ofrece en la API v3 de Tripo. Los cuerpos de solicitud, los objetos de tarea y los códigos de error siguen a Tripo, así que el código existente de Tripo funciona después de cambiar la URL base a https://api.sandbase.ai/tripo/v3 y enviar una clave de API de SandBase como Authorization: Bearer. Las solicitudes se ejecutan en el canal oficial de Tripo al mismo precio que /v1/run.
POST https://api.sandbase.ai/tripo/v3/generation/image-to-model con "model": "P2-20260801". El ejemplo de solicitud anterior en Tripo v3 API muestra una llamada completa.
Tripo nombra estas entradas de forma distinta al Schema de abajo. El resto de los campos conserva su nombre.
| Campo del Schema | Campo de Tripo |
|---|---|
image | input |
seed | model_seed |
Las entradas son URLs públicas, como una cadena o un objeto con un campo url. Aún no se aceptan los IDs de tarea de Tripo ni los valores de file_token, la carga de archivos no está disponible y webhook_url se ignora.
El envío devuelve data.task_id. Consulta hasta que data.status sea success, failed o cancelled. Si tiene éxito, data.output usa nombres de campos de Tripo como model_url, y credits_consumed es el cargo de 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 con {"task_ids": [...]} devuelve hasta 100 tareas. GET /tripo/v3/account/balance devuelve tu saldo de SandBase en créditos.
Los errores usan el contenedor de Tripo: {"code": 1004, "status": "error", "message": "..."}.
| code | Significado |
|---|---|
2 / 1002 | Falta la clave de API de SandBase, no es válida o no está autorizada |
1003 | El cuerpo no es un objeto JSON |
1004 | Parámetro faltante o no válido. El mensaje nombra el campo de Tripo |
1007 / 2000 | Se alcanzó el límite de tasa o de concurrencia |
2001 | Tarea no encontrada, o creada con otra clave de API |
2002 | Endpoint o función no compatible con SandBase |
2010 | Saldo de SandBase insuficiente o se alcanzó el límite de gasto de la clave de API |
4001 | Endpoint desconocido |
Cuando Tripo rechaza o falla una tarea, termina como failed con el error_code y el error_message de Tripo. Los códigos sobre tu solicitud o contenido se devuelven sin cambios; los códigos sobre la cuenta upstream de Tripo se informan como 1000.