Leum chun t-susbaint

Meshy 7 Retexture

Amalaich

ID a’ mhodail meshy/v7/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/v7/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"

An t-iarrtas seo: $0.30 300 creideasan API Ruith e air an duilleig seo

Faigh iuchair API
Meshy 3D Toradh 4K #3d#3d-to-3d#textures#pbr

Tionndadh Meshy 7 de ath-texturing 3D: sealladh ùr à prompt no ìomhaigh stoidhle, le toradh PBR roghainneil

Meshy · 3D

Thèid a’ chiad toradh agad an-seo

Tog iarrtas gu h-ìosal agus ruith e leis an iuchair API agad. Tha na h-às-churan air an lethbhreacadh dhan stòradh againn, air an cumail gu bràth no 7 latha an-asgaidh.

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

texture_resolution bun-roghainn 2k

Is iad na roghainnean dùmhlachd dath-bhunaiteach 2k (2048), 4k (4096), agus 8k (8192). Le bhith a’ taghadh 8k thèid mapaichean PBR a chuingealachadh gu 4k agus mapa sgaoilidh fhàgail às; chan eil 8k agus 4k rim faighinn ach le Meshy 6 no 7.

•riatanach

Stòr a’ mhodail 3D airson teacsadh, air a thoirt seachad mar URL ruigsinneach gu poblach no URI dàta base64 a’ cleachdadh application/octet-stream mar an seòrsa MIME aige. Is iad na leudachain faidhle ris an gabhar .glb, .gltf, .obj, .fbx, agus .stl.

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

Teacsa ann an stoidhle teacsair, riatanach mura h-eil image_style_url ann agus cuibhrichte gu 600 caractar.

Leig às faidhle, no

Stiùireadh teacsadh 2D aig a bheil prìomhachas thairis air text_style_prompt nuair a tha e air a thoirt seachad mar image_style_url. Thoir seachad an ìomhaigh seo mura h-eil text_style_prompt ann; tha .jpg, .jpeg, agus .png a’ faighinn taic.

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

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu Meshy 7 Retexture

Cuiridh e inneach ùr air faidhle 3D a chaidh a thoirt seachad (.glb, .gltf, .obj, .fbx, .stl) a’ cleachdadh tuairisgeul teacsa suas ri 600 caractar no ìomhaigh stoidhle 2D; bidh an ìomhaigh air thoiseach nuair a thèid an dà chuid a chur. Tha dùmhlachd-bhreacaidh an dath bhunaiteach 2k, 4k no 8k, agus aig 8k lùghdaichidh na mapaichean PBR gu 4k gun mhapa sgaoilidh. Suidhich `enable_original_uv` gus UVan làithreach a chumail, agus `enable_pbr` gus mapaichean meatailteach, garbhachd agus àbhaisteach fhaighinn. Tillidh e GLB còmhla ri cruthan agus faidhlichean inneach eile.

Paramadairean

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
model_urlriatanach
Seòrsastring
Stòr a’ mhodail 3D airson teacsadh, air a thoirt seachad mar URL ruigsinneach gu poblach no URI dàta base64 a’ cleachdadh application/octet-stream mar an seòrsa MIME aige. Is iad na leudachain faidhle ris an gabhar .glb, .gltf, .obj, .fbx, agus .stl.
text_style_promptroghainneil
Seòrsastring | null
≤ 600 caractar
Teacsa ann an stoidhle teacsair, riatanach mura h-eil image_style_url ann agus cuibhrichte gu 600 caractar.
image_style_urlroghainneil
Seòrsaurl · image
Stiùireadh teacsadh 2D aig a bheil prìomhachas thairis air text_style_prompt nuair a tha e air a thoirt seachad mar image_style_url. Thoir seachad an ìomhaigh seo mura h-eil text_style_prompt ann; tha .jpg, .jpeg, agus .png a’ faighinn taic.
texture_resolutionroghainneil
Seòrsaenum
Bun-roghainn2k
2k4k8k
Is iad na roghainnean dùmhlachd dath-bhunaiteach 2k (2048), 4k (4096), agus 8k (8192). Le bhith a’ taghadh 8k thèid mapaichean PBR a chuingealachadh gu 4k agus mapa sgaoilidh fhàgail às; chan eil 8k agus 4k rim faighinn ach le Meshy 6 no 7.
enable_original_uvroghainneil
Seòrsaboolean
Bun-roghainntrue
Cùm UVs seach an ath-ghineadh le bhith a’ comasachadh an roghainn seo. Dh’fhaodadh càileachd fulang ma thèid a chomasachadh airson modail aig nach eil mapadh UV tùsail.
enable_pbrroghainneil
Seòrsaboolean
Bun-roghainnfalse
A’ riaghladh gineadh mhapaichean PBR meitileach, garbhachd, agus àbhaisteach còmhla ris an dath bhunaiteach.
enable_safety_checkerroghainneil
Seòrsaboolean
Bun-roghainntrue
Tionndadh sgrùdaidh sàbhailteachd ro-ghiullachd: tha true a’ dèanamh sgrùdadh sàbhailteachd an in-chuir riatanach mus tèid a ghiullachd.
riatanach

Gabhaidh paramadairean faidhle ri URL poblach https://, URI data: suas ri 10 MB, no file_url de luchdachadh suas. Faidhlichean

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "meshy/v7/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"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
model_glb
object {url, content_type, file_name, file_size}Rud 3D ann an cruth GLB le teacsaran ùraichte.
thumbnail
object {url, content_type, file_name, file_size} | nullDealbh beag a’ sealltainn ro-shealladh den mhodail às dèidh ath-teacsadh.
model_urls
object {glb, fbx, obj, usdz, blend, stl}Ceanglaichean ris a’ mhodail 3D ann an diofar chruthan.
texture_urls
array of object {base_color, metallic, normal, roughness}Faidhlichean teacsair air an riochdachadh mar sreath de nithean.
text_style_prompt
string | nullPrompt teacsachaidh a chaidh a chleachdadh, nuair a chaidh a thoirt seachad.
image_style_url
string | nullURL na h-ìomhaigh teacsachaidh a chaidh a chleachdadh, nuair a chaidh a thoirt seachad.

Barrachd mhodalan: 3D

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/meshy/v7/retexture.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt