model_urlstringrequerido
3D model to texture: .glb, .gltf, .obj, .fbx or .stl URL.
meshy/6.0-lite/retextureMeshy 6 Lite Retexture is the lower-cost Meshy retexturing model: repaint an existing 3D model from a text or image style.
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.
{
"model_url": "https://static.sandbase.ai/examples/0e3ef03d-79e9-4c67-8540-181fe8251040/input/93745c11-502e-46fa-bc71-ed5454ae3b85.glb",
"text_style_prompt": "weathered bronze robot with green patina and gold trim"
}Meshy 6 Lite Retexture is the lower-cost Meshy retexturing model: repaint an existing 3D model from a text or image style.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | 3D model URL, required | — | .glb, .gltf, .obj, .fbx or .stl. |
text_style_prompt | string | — | Texture style, up to 800 characters. Required when image_style_url is not set. |
image_style_url | image URL | — | JPG or PNG style reference; takes precedence over the text prompt. |
enable_pbr | boolean | false | Also generate metallic, roughness and normal maps. |
enable_original_uv | boolean | true | Keep the model's UV layout. |
$0.40 per retextured model; PBR maps are included.
| Request | Price |
|---|---|
| Retexture | $0.40 |
| Retexture + PBR | $0.40 |
| Failed runs are not charged. |
text_style_prompt or image_style_url.Higher-detail retexture models: meshy/7.0/retexture, meshy/6.0/retexture.
Empiece a construir
Envíe este modelo a través de la API de ejecución unificada de SandBase.
# 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": "meshy/6.0-lite/retexture",
"enable_pbr": false,
"text_style_prompt": "red and black chest",
"enable_original_uv": true
}
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.
model_urlstringrequerido3D model to texture: .glb, .gltf, .obj, .fbx or .stl URL.
enable_pbrbooleanAlso generate metallic, roughness and normal maps.
Valor predeterminado: false
image_style_urlstring2D image that guides the texture (JPG or PNG). Takes precedence over text_style_prompt.
text_style_promptstringDescribe the texture style, up to 800 characters. Required when image_style_url is not set.
enable_original_uvbooleanUse the model's existing UV layout instead of generating new UVs.
Valor predeterminado: true
{
"model": "meshy/6.0-lite/retexture",
"enable_pbr": false,
"text_style_prompt": "red and black chest",
"enable_original_uv": true
}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/0e3ef03d-79e9-4c67-8540-181fe8251040/output/66898bc0-20f2-4761-9268-f26e33f04e9a.png",
"thumbnail": "https://static.sandbase.ai/examples/0e3ef03d-79e9-4c67-8540-181fe8251040/output/66898bc0-20f2-4761-9268-f26e33f04e9a.png",
"url": "https://static.sandbase.ai/examples/0e3ef03d-79e9-4c67-8540-181fe8251040/output/7b5d4e75-09e3-481b-b494-1f5c3c0f6cb5.glb"
}
]