Call it
curl https://api.peume.com/v1/call/texture-text-generated-mesh \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"preview_run_id": "your preview run id"
}
}'const res = await fetch("https://api.peume.com/v1/call/texture-text-generated-mesh", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"preview_run_id": "your preview run id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/texture-text-generated-mesh",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"preview_run_id": "your preview run id"
}
},
)
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: texture-text-generated-mesh.
Parameters
preview_run_idRequiredstringrun id of YOUR OWN successful /text-to-3d/preview run to texture.
enable_pbrbooleanProduce PBR texture maps.
texture_resolutionstringTexture resolution (default 2k; 8k costs $0.45).
2k · 4k · 8k
texture_promptstringTexture description.
texture_image_urlstringTexture reference image (public https URL).
ai_modelstringTexture model (default: inherited from the preview).
meshy-6 · meshy-6-lite · meshy-7 · meshy-7.1 · latest · meshy-n1
moderationbooleanRun content moderation.
remove_lightingbooleanRemove baked lighting (default true).
target_formatsarrayFormats to generate (default: every format except 3mf).
alpha_thumbnailbooleanAlso return a transparent-background preview.
auto_sizebooleanEstimate the real-world size.
origin_atstringWhere to place the origin.
bottom · center
