Introduction
What this endpoint does
Generates a fresh texture set for an existing 3D model without changing its shape.
Inputs
mesh_url plus either texture_prompt (up to 600 characters) or texture_image_url are required. Optional generate_pbr, keep_original_uv and texture_resolution (2k, 4k or 8k) control map detail.
Output
One retextured GLB file.
| Field | Value |
|---|---|
| Input | 3D model, Image |
| Output | 3D model |
| Endpoint | retexture |
| Input formats | Mesh files up to 90 MB (GLB / FBX / OBJ / STL) |
| Texture resolution | 2k, 4k, 8k |
| Maps | Base colour, plus optional PBR (metallic-roughness, normal) |
Key features & highlights
Switch finishes without touching geometry
Keep your mesh topology and UVs while exploring weathered ceramic, brushed metal or fabric looks from a text prompt, or transfer colours directly from a style reference photo.
2K, 4K or 8K with optional PBR channels
Our 2K text trial with PBR enabled completed in 80 seconds and embedded base-colour, metallic-roughness and normal maps into the returned GLB; our image-guided pass without PBR returned a clean base-colour GLB in 55 seconds.
Request parameters
| Parameter | Required | Description |
|---|---|---|
mesh_url | Yes | Existing 3D mesh to repaint (GLB, GLTF, FBX, OBJ or STL, up to 90 MB). at least 1 characters |
texture_prompt | No | Material description up to 600 characters. Provide either |
texture_image_url | No | Reference style image used when |
texture_resolution | No | Output texture map size: 2k (default), 4k or 8k. 2k and 4k share the standard rate; 8k costs more. |
generate_pbr | No | Embed full PBR maps (metallic-roughness and normal in addition to base colour). Defaults to false; no price impact. Default: |
keep_original_uv | No | Preserve the mesh's existing UV layout (default true) instead of re-unwrapping. No price impact. Default: |
Pricing
Priced per model by texture_resolution: 2k and 4k share the standard rate, while 8k uses the higher rate. Prompt, image, PBR and UV flags do not change the price; failed jobs are not charged.
| Specification | Price |
|---|---|
| $0.48 / request |
| $0.48 / request |
| $0.72 / request |
Use cases
E-commerce material variants
Generate multiple colourways and surface finishes for one product mesh without re-modelling or manual UV painting.
Game asset look-dev
Test photorealistic PBR materials up to 8K on existing low-poly or sculpted meshes before final engine integration.
Prompt guide & pro tips
Upload your mesh
Provide a GLB, GLTF, FBX, OBJ or STL up to 90 MB. Leave
keep_original_uvenabled when the asset already has clean UV layout.Supply a prompt or reference image
Write a material description in
texture_prompt(up to 600 characters), or passtexture_image_urlwhen you have a target look photo.Choose PBR and resolution
Toggle
generate_pbrfor full metallic, roughness and normal maps, and pick 2k, 4k or 8k.
Overview
Give an existing mesh a brand-new material look using Meshy 7 via text or a reference photo.
Example request
{
"mesh_url": "https://example.com/boot.glb",
"texture_prompt": "weathered cobalt ceramic glaze with matte dark sole",
"generate_pbr": true,
"texture_resolution": "2k"
}
Tested output
A 2K text + PBR run finished in 80 seconds with base-colour, metallic-roughness and normal maps embedded; a 2K reference-image run without PBR finished in 55 seconds.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "meshy/v7/retexture",
"input": {
"mesh_url": "https://example.com/reference.png",
"texture_resolution": "2k"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.




