Call it
curl https://api.peume.com/v1/call/retexture-3d-model \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"input_run_id": "your input run id",
"model_url": "your model url"
}
}'const res = await fetch("https://api.peume.com/v1/call/retexture-3d-model", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"input_run_id": "your input run id",
"model_url": "your model url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/retexture-3d-model",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"input_run_id": "your input run id",
"model_url": "your model url"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: retexture-3d-model.
Parameters
input_run_idstringrunId of one of YOUR OWN earlier, successful Meshy runs that returned a model: /text-to-3d/preview, /text-to-3d/refine, /image-to-3d/generate, /multi-image-to-3d/generate, /model/retexture, /model/remesh, /model/convert, /model/resize, /model/uv-unwrap or /print/repair.
model_urlstringA public https URL of the model file instead.
text_style_promptstringDescribe the new texture style.
image_style_urlstringA style reference image (public https URL, ≥ 32 px a side).
multiview_image_urlsarray1–4 views of the same object (primary first); needs ai_model meshy-7 or meshy-n1.
ai_modelstringTexture model (default latest).
meshy-6 · meshy-6-lite · meshy-7 · meshy-n1 · latest
enable_original_uvbooleanKeep the source model's UV layout.
enable_pbrbooleanProduce PBR texture maps.
texture_resolutionstringTexture resolution (default 2k; 8k costs $0.45).
2k · 4k · 8k
remove_lightingbooleanRemove baked lighting (default true).
target_formatsarrayFormats to generate (default: every format except 3mf).
alpha_thumbnailbooleanAlso return a transparent-background preview.
