रीटेक्सचर API

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


POST/openapi/v1/retexture

Retexture टास्क बनाएँ

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

पैरामीटर

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

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

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

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

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

    • सार्वजनिक रूप से सुलभ URL: एक URL जो सार्वजनिक इंटरनेट से सुलभ हो।
    • Data URI: मॉडल का base64-एन्कोडेड 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 फॉर्मैट को सपोर्ट करते हैं।

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

    • सार्वजनिक रूप से सुलभ URL: एक URL जो सार्वजनिक इंटरनेट से सुलभ हो
    • Data URI: इमेज का base64-एन्कोडेड 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 या एक base64 data URI, .jpg/.jpeg/.png)।

  • 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 सेट करें।
    • यदि आप अपने द्वारा अपलोड किए गए किसी थर्ड-पार्टी मॉडल को रीटेक्सचर कर रहे हैं, तो यदि उसमें पहले से ही अच्छे UV हैं जिन्हें आप रखना चाहते हैं तो true सेट करें, या Meshy को नए UV अनरैप करने देने के लिए इसे false छोड़ दें (उन मॉडल के लिए सर्वोत्तम जिनमें उचित UV मैपिंग नहीं है)।
  • Name
    enable_pbr
    Type
    boolean
    डिफ़ॉल्ट false
    Description

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

  • 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 पर सेट किया जाता है, तो टास्क अतिरिक्त रूप से preview का एक ट्रांसपेरेंट-बैकग्राउंड (RGBA) वर्शन रेंडर करता है और इसे GET प्रतिक्रिया में alpha_thumbnail_url के रूप में वापस करता है। मौजूदा thumbnail_url फील्ड में कोई बदलाव नहीं होता है।

रिटर्न

प्रतिक्रिया की result property में नए बनाए गए 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 का कोई एलिमेंट डाउनलोड नहीं किया जा सका।
  • 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": "https://cdn.meshy.ai/image/example_image.jpg",
    "ai_model": "latest",
    "enable_pbr": true,
    "enable_original_uv": true
  }'

Response

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

GET/openapi/v1/retexture/:id

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

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

पैरामीटर

  • Name
    id
    Type
    path
    Description

    प्राप्त किए जाने वाले रीटेक्सचर टास्क के लिए यूनिक आइडेंटिफ़ायर।

रिटर्न

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

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",
      "emission": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_emission.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

Retexture Tasks की सूची प्राप्त करें

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

पैरामीटर

  • 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",
        "emission": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_emission.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",
      "emission": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_emission.png?Expires=XXX"
    }
  ],
  "preceding_tasks": 0,
  "task_error": {

    "message": ""

  },

  "consumed_credits": 10
}

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

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

Properties

  • Name
    id
    Type
    string
    Description

    टास्क के लिए यूनीक आइडेंटिफ़ायर। हालांकि हम टास्क id के लिए इम्प्लीमेंटेशन डिटेल के रूप में 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

    टेक्सचरिंग टास्क बनाने के लिए उपयोग की गई मल्टी-व्यू रेफ़रेंस इमेजेज़ का डाउनलोड करने योग्य URLs। यह केवल तभी मौजूद होता है जब टास्क 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

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

  • 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

    इस टास्क द्वारा उपयोग किए गए क्रेडिट की संख्या। यह तब मौजूद होता है जब टास्क का स्टेटस 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",
      "emission": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_emission.png?Expires=XXX"
    }
  ],
  "preceding_tasks": 0,
  "task_error": {

    "message": ""

  },

  "consumed_credits": 10
}