रीटेक्सचर API

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


POST/openapi/v1/retexture

एक रीटेक्सचर कार्य बनाएँ

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

पैरामीटर

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

    पूरा हुआ इमेज से 3D या टेक्स्ट से 3D कार्य, जिसे आप रीटेक्सचर करना चाहते हैं, का आईडी। यह कार्य निम्नलिखित कार्यों में से एक होना चाहिए: टेक्स्ट से 3D पूर्वावलोकन, टेक्स्ट से 3D परिष्कृत, इमेज से 3D या रीमेश। इसके अलावा, इसे SUCCEEDED स्थिति होनी चाहिए।

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

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

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

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

    वस्तु की वांछित टेक्सचर शैली का विवरण टेक्स्ट के रूप में दें। अधिकतम 600 वर्ण।

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

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

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

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

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

    प्रत्येक तत्व image_style_url (सार्वजनिक रूप से अभिगम्य URL या एक बेस64 डेटा URI, .jpg/.jpeg/.png) के समान स्वरूपों को स्वीकार करता है।

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

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

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

    मॉडल के मौजूदा UV लेआउट को बनाए रखता है बजाय एक नया उत्पन्न करने के।

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

    बेस रंग के अलावा PBR मैप (धातुमय, खुरदरी सतह, नॉर्मल) उत्पन्न करता है। जब ai_model meshy-6 होता है तो एक उत्सर्जन मैप भी शामिल है, सिवाय texture_resolution: 8k के। 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 प्रॉपर्टी में नव निर्मित रीटेक्सचर कार्य का 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" (या latest)।
    • मॉडल उपलब्ध नहीं है: 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
# Tekst ke संकेत के साथ रीटेक्सचर
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
  }'

# इमेज शैली और 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
  }'

प्रतिक्रिया

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

प्रतिक्रिया

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

    हटाने के लिए रीटेक्सचर कार्य का आईडी।

लौटता है

सफलता पर 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}"

प्रतिक्रिया

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

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: निर्माण समय के अनुसार क्रमबद्ध करें घटते क्रम में।

लौटता है

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

Request

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

प्रतिक्रिया स्ट्रीम

// एरर इवेंट उदाहरण
event: error
data: {
  "status_code": 404,
  "message": "कार्य नहीं मिला"
}

// संदेश इवेंट के उदाहरण कार्य प्रगति के चित्रण के लिए।
// PENDING या IN_PROGRESS कार्यों के लिए, प्रतिक्रिया स्ट्रीम सभी फील्ड शामिल नहीं करेगा।
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

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

    • Name
      stl
      Type
      string
      Description

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

    • Name
      3mf
      Type
      string
      Description

      3MF फाइल का डाउनलोड करने लायक URL। केवल तब प्रकट होता है जब 3mf target_formats के माध्यम से अनुरोध किया गया होता है।

  • 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 स्थिति होती है (असफलता पर क्रेडिट वापस कर दिए जाते हैं)।

उदाहरण रीटेक्सचर कार्य मॉडल

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