Skip to content

Meshy 6 Retexture

Integrate

Model id meshy/v6/retexture
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/meshy/v6/retexture?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_url": "https://example.com/your-file.glb"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.30 300 API credits Run it on this page

Get API key
Meshy 3D 4K output #3d#3d-to-3d#textures#pbr

Re-textures an uploaded 3D model from a text prompt or style image, with optional PBR maps and up to 8k textures

Meshy · 3D

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

texture_resolution default 2k

Base-color resolution choices are 2k (2048), 4k (4096), and 8k (8192). Selecting 8k limits PBR maps to 4k and omits the emission map; both 8k and 4k are available only with Meshy 6 or 7.

•required

3D model source for texturing, provided as either a publicly accessible URL or a base64 data URI using application/octet-stream as its MIME type. Accepted file extensions are .glb, .gltf, .obj, .fbx, and .stl.

Advanced text_style_prompt · image_style_url · enable_original_uv · enable_pbr · enable_safety_checker
0 / 600

Texture-style text, required in the absence of image_style_url and limited to 600 characters.

Drop a file, or

2D texturing guide that takes priority over text_style_prompt when supplied as image_style_url. Supply this image if text_style_prompt is absent; supported file types are .jpg, .jpeg, and .png.

POST /run/meshy/v6/retexture?wait=20 quote → $0.30
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/meshy/v6/retexture?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_url": "https://example.com/your-file.glb"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Meshy 6 Retexture

Replaces the surface textures of an existing mesh in .glb, .gltf, .obj, .fbx or .stl format. Style comes from `text_style_prompt` (up to 600 characters) or `image_style_url`, which takes precedence if both are given. `texture_resolution` can be 2k, 4k or 8k, `enable_pbr` adds metallic, roughness and normal maps, and `enable_original_uv` keeps the model's UV layout. Output includes a GLB, other formats, textures and a thumbnail.

Parameters

NameType DefaultAllowed Description
model_urlrequired
Typestring
3D model source for texturing, provided as either a publicly accessible URL or a base64 data URI using application/octet-stream as its MIME type. Accepted file extensions are .glb, .gltf, .obj, .fbx, and .stl.
text_style_promptoptional
Typestring | null
≤ 600 characters
Texture-style text, required in the absence of image_style_url and limited to 600 characters.
image_style_urloptional
Typeurl · image
2D texturing guide that takes priority over text_style_prompt when supplied as image_style_url. Supply this image if text_style_prompt is absent; supported file types are .jpg, .jpeg, and .png.
texture_resolutionoptional
Typeenum
Default2k
2k4k8k
Base-color resolution choices are 2k (2048), 4k (4096), and 8k (8192). Selecting 8k limits PBR maps to 4k and omits the emission map; both 8k and 4k are available only with Meshy 6 or 7.
enable_original_uvoptional
Typeboolean
Defaulttrue
Keep UVs rather than regenerate them by enabling this option. Quality can suffer if it is enabled for a model that lacks an original UV mapping.
enable_pbroptional
Typeboolean
Defaultfalse
Controls generation of metallic, roughness, and normal PBR maps alongside the base color.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Preprocessing safety-check switch: true makes an input safety check a prerequisite to processing.
required

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "meshy/v6/retexture",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 300,
    "usd": "0.30",
    "charged": 300,
    "refunded": 0
  },
  "input": {
    "model_url": "https://example.com/your-file.glb"
  },
  "output": {
    "model_glb": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "thumbnail": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "model_urls": {
      "glb": {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      },
      "fbx": {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      },
      "obj": {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      },
      "usdz": {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      },
      "blend": {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      },
      "stl": {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    },
    "texture_urls": [
      {
        "base_color": {
          "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
          "content_type": "image/jpeg",
          "file_name": "0-output.jpeg",
          "file_size": 1843200
        },
        "metallic": {
          "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
          "content_type": "image/jpeg",
          "file_name": "0-output.jpeg",
          "file_size": 1843200
        },
        "normal": {
          "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
          "content_type": "image/jpeg",
          "file_name": "0-output.jpeg",
          "file_size": 1843200
        },
        "roughness": {
          "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
          "content_type": "image/jpeg",
          "file_name": "0-output.jpeg",
          "file_size": 1843200
        }
      }
    ],
    "text_style_prompt": "red and black chest",
    "image_style_url": "string"
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
model_glb
object {url, content_type, file_name, file_size}GLB-format 3D object with updated textures.
thumbnail
object {url, content_type, file_name, file_size} | nullThumbnail showing a preview of the model after retexturing.
model_urls
object {glb, fbx, obj, usdz, blend, stl}Links to the 3D model in various formats.
texture_urls
array of object {base_color, metallic, normal, roughness}Texture files represented as an array of objects.
text_style_prompt
string | nullTexturing prompt that was used, when supplied.
image_style_url
string | nullURL of the texturing image that was used, when supplied.

For AI agents: this page as Markdown is at https://doitong.com/developers/models/meshy/v6/retexture.md. All models and guides: https://doitong.com/developers/llms.txt