Neidio i'r cynnwys

Meshy 6 Retexture

Integreiddio

ID y model 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"

Y cais hwn: $0.30 300 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
Meshy 3D Allbwn 4K #3d#3d-to-3d#textures#pbr

Ail-weadu Meshy 6 o fodel 3D wedi'i uwchlwytho o brydlun testun neu ddelwedd arddull, gyda mapiau PBR dewisol a gweadau hyd at 8k

Meshy · 3D

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

texture_resolution rhagosodedig 2k

Dewisiadau cydraniad lliw sylfaenol yw 2k (2048), 4k (4096), ac 8k (8192). Mae dewis 8k yn cyfyngu mapiau PBR i 4k ac yn hepgor y map allyriadau; dim ond gyda Meshy 6 neu 7 y mae 8k a 4k ar gael.

•gofynnol

Ffynhonnell model 3D ar gyfer texturing, wedi'i darparu naill ai fel URL hygyrch i'r cyhoedd neu URI data base64 gan ddefnyddio application/octet-stream fel ei fath MIME. Yr estyniadau ffeil a dderbynnir yw .glb, .gltf, .obj, .fbx, a .stl.

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

Testun arddull gwead, sy'n ofynnol yn absenoldeb image_style_url ac wedi'i gyfyngu i 600 nod.

Gollyngwch ffeil, neu

Canllaw texturing 2D sy'n cael blaenoriaeth dros text_style_prompt pan gaiff ei ddarparu fel image_style_url. Darparwch y ddelwedd hon os yw text_style_prompt yn absennol; y mathau o ffeil a gefnogir yw .jpg, .jpeg, a .png.

POST /run/meshy/v6/retexture?wait=20 dyfynbris → $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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Meshy 6 Retexture

Yn disodli gweadau wyneb rhwyll presennol mewn fformat .glb, .gltf, .obj, .fbx neu .stl. Daw'r arddull o `text_style_prompt` (hyd at 600 nod) neu `image_style_url`, sy'n cael blaenoriaeth os rhoddir y ddau. Gall `texture_resolution` fod yn 2k, 4k neu 8k, mae `enable_pbr` yn ychwanegu mapiau metelaidd, garwedd a normal, ac mae `enable_original_uv` yn cadw cynllun UV y model. Mae'r allbwn yn cynnwys GLB, fformatau eraill, gweadau a mân-lun.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
model_urlgofynnol
Mathstring
Ffynhonnell model 3D ar gyfer texturing, wedi'i darparu naill ai fel URL hygyrch i'r cyhoedd neu URI data base64 gan ddefnyddio application/octet-stream fel ei fath MIME. Yr estyniadau ffeil a dderbynnir yw .glb, .gltf, .obj, .fbx, a .stl.
text_style_promptdewisol
Mathstring | null
≤ 600 nod
Testun arddull gwead, sy'n ofynnol yn absenoldeb image_style_url ac wedi'i gyfyngu i 600 nod.
image_style_urldewisol
Mathurl · image
Canllaw texturing 2D sy'n cael blaenoriaeth dros text_style_prompt pan gaiff ei ddarparu fel image_style_url. Darparwch y ddelwedd hon os yw text_style_prompt yn absennol; y mathau o ffeil a gefnogir yw .jpg, .jpeg, a .png.
texture_resolutiondewisol
Mathenum
Rhagosodedig2k
2k4k8k
Dewisiadau cydraniad lliw sylfaenol yw 2k (2048), 4k (4096), ac 8k (8192). Mae dewis 8k yn cyfyngu mapiau PBR i 4k ac yn hepgor y map allyriadau; dim ond gyda Meshy 6 neu 7 y mae 8k a 4k ar gael.
enable_original_uvdewisol
Mathboolean
Rhagosodedigtrue
Cadwch UVs yn hytrach na'u hailgynhyrchu drwy alluogi'r opsiwn hwn. Gall ansawdd ddioddef os caiff ei alluogi ar gyfer model heb fapio UV gwreiddiol.
enable_pbrdewisol
Mathboolean
Rhagosodedigfalse
Rheoli cynhyrchu mapiau PBR metelig, garwedd a normal ochr yn ochr â'r lliw sylfaenol.
enable_safety_checkerdewisol
Mathboolean
Rhagosodedigtrue
Switsh gwiriad diogelwch rhagbrosesu: mae true yn gwneud gwiriad diogelwch mewnbwn yn rhagofyniad i brosesu.
gofynnol

Mae paramedrau ffeil yn derbyn URL cyhoeddus https://, URI data: hyd at 10 MB, neu file_url uwchlwythiad. Ffeiliau

Allbwn

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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
model_glb
object {url, content_type, file_name, file_size}Gwrthrych 3D fformat GLB gyda gweadau wedi'u diweddaru.
thumbnail
object {url, content_type, file_name, file_size} | nullMân-lun sy'n dangos rhagolwg o'r model ar ôl ail-weadu.
model_urls
object {glb, fbx, obj, usdz, blend, stl}Dolenni i'r model 3D mewn fformatau amrywiol.
texture_urls
array of object {base_color, metallic, normal, roughness}Ffeiliau gwead a gynrychiolir fel arae o wrthrychau.
text_style_prompt
string | nullAnogiad texturing a ddefnyddiwyd, pan ddarparwyd.
image_style_url
string | nullURL y ddelwedd texturing a ddefnyddiwyd, pan ddarparwyd.

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/meshy/v6/retexture.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt