model_urlstringwajib
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.
Coba model ini
PNG, JPEG, WebP, atau GIF Β· maksimum 20 MiB
Pilih contoh untuk memuat input dan hasilnya ke 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.
Mulai membangun
Kirim model ini melalui 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/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"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
model_urlstringwajib3D model to texture: .glb, .gltf, .obj, .fbx or .stl URL.
enable_pbrbooleanAlso generate metallic, roughness and normal maps.
Default: 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.
Default: true
{
"model": "meshy/6.0-lite/retexture",
"enable_pbr": false,
"text_style_prompt": "red and black chest",
"enable_original_uv": true
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"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"
}
]