lowpoly 30 अक्टू॰ 2026 को बंद हो जाएगा। अनुरोध त्रुटियों से बचने के लिए इन तारीखों से पहले मॉडल बदल लें।

Retexture API

रीटेक्सचर API एक ऐसी सुविधा है जो आपको Meshy की AI रीटेक्सचरिंग क्षमताओं को अपने स्वयं के एप्लिकेशन में इंटीग्रेट करने की अनुमति देती है। इस सेक्शन में, आपको इस API के साथ शुरुआत करने के लिए आवश्यक सारी जानकारी मिलेगी।


POST/openapi/v1/retexture

एक Retexture टास्क बनाएं

यह एंडपॉइंट आपको एक नया Retexture टास्क बनाने की अनुमति देता है। Retexture टास्क ऑब्जेक्ट में कौन-सी प्रॉपर्टी शामिल हैं, यह देखने के लिए The Retexture Task Object देखें।

टास्क बैकग्राउंड में चलता है। इसमें आमतौर पर कितना समय लगता है, इसके लिए Processing Times देखें।

पैरामीटर

  • Name
    input_task_id
    Type
    string
    आवश्यक
    Description

    उस पूर्ण हो चुके इमेज से 3D या टेक्स्ट से 3D टास्क की ID जिसे आप रीटेक्सचर करना चाहते हैं। यह टास्क निम्नलिखित में से एक होना चाहिए: Text to 3D Preview, Text to 3D Refine, इमेज से 3D या रीमेश। इसके अलावा, इसकी स्थिति SUCCEEDED होनी चाहिए।

  • Name
    model_url
    Type
    string
    आवश्यक
    Description

    Meshy को टेक्सचर करने के लिए एक 3D मॉडल प्रदान करें। समर्थित फॉर्मेट: .glb, .gltf, .obj, .fbx, .stl।

    अधिकतम फ़ाइल आकार: http या https URL के लिए 400 MB, data: URI के लिए 100 MB।

    100 MB से बड़ी GLB, glTF, FBX या OBJ फ़ाइल में अधिकतम 10,000,000 फेस हो सकते हैं। फेस को ट्राएंगल के रूप में गिना जाता है: एक क्वाड को 2 के रूप में गिना जाता है, और एक से अधिक बार बनाई गई मेश को प्रत्येक कॉपी के लिए एक बार गिना जाता है। 100 MB से अधिक होने पर, FBX फ़ाइल बाइनरी FBX 7.1 या उससे नई होनी चाहिए, और GLB या glTF फ़ाइल में Draco कम्प्रेशन का उपयोग नहीं होना चाहिए।

    मॉडल प्रदान करने के दो तरीके हैं:

    • सार्वजनिक रूप से एक्सेस किया जा सकने वाला URL: एक URL जो सार्वजनिक इंटरनेट से एक्सेस किया जा सकता है।
    • Data URI: मॉडल का एक बेस64-एन्कोडेड data URI। MIME type application/octet-stream का उपयोग करें। उदाहरण: data:application/octet-stream;base64,<your base64-encoded model data>।
  • Name
    text_style_prompt
    Type
    string
    आवश्यक
    Description

    टेक्स्ट का उपयोग करके ऑब्जेक्ट की अपनी वांछित टेक्सचर स्टाइल का वर्णन करें। अधिकतम 800 अक्षर।

  • Name
    image_style_url
    Type
    string
    आवश्यक
    Description

    टेक्सचरिंग प्रक्रिया को गाइड करने के लिए एक 2d इमेज प्रदान करें। हम वर्तमान में .jpg, .jpeg, .png, और .webp फॉर्मेट को सपोर्ट करते हैं।

    अधिकतम फ़ाइल आकार: 20 MB।

    इमेज प्रदान करने के दो तरीके हैं:

    • सार्वजनिक रूप से एक्सेस किया जा सकने वाला URL: एक URL जो सार्वजनिक इंटरनेट से एक्सेस किया जा सकता है
    • Data URI: इमेज का एक बेस64-एन्कोडेड data URI। एक data URI का उदाहरण: data:image/jpeg;base64,<your base64-encoded image data>
  • Name
    multiview_image_urls
    Type
    string[]
    आवश्यक
    Description

    टेक्सचरिंग को गाइड करने के लिए एक ही ऑब्जेक्ट को अलग-अलग व्यू से दिखाने वाली 1 से 4 इमेज प्रदान करें। पहली इमेज प्राइमरी (फ्रंट) व्यू होती है; शेष व्यू (बाएं, पीछे, दाएं) का क्रम मायने नहीं रखता।

    प्रत्येक एलिमेंट image_style_url के समान फॉर्मेट स्वीकार करता है (एक सार्वजनिक रूप से एक्सेस किया जा सकने वाला URL या एक बेस64 data URI, .jpg/.jpeg/.png/.webp)।

    अधिकतम फ़ाइल आकार: प्रति इमेज 20 MB।

  • Name
    ai_model
    Type
    string
    डिफ़ॉल्ट latest
    Description

    रीटेक्सचरिंग के लिए उपयोग किए जाने वाले AI मॉडल की ID। उपलब्ध मान: meshy-6-lite, meshy-6, meshy-7, latest (Meshy 7)।

  • Name
    enable_original_uv
    Type
    boolean
    डिफ़ॉल्ट false
    Description

    नया UV लेआउट बनाने के बजाय मॉडल का मौजूदा UV लेआउट बनाए रखें।

    • यदि आप ऐसे मॉडल को रीटेक्सचर कर रहे हैं जिसे Meshy ने जनरेट किया है (input_task_id के माध्यम से, या एक model_url जो Meshy के आउटपुट की ओर इशारा करता है), तो इसके ऑप्टिमाइज़्ड UV लेआउट का पुनः उपयोग करने के लिए इसे true पर सेट करें।
    • यदि आप अपने द्वारा अपलोड किए गए थर्ड-पार्टी मॉडल को रीटेक्सचर कर रहे हैं, तो इसे true पर सेट करें जब उसमें पहले से अच्छे UV हों जिन्हें आप बनाए रखना चाहते हैं, या Meshy को नए UV अनवाइंड करने देने के लिए इसे false रहने दें (उन मॉडलों के लिए सबसे अच्छा जिनमें उचित UV मैपिंग नहीं है)।
  • Name
    enable_pbr
    Type
    boolean
    डिफ़ॉल्ट false
    Description

    बेस कलर के अतिरिक्त PBR मैप (मेटैलिक, रफनेस, नॉर्मल) जनरेट करें। जब ai_model meshy-6 हो, तो एक एमिशन मैप भी शामिल होता है, सिवाय texture_resolution: 8k के। meshy-6-lite, meshy-7 और latest एमिशन मैप प्रोड्यूस नहीं करते हैं।

  • Name
    texture_resolution
    Type
    string
    डिफ़ॉल्ट 2k
    Description

    बेस कलर टेक्सचर रिज़ॉल्यूशन। 2k (2048×2048), 4k (4096×4096), या 8k (8192×8192) में से एक। उच्च रिज़ॉल्यूशन अधिक सतह विवरण कैप्चर करते हैं।

  • Name
    hd_texture
    Type
    boolean
    ⚠ पुराना
    डिफ़ॉल्ट false
    Description

    इसके बजाय texture_resolution का उपयोग करें — यह texture_resolution: "4k" के बराबर है। जब दोनों सेट हों, तो texture_resolution को प्राथमिकता मिलती है।

  • Name
    remove_lighting
    Type
    boolean
    डिफ़ॉल्ट true
    Description

    बेस कलर टेक्सचर से हाइलाइट्स और शैडो हटाता है, जिससे एक साफ-सुथरा परिणाम मिलता है जो कस्टम लाइटिंग सेटअप में बेहतर काम करता है।

  • Name
    target_formats
    Type
    string[]
    Description

    निर्दिष्ट करता है कि आउटपुट में कौन-से 3D फ़ाइल फॉर्मेट शामिल करने हैं। केवल अनुरोधित फॉर्मेट ही जनरेट और रिटर्न किए जाएंगे, जिससे टास्क पूरा होने का समय कम हो सकता है। जब छोड़ दिया जाता है, तो सभी समर्थित फॉर्मेट शामिल होते हैं।

    उपलब्ध मान: glb, obj, fbx, stl, usdz, 3mf

  • Name
    alpha_thumbnail
    Type
    boolean
    डिफ़ॉल्ट false
    Description

    जब true पर सेट किया जाता है, तो टास्क अतिरिक्त रूप से प्रीव्यू का एक पारदर्शी बैकग्राउंड (RGBA) वर्ज़न रेंडर करता है और इसे GET रिस्पॉन्स पर alpha_thumbnail_url के रूप में रिटर्न करता है। मौजूदा thumbnail_url फ़ील्ड अपरिवर्तित रहती है।

रिटर्न

रिस्पॉन्स की result प्रॉपर्टी में नए बनाए गए Retexture टास्क की टास्क id शामिल होती है।

विफलता मोड

  • Name
    400 - Bad Request
    Description

    अनुरोध अस्वीकार्य था। सामान्य कारण:

    • पैरामीटर गायब: model_url या input_task_id में से एक प्रदान किया जाना चाहिए।
    • स्टाइल गायब: text_style_prompt, image_style_url या multiview_image_urls में से एक प्रदान किया जाना चाहिए।
    • परस्पर विरोधी स्टाइल इनपुट: multiview_image_urls को text_style_prompt या image_style_url के साथ संयोजित नहीं किया जा सकता।
    • मल्टी-व्यू के लिए असमर्थित मॉडल: multiview_image_urls के लिए स्पष्ट रूप से ai_model: "meshy-7" आवश्यक है।
    • मॉडल उपलब्ध नहीं है: ai_model: "meshy-7" और ai_model: "meshy-6-lite" को क्रमिक रूप से रोल आउट किया जा रहा है और हो सकता है कि यह आपके अकाउंट के लिए अभी सक्षम न हो।
    • अमान्य इनपुट टास्क: input_task_id को एक समर्थित मॉडल के सफल टास्क का संदर्भ देना चाहिए।
    • अमान्य मॉडल फॉर्मेट: model_url एक असमर्थित एक्सटेंशन वाली फ़ाइल की ओर इशारा करता है।
    • अप्राप्य URL: model_url, image_style_url या एक multiview_image_urls एलिमेंट को डाउनलोड नहीं किया जा सका।
    • मॉडल फ़ाइल बहुत बड़ी है: model_url फ़ाइल 400 MB (http या https URL) या 100 MB (data: URI) से अधिक है।
    • बहुत अधिक फेस: model_url फ़ाइल 100 MB से अधिक है और इसमें 10,000,000 से अधिक फेस हैं। फेस की संख्या कम करें, फिर फ़ाइल को फिर से भेजें।
    • ASCII FBX 100 MB से अधिक: model_url फ़ाइल 100 MB से अधिक की ASCII FBX है। इसे बाइनरी FBX या GLB के रूप में भेजें।
    • अपठनीय मॉडल फ़ाइल: model_url फ़ाइल 100 MB से अधिक है और इसका हेडर नहीं पढ़ा जा सकता, उदाहरण के लिए एक Draco-कंप्रेस्ड GLB या glTF, या 7.1 से पुरानी बाइनरी FBX।
    • मॉडल हेडर बहुत जटिल: model_url फ़ाइल 100 MB से अधिक है और इसके हेडर में जांचने के लिए बहुत अधिक मेश, नोड या रिकॉर्ड हैं। फ़ाइल में ऑब्जेक्ट की संख्या कम करें, फिर इसे फिर से भेजें।
    • इमेज बहुत बड़ी है: image_style_url इमेज या एक multiview_image_urls एलिमेंट 20 MB से अधिक है।
  • Name
    401 - Unauthorized
    Description

    प्रमाणीकरण विफल रहा। कृपया अपनी API की जांच करें।

  • Name
    402 - Payment Required
    Description

    इस टास्क को करने के लिए अपर्याप्त क्रेडिट।

  • Name
    429 - Too Many Requests
    Description

    आपने अपनी रेट लिमिट पार कर ली है।

Request

POST
/openapi/v1/retexture
# Retexture with text prompt
curl https://api.meshy.ai/openapi/v1/retexture \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "model_url": "https://cdn.meshy.ai/model/example_model_2.glb",
    "text_style_prompt": "red fangs, Samurai outfit that fused with japanese batik style",
    "enable_original_uv": true,
    "enable_pbr": true
  }'

# Retexture with image style and PBR
curl https://api.meshy.ai/openapi/v1/retexture \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "model_url": "https://cdn.meshy.ai/model/example_model_2.glb",
    "image_style_url": "<your publicly accessible image url or base64-encoded data URI>",
    "ai_model": "latest",
    "enable_pbr": true,
    "enable_original_uv": true
  }'

Response

{
  "result": "018a210d-8ba4-705c-b111-1f1776f7f578"
}

GET/openapi/v1/retexture/:id

रीटेक्सचर टास्क प्राप्त करें

यह एंडपॉइंट आपको किसी वैध टास्क id के लिए रीटेक्सचर टास्क प्राप्त करने की अनुमति देता है। रीटेक्सचर टास्क ऑब्जेक्ट में कौन-कौन से प्रॉपर्टीज़ शामिल हैं, यह देखने के लिए रीटेक्सचर टास्क ऑब्जेक्ट देखें।

पैरामीटर

  • Name
    id
    Type
    path
    Description

    प्राप्त किए जाने वाले रीटेक्सचर टास्क के लिए यूनिक पहचानकर्ता।

रिटर्न

रिस्पॉन्स में रीटेक्सचर टास्क ऑब्जेक्ट शामिल होता है। विवरण के लिए रीटेक्सचर टास्क ऑब्जेक्ट सेक्शन देखें।

Request

GET
/openapi/v1/retexture/018a210d-8ba4-705c-b111-1f1776f7f578
curl https://api.meshy.ai/openapi/v1/retexture/018a210d-8ba4-705c-b111-1f1776f7f578 \
  -H "Authorization: Bearer ${YOUR_API_KEY}"

Response

{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "retexture",
  "model_urls": {
    "glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.glb?Expires=***",
    "fbx": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.fbx?Expires=***",
    "obj": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.obj?Expires=***",
    "usdz": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***",
    "mtl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.mtl?Expires=***",
    "stl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.stl?Expires=***"
  },
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
  "text_style_prompt": "red fangs, Samurai outfit that fused with japanese batik style",
  "texture_image_url": "",
  "progress": 100,
  "started_at": 1692771667037,
  "created_at": 1692771650657,
  "expires_at": 1692771679037,
  "finished_at": 1692771669037,
  "status": "SUCCEEDED",
  "texture_urls": [
    {
      "base_color": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0.png?Expires=***",
      "metallic": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_metallic.png?Expires=XXX",
      "normal": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_normal.png?Expires=XXX",
      "roughness": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_roughness.png?Expires=XXX"
    }
  ],
  "task_error": {

    "message": ""

  },

  "consumed_credits": 10
}

DELETE/openapi/v1/retexture/:id

रीटेक्सचर टास्क डिलीट करें

यह एंडपॉइंट किसी रीटेक्सचर टास्क को स्थायी रूप से डिलीट कर देता है, जिसमें सभी संबंधित मॉडल और डेटा शामिल हैं। यह क्रिया अपरिवर्तनीय है।

पाथ पैरामीटर्स

  • Name
    id
    Type
    path
    Description

    डिलीट किए जाने वाले रीटेक्सचर टास्क की ID।

टास्क स्टेटस

जो टास्क अभी भी PENDING है, वह डिलीट कर दिया जाता है और बनाते समय इस्तेमाल हुए क्रेडिट रिफंड कर दिए जाते हैं।

जो टास्क पहले से IN_PROGRESS है, उसे डिलीट नहीं किया जा सकता: रिक्वेस्ट 409 Conflict के साथ अस्वीकार कर दी जाती है और टास्क चलता रहता है। जिस टास्क को वर्कर पहले ही शुरू कर चुका है, उसके क्रेडिट रिफंड योग्य नहीं होते, इसलिए उसे बीच में डिलीट करने पर आपके क्रेडिट और परिणाम दोनों का नुकसान होगा। इसके SUCCEEDED, FAILED या CANCELED तक पहुँचने का इंतज़ार करें, फिर इसे डिलीट करें।

टर्मिनल स्टेट (SUCCEEDED, FAILED या CANCELED) में मौजूद टास्क बिना रिफंड के डिलीट कर दिया जाता है।

रिटर्न्स

सफल होने पर 200 OK रिटर्न करता है, या जब टास्क IN_PROGRESS हो तो 409 Conflict रिटर्न करता है।

Request

DELETE
/openapi/v1/retexture/a43b5c6d-7e8f-901a-234b-567c890d1e2f
curl --request DELETE \
  --url https://api.meshy.ai/openapi/v1/retexture/a43b5c6d-7e8f-901a-234b-567c890d1e2f \
  -H "Authorization: Bearer ${YOUR_API_KEY}"

Response

// 200 OK on success, with an empty body.
//
// 409 Conflict when the task is IN_PROGRESS — the task is left running:
{
  "message": "Task is IN_PROGRESS and cannot be deleted. Credits for a task the worker has already started are not refundable; wait for it to reach SUCCEEDED, FAILED or CANCELED, then delete it."
}

GET/openapi/v1/retexture

रीटेक्सचर टास्क की सूची

यह एंडपॉइंट आपको रीटेक्सचर टास्क की सूची प्राप्त करने की सुविधा देता है।

पैरामीटर

  • Name
    page_num
    Type
    integer
    डिफ़ॉल्ट 1
    Description

    पेजिनेशन के लिए पेज नंबर।

  • Name
    page_size
    Type
    integer
    डिफ़ॉल्ट 10
    Description

    पेज साइज़ लिमिट। अधिकतम अनुमत 100 आइटम हैं।

  • Name
    sort_by
    Type
    string
    Description

    जिस फ़ील्ड के आधार पर सॉर्ट करना है।

    उपलब्ध मान:

    • +created_at: निर्माण समय के अनुसार आरोही क्रम में सॉर्ट करें।
    • -created_at: निर्माण समय के अनुसार अवरोही क्रम में सॉर्ट करें।

रिटर्न

The Retexture Task Objects की एक पेजिनेटेड सूची लौटाता है।

Request

GET
/openapi/v1/retexture
curl https://api.meshy.ai/openapi/v1/retexture?page_size=10 \
-H "Authorization: Bearer ${YOUR_API_KEY}"

Response

[
  {
    "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
    "type": "retexture",
    "model_urls": {
      "glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.glb?Expires=***",
      "fbx": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.fbx?Expires=***",
      "usdz": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***"
    },
    "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
    "text_style_prompt": "red fangs, Samurai outfit that fused with japanese batik style",
    "progress": 100,
    "started_at": 1692771667037,
    "created_at": 1692771650657,
    "expires_at": 1692771679037,
    "finished_at": 1692771669037,
    "status": "SUCCEEDED",
    "texture_urls": [
      {
        "base_color": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0.png?Expires=***",
        "metallic": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_metallic.png?Expires=XXX",
        "normal": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_normal.png?Expires=XXX",
        "roughness": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_roughness.png?Expires=XXX"
      }
    ],
    "preceding_tasks": 0,
    "task_error": {

      "message": ""

    },

    "consumed_credits": 10
  }
]

GET/openapi/v1/retexture/:id/stream

रीटेक्सचर टास्क को स्ट्रीम करें

यह एंडपॉइंट Server-Sent Events (SSE) का उपयोग करके एक रीटेक्सचर टास्क के लिए रीयल-टाइम अपडेट स्ट्रीम करता है।

पैरामीटर

  • Name
    id
    Type
    path
    Description

    स्ट्रीम किए जाने वाले रीटेक्सचर टास्क के लिए अद्वितीय पहचानकर्ता।

रिटर्न

रीटेक्सचर टास्क ऑब्जेक्ट्स की एक स्ट्रीम को Server-Sent Events के रूप में लौटाता है।

PENDING या IN_PROGRESS टास्क के लिए, रिस्पॉन्स स्ट्रीम में केवल आवश्यक progress और status फ़ील्ड शामिल होंगी।

Request

GET
/openapi/v1/retexture/018a210d-8ba4-705c-b111-1f1776f7f578/stream
curl -N https://api.meshy.ai/openapi/v1/retexture/018a210d-8ba4-705c-b111-1f1776f7f578/stream \
-H "Authorization: Bearer ${YOUR_API_KEY}"

Response Stream

// Error event example
event: error
data: {
  "status_code": 404,
  "message": "Task not found"
}

// Message event examples illustrate task progress.
// For PENDING or IN_PROGRESS tasks, the response stream will not include all fields.
event: message
data: {
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "progress": 0,
  "status": "PENDING"
}

event: message
data: {
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "progress": 50,
  "status": "IN_PROGRESS"
}

event: message
data: {
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "retexture",
  "progress": 100,
  "status": "SUCCEEDED",
  "created_at": 1692771650657,
  "started_at": 1692771667037,
  "finished_at": 1692771669037,
  "model_urls": {
    "glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.glb?Expires=***",
    "fbx": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.fbx?Expires=***",
    "obj": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.obj?Expires=***",
    "usdz": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***",
    "mtl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.mtl?Expires=***",
    "stl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.stl?Expires=***"
  },
  "texture_urls": [
    {
      "base_color": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0.png?Expires=***",
      "metallic": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_metallic.png?Expires=XXX",
      "normal": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_normal.png?Expires=XXX",
      "roughness": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_roughness.png?Expires=XXX"
    }
  ],
  "preceding_tasks": 0,
  "task_error": {

    "message": ""

  },

  "consumed_credits": 10
}

रीटेक्सचर टास्क ऑब्जेक्ट

रीटेक्सचर टास्क ऑब्जेक्ट एक कार्य इकाई है जिसका उपयोग Meshy टेक्स्ट या इमेज इनपुट से 3D टेक्सचर जनरेट करने के लिए करता है। मॉडल में निम्नलिखित प्रॉपर्टीज़ होती हैं:

Properties

  • Name
    id
    Type
    string
    Description

    टास्क के लिए यूनीक आइडेंटिफायर। हालाँकि हम कार्यान्वयन विवरण के रूप में टास्क आईडी के लिए k-sortable UUID का उपयोग करते हैं, आपको id के फॉर्मेट के बारे में कोई धारणा नहीं बनानी चाहिए।

  • Name
    type
    Type
    string
    Description

    रीटेक्सचर टास्क का प्रकार। मान retexture है।

  • Name
    model_urls
    Type
    object
    Description

    Meshy द्वारा जनरेट की गई टेक्सचर्ड 3D मॉडल फाइल का डाउनलोड करने योग्य URL।

    • Name
      glb
      Type
      string
      Description

      GLB फाइल का डाउनलोड करने योग्य URL।

    • Name
      fbx
      Type
      string
      Description

      FBX फाइल का डाउनलोड करने योग्य URL।

    • Name
      obj
      Type
      string
      Description

      OBJ फाइल का डाउनलोड करने योग्य URL।

    • Name
      usdz
      Type
      string
      Description

      USDZ फाइल का डाउनलोड करने योग्य URL।

    • Name
      mtl
      Type
      string
      Description

      MTL फाइल का डाउनलोड करने योग्य URL, जो टेक्सचर मौजूद होने पर OBJ एक्सपोर्ट के साथ दिया जाता है।

    • Name
      stl
      Type
      string
      Description

      STL फाइल का डाउनलोड करने योग्य URL।

    • Name
      3mf
      Type
      string
      Description

      3MF फाइल का डाउनलोड करने योग्य URL। यह तभी मौजूद होता है जब target_formats के माध्यम से 3mf का अनुरोध किया गया हो।

  • Name
    text_style_prompt
    Type
    string
    Description

    यह वह टेक्स्ट prompt है जिसका उपयोग टेक्सचरिंग टास्क बनाने के लिए किया गया था।

  • Name
    image_style_url
    Type
    string
    Description

    यह वह इमेज इनपुट है जिसका उपयोग टेक्सचरिंग टास्क बनाने के लिए किया गया था।

  • Name
    multiview_image_urls
    Type
    string[]
    Description

    उन मल्टी-व्यू रेफरेंस इमेजेज़ के डाउनलोड करने योग्य URL, जिनका उपयोग टेक्सचरिंग टास्क बनाने के लिए किया गया था। यह केवल तभी मौजूद होता है जब टास्क को multiview_image_urls के साथ बनाया गया हो।

  • Name
    thumbnail_url
    Type
    string
    Description

    मॉडल फाइल की थंबनेल इमेज का डाउनलोड करने योग्य URL।

  • Name
    alpha_thumbnail_url
    Type
    string
    Description

    thumbnail_url के ट्रांसपेरेंट-बैकग्राउंड (RGBA) वर्शन का डाउनलोड करने योग्य URL। यह केवल तभी मौजूद होता है जब टास्क को alpha_thumbnail: true के साथ बनाया गया हो और ट्रांसपेरेंट प्रीव्यू सफलतापूर्वक रेंडर हुआ हो; अन्यथा इस फील्ड को छोड़ दिया जाता है।

  • Name
    progress
    Type
    integer
    Description

    टास्क की progress। अगर टास्क अभी शुरू नहीं हुआ है, तो यह प्रॉपर्टी 0 होगी। टास्क के सफल होने के बाद, यह 100 हो जाएगी।

  • Name
    started_at
    Type
    timestamp
    Description

    टास्क शुरू होने के समय का टाइमस्टैंप, मिलीसेकंड में। अगर टास्क अभी शुरू नहीं हुआ है, तो यह प्रॉपर्टी 0 होगी।

  • Name
    created_at
    Type
    timestamp
    Description

    टास्क बनाए जाने के समय का टाइमस्टैंप, मिलीसेकंड में।

  • Name
    expires_at
    Type
    timestamp
    Description

    टास्क का परिणाम expire होने के समय का टाइमस्टैंप, मिलीसेकंड में।

  • Name
    finished_at
    Type
    timestamp
    Description

    टास्क समाप्त होने के समय का टाइमस्टैंप, मिलीसेकंड में। अगर टास्क अभी समाप्त नहीं हुआ है, तो यह प्रॉपर्टी 0 होगी।

  • Name
    status
    Type
    string
    Description

    टास्क की स्थिति। संभावित मान PENDING, IN_PROGRESS, SUCCEEDED, FAILED, CANCELED में से कोई एक हैं।

  • Name
    texture_urls
    Type
    array
    Description

    टेक्सचर URL ऑब्जेक्ट्स का एक ऐरे, जो टास्क से जनरेट होते हैं। आमतौर पर इसमें केवल एक टेक्सचर URL ऑब्जेक्ट होता है। प्रत्येक टेक्सचर URL में निम्नलिखित प्रॉपर्टीज़ होती हैं:

    • Name
      base_color
      Type
      string
      Description

      बेस कलर मैप इमेज का डाउनलोड करने योग्य URL।

    • Name
      metallic
      Type
      string
      Description

      मेटैलिक मैप इमेज का डाउनलोड करने योग्य URL।

    • Name
      normal
      Type
      string
      Description

      नॉर्मल मैप इमेज का डाउनलोड करने योग्य URL।

    • Name
      roughness
      Type
      string
      Description

      रफनेस मैप इमेज का डाउनलोड करने योग्य URL।

    • Name
      emission
      Type
      string
      Description

      इमिशन मैप इमेज का डाउनलोड करने योग्य URL।

  • Name
    preceding_tasks
    Type
    integer
    Description

    पूर्ववर्ती टास्क की संख्या।

  • Name
    task_error
    Type
    object
    Description

    असफल टास्क के लिए एरर विवरण। पूरे task_error ऑब्जेक्ट संदर्भ के लिए एरर देखें।

  • Name
    consumed_credits
    Type
    integer
    Description

    इस टास्क द्वारा consumed_credits की संख्या। यह तब मौजूद होता है जब टास्क की स्थिति PENDING, IN_PROGRESS, या SUCCEEDED हो। FAILED टास्क के लिए 0 रिटर्न करता है (असफलता पर क्रेडिट वापस कर दिए जाते हैं)।

Example Retexture Task Model

{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "retexture",
  "model_urls": {
    "glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.glb?Expires=***",
    "fbx": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.fbx?Expires=***",
    "usdz": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***"
  },
  "text_style_prompt": "red fangs, Samurai outfit that fused with japanese batik style",
  "image_style_url": "https://assets.meshy.ai/***/image/example_image.jpg?Expires=***",
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
  "progress": 100,
  "started_at": 1692771667037,
  "created_at": 1692771650657,
  "expires_at": 1692771679037,
  "finished_at": 1692771669037,
  "status": "SUCCEEDED",
  "texture_urls": [
    {
      "base_color": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0.png?Expires=***",
      "metallic": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_metallic.png?Expires=XXX",
      "normal": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_normal.png?Expires=XXX",
      "roughness": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_roughness.png?Expires=XXX"
    }
  ],
  "preceding_tasks": 0,
  "task_error": {

    "message": ""

  },

  "consumed_credits": 10
}