रीटेक्सचर API

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


POST/openapi/v1/retexture

Create a Retexture Task

यह एंडपॉइंट आपको एक नया Retexture टास्क बनाने की सुविधा देता है। यह देखने के लिए कि Retexture टास्क ऑब्जेक्ट में कौन-कौन से प्रॉपर्टीज़ शामिल हैं, 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-5, 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, texture_resolution: 8k को छोड़कर meshy-6 हो, तो एक एमिशन मैप भी शामिल किया जाता है। 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" को क्रमशः रोल आउट किया जा रहा है और यह अभी तक आपके अकाउंट के लिए सक्षम नहीं है।
    • अमान्य इनपुट टास्क: 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 दिए जाने पर एक रीटेक्सचर कार्य प्राप्त करने की अनुमति देता है। यह देखने के लिए रीटेक्सचर कार्य ऑब्जेक्ट देखें कि कौन सी गुण रीटेक्सचर कार्य ऑब्जेक्ट के साथ शामिल हैं।

पैरामीटर्स

  • Name
    id
    Type
    path
    Description

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

रिटर्न्स

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

अनुरोध

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}"

प्रतिक्रिया

{
  "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।

रिटर्न्स

सफलता पर 200 OK लौटाता है।

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

// Returns 200 Ok on success.

GET/openapi/v1/retexture

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

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

पैरामीटर्स

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

    पेजिनेशन के लिए पृष्ठ संख्या।

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

    पृष्ठ आकार सीमा। अधिकतम अनुमत 50 आइटम्स हैं।

  • Name
    sort_by
    Type
    string
    Description

    छांटने के लिए फ़ील्ड।

    उपलब्ध मान:

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

रिटर्न्स

रीटेक्सचर कार्य ऑब्जेक्ट्स की एक पेजिनेटेड सूची लौटाता है।

अनुरोध

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

प्रतिक्रिया

[
  {
    "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

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

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

पैरामीटर्स

  • Name
    id
    Type
    path
    Description

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

रिटर्न्स

रीटेक्सचर कार्य ऑब्जेक्ट्स की एक स्ट्रीम को सर्वर-सेंट इवेंट्स के रूप में रिटर्न करता है।

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 टेक्सचर को टेक्स्ट या इमेज इनपुट से उत्पन्न करने के लिए उपयोग करता है। मॉडल में निम्नलिखित गुण होते हैं:

गुण

  • Name
    id
    Type
    string
    Description

    कार्य के लिए अद्वितीय पहचानकर्ता। जबकि हम कार्य आईडी के लिए k-sortable UUID का उपयोग करते हैं, आपको आईडी के प्रारूप के बारे में कोई अनुमान नहीं लगाना चाहिए।

  • 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

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

  • 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

    कार्य की प्रगति। यदि कार्य अभी तक शुरू नहीं हुआ है, तो यह गुण 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
}