model_urlstringobbligatorio
URL of the 3D model to texture. Supports .glb, .gltf, .obj, .fbx and .stl.
meshy/n1/retextureMeshy N1 Retexture repaints an existing 3D model from one reference image or up to four reference views, producing a 2K base color texture.
Prova il modello
PNG, JPEG, WebP o GIF · massimo 20 MiB
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 4

Cosa vuoi fare dopo?
Seleziona un esempio per caricare i suoi input e il risultato nel playground.
{
"image_style_url": "https://static.sandbase.ai/examples/e0fc4828-821c-4974-966e-116c53e8ca86/input/7f895d34-8025-4201-a8da-dc4bff72e967.png",
"model_url": "https://static.sandbase.ai/examples/e0fc4828-821c-4974-966e-116c53e8ca86/input/c7fd980b-df7a-4f18-b6ca-4d1fe7e5638e.glb"
}Meshy N1 Retexture repaints an existing 3D model from one reference image or up to four reference views, producing a 2K base color texture.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the 3D model to texture. Supports .glb, .gltf, .obj, .fbx and .stl. |
image_style_url | image URL | — | Single reference image of the target texture, treated as the front view. Provide this or multiview_image_urls. |
multiview_image_urls | image URLs (1–4) | — | 1 to 4 reference views of the target texture; the first is the front view. Cannot be combined with image_style_url. |
enable_original_uv | boolean | true | Use the model's original UV mapping instead of generating new UVs. |
url: Main 3D file (GLB unless another export format is selected).thumbnail: Preview image rendered by the provider.$0.40 per request. Failed runs are not charged.
Other Meshy 3D endpoints: meshy/6.0-lite/retexture, meshy/6.0/retexture, meshy/7.0/image-to-3d, meshy/7.0/multi-image-to-3d.
Inizia a costruire
Invia questo modello tramite la SandBase Unified Run API.
# 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/n1/retexture",
"model_url": "https://static.sandbase.ai/examples/meshy/n1/retexture/input_model_url_0.glb",
"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"Crea una SandBase API key e impostala nell'ambiente del server. Tutte le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la key sul server. Non esporla nel codice del browser né committarla in un repository.
Esegui POST su /v1/run con questo ID modello e i relativi input. L'esempio di richiesta sopra include invio e polling.
Usa il run ID restituito per fare polling finché lo stato non è completed, failed o timeout. Leggi l'output solo dopo completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passa un URL di file accessibile pubblicamente nel campo image, video o audio del modello. I formati supportati e i limiti sono mostrati accanto a ciascun input del Playground.
Usa il controllo upload o replace sui campi immagine supportati nel Playground. I campi URL video accettano un video di driving ospitato; non implicano il supporto al caricamento video.
model_urlstringobbligatorioURL of the 3D model to texture. Supports .glb, .gltf, .obj, .fbx and .stl.
image_style_urlstringSingle reference image of the target texture, treated as the front view. Provide this or multiview_image_urls.
enable_original_uvbooleanUse the model's original UV mapping instead of generating new UVs.
Predefinito: true
multiview_image_urlsarray1 to 4 reference views of the target texture; the first is the front view. Cannot be combined with image_style_url.
{
"model": "meshy/n1/retexture",
"model_url": "https://static.sandbase.ai/examples/meshy/n1/retexture/input_model_url_0.glb",
"enable_original_uv": true
}Un run completato espone il risultato in output. Quanto segue è l'esempio salvato del modello, non una nuova generazione.
[
{
"poster": "https://static.sandbase.ai/examples/e0fc4828-821c-4974-966e-116c53e8ca86/output/9ca739e6-5e70-4b7b-a2ed-b1c4b6a6de73.png",
"thumbnail": "https://static.sandbase.ai/examples/e0fc4828-821c-4974-966e-116c53e8ca86/output/9ca739e6-5e70-4b7b-a2ed-b1c4b6a6de73.png",
"url": "https://static.sandbase.ai/examples/e0fc4828-821c-4974-966e-116c53e8ca86/output/433c982c-f7da-48c4-b6df-98db701b814d.glb"
}
]