मल्टी-इमेज से 3D API

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


POST/openapi/v1/multi-image-to-3d

मल्टी-इमेज से 3D टास्क बनाएं

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

पैरामीटर

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

    एक पूर्ण इमेज-जनरेशन टास्क की ID, जिसके आउटपुट (1-4 इमेज) को इनपुट के रूप में उपयोग किया जाना चाहिए। यह टास्क निम्न में से एक होना चाहिए: टेक्स्ट से इमेज, इमेज से इमेज, Text to Image Multi-View, या Image to Image Multi-View। इसके अलावा, इसे API के माध्यम से चलाया गया होना चाहिए और इसका स्टेटस SUCCEEDED होना चाहिए।

  • Name
    image_urls
    Type
    array
    आवश्यक
    Description

    मॉडल निर्माण में Meshy के उपयोग के लिए 1 से 4 इमेज प्रदान करें। हम वर्तमान में .jpg, .jpeg, और .png फ़ॉर्मैट का समर्थन करते हैं। सर्वोत्तम परिणामों के लिए सभी इमेज में एक ही ऑब्जेक्ट को अलग-अलग कोणों से दिखाया जाना चाहिए।

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

    • सार्वजनिक रूप से एक्सेस योग्य URL: ऐसा URL जो सार्वजनिक इंटरनेट से एक्सेस योग्य हो।
    • Data URI: इमेज का base64-encoded data URI। data URI का उदाहरण: data:image/jpeg;base64,<your base64-encoded image data>.
  • Name
    ai_model
    Type
    string
    डिफ़ॉल्ट latest
    Description

    उपयोग किए जाने वाले मॉडल की ID। उपलब्ध वैल्यू: meshy-5, meshy-6, latest (Meshy 6)।

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

    निर्धारित करता है कि टेक्सचर जनरेट किए जाएँ या नहीं। इसे false पर सेट करने से टेक्सचर फेज़ स्किप हो जाता है, और बिना टेक्सचर वाला मेश मिलता है।

केवल तब लागू होता है जब should_texture = true
  • Name
    enable_pbr
    Type
    boolean
    डिफ़ॉल्ट false
    Description

    बेस कलर के अतिरिक्त PBR मैप (metallic, roughness, normal) जनरेट करें। जब ai_model meshy-6 या latest होता है, तो एक emission map भी शामिल होता है।

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

    अधिक डिटेल के लिए बेस कलर टेक्सचर को 4K (4096×4096) रेज़ोल्यूशन पर जनरेट करें।

  • Name
    texture_prompt
    Type
    string
    Description

    टेक्सचरिंग प्रक्रिया को गाइड करने के लिए एक टेक्स्ट prompt प्रदान करें। अधिकतम 600 कैरेक्टर।

  • Name
    texture_image_url
    Type
    string
    Description

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

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

    • सार्वजनिक रूप से एक्सेस योग्य URL: ऐसा URL जो सार्वजनिक इंटरनेट से एक्सेस योग्य हो
    • Data URI: इमेज का base64-encoded data URI। data URI का उदाहरण: data:image/jpeg;base64,<your base64-encoded image data>
  • Name
    should_remesh
    Type
    boolean
    डिफ़ॉल्ट false (meshy-6), true (others)
    Description

    नियंत्रित करता है कि रीमेश फेज़ सक्षम करना है या नहीं। जब false पर सेट किया जाता है, तो API उच्चतम-प्रिसिजन त्रिकोणीय मेश लौटाता है।

केवल तब लागू होता है जब should_remesh = true
  • Name
    topology
    Type
    string
    डिफ़ॉल्ट triangle
    Description

    जनरेट किए गए मॉडल की topology निर्दिष्ट करें।

    उपलब्ध वैल्यू:

    • quad: quad-dominant मेश जनरेट करें।
    • triangle: decimated triangle मेश जनरेट करें।
  • Name
    target_polycount
    Type
    integer
    डिफ़ॉल्ट 30,000
    Description

    जनरेट किए गए मॉडल में पॉलीगॉन की लक्षित संख्या निर्दिष्ट करें। ज्यामिति की जटिलता के आधार पर पॉलीगॉन की वास्तविक संख्या लक्ष्य से अलग हो सकती है।

    मान्य वैल्यू रेंज यूज़र टियर के आधार पर बदलती है:

    • 100 से 300,000 (समावेशी)
  • Name
    decimation_mode
    Type
    integer
    Description

    पॉलीकाउंट लेवल सेट करके adaptive decimation सक्षम करें। सेट होने पर, target_polycount को अनदेखा किया जाता है।

    उपलब्ध वैल्यू:

    • 1: Adaptive — ultra पॉलीकाउंट।
    • 2: Adaptive — high पॉलीकाउंट।
    • 3: Adaptive — medium पॉलीकाउंट।
    • 4: Adaptive — low पॉलीकाउंट।
  • Name
    save_pre_remeshed_model
    Type
    boolean
    डिफ़ॉल्ट false
    Description

    जब true पर सेट किया जाता है, तो Meshy रीमेश फेज़ पूरा होने से पहले एक अतिरिक्त GLB फ़ाइल भी स्टोर करता है।

  • Name
    symmetry_mode
    Type
    string
    पुराना
    डिफ़ॉल्ट auto
    Description

    डेप्रिकेटेड। यह पैरामीटर अब आउटपुट को प्रभावित नहीं करता है।

    symmetry_mode फ़ील्ड मॉडल जनरेशन प्रक्रिया के दौरान सममिति व्यवहार को नियंत्रित करता है।

    मान्य वैल्यू हैं:

    • off: सममिति अक्षम करता है।
    • auto: इनपुट ज्यामिति के आधार पर सममिति को अपने-आप निर्धारित और लागू करता है।
    • on: जनरेशन के दौरान सममिति लागू करता है।
  • Name
    pose_mode
    Type
    string
    डिफ़ॉल्ट ""
    Description

    जनरेट किए गए मॉडल के लिए pose mode निर्दिष्ट करें।

    उपलब्ध वैल्यू:

    • a-pose: मॉडल को A pose में जनरेट करें।
    • t-pose: मॉडल को T pose में जनरेट करें।
    • "" (खाली स्ट्रिंग): कोई विशिष्ट pose लागू नहीं।
  • Name
    is_a_t_pose
    Type
    boolean
    पुराना
    डिफ़ॉल्ट false
    Description

    इसके बजाय pose_mode का उपयोग करें। मॉडल को A/T pose में जनरेट करना है या नहीं।

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

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

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

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

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

    जब true पर सेट किया जाता है, तो इनपुट कंटेंट को संभावित रूप से हानिकारक कंटेंट के लिए अपने-आप स्क्रीन किया जाएगा। यदि हानिकारक कंटेंट पाया जाता है, तो टास्क जनरेशन तक आगे नहीं बढ़ेगा।

    image_urls की प्रत्येक इमेज और texture_prompt के टेक्स्ट को स्क्रीन किया जाएगा।

  • Name
    target_formats
    Type
    string[]
    Description

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

    उपलब्ध वैल्यू: glb, obj, fbx, stl, usdz, 3mf

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

    जब true पर सेट किया जाता है, तो सेवा ऑब्जेक्ट की वास्तविक दुनिया की ऊँचाई का अपने-आप अनुमान लगाने और मॉडल को उसी अनुसार रीसाइज़ करने के लिए AI vision का उपयोग करती है। जब तक origin_at स्पष्ट रूप से सेट नहीं किया जाता, ओरिजिन डिफ़ॉल्ट रूप से bottom होगा।

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

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

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

    जब true पर सेट किया जाता है, तो टास्क अतिरिक्त रूप से चार cardinal-view थंबनेल (front, right, back, left) रेंडर करता है और उन्हें GET प्रतिक्रिया पर thumbnail_urls के अंतर्गत लौटाता है। मौजूदा thumbnail_url फ़ील्ड अपरिवर्तित रहता है और front view की ओर संकेत करना जारी रखता है, इसलिए मौजूदा क्लाइंट प्रभावित नहीं होते हैं।

केवल तब लागू होता है जब auto_size = true
  • Name
    origin_at
    Type
    string
    डिफ़ॉल्ट bottom
    Description

    auto_size सक्षम होने पर ओरिजिन की स्थिति। उपलब्ध वैल्यू: bottom, center

रिटर्न्स

प्रतिक्रिया की result प्रॉपर्टी में नए बनाए गए मल्टी-इमेज से 3D टास्क का टास्क id होता है।

विफलता मोड

  • Name
    400 - Bad Request
    Description

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

    • गुम पैरामीटर: image_urls या input_task_id में से कोई एक प्रदान किया जाना चाहिए।
    • अमान्य इनपुट टास्क: input_task_id को SUCCEEDED टेक्स्ट से इमेज, इमेज से इमेज, या multi-view variant टास्क को संदर्भित करना चाहिए।
    • अमान्य इमेज संख्या: image_urls में 1 से 4 इमेज होनी चाहिए।
    • अमान्य इमेज फ़ॉर्मैट: image_urls में एक या अधिक इमेज समर्थित फ़ॉर्मैट में नहीं हैं।
    • अनरीचेबल URL: एक या अधिक image_urls डाउनलोड नहीं किए जा सके।
  • Name
    401 - Unauthorized
    Description

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

  • Name
    402 - Payment Required
    Description

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

  • Name
    429 - Too Many Requests
    Description

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

Request

POST
/openapi/v1/multi-image-to-3d
# Simple request
curl https://api.meshy.ai/openapi/v1/multi-image-to-3d \
  -X POST \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "image_urls": [
      "<your publicly accessible image url or base64-encoded data URI>",
      "<your second publicly accessible image url or base64-encoded data URI>"
    ]
  }'

# With PBR texturing and GLB format
curl https://api.meshy.ai/openapi/v1/multi-image-to-3d \
  -X POST \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "image_urls": [
      "<your publicly accessible image url or base64-encoded data URI>",
      "<your second publicly accessible image url or base64-encoded data URI>"
    ],
    "should_texture": true,
    "enable_pbr": true,
    "target_formats": ["glb"]
  }'

Response

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

GET/openapi/v1/multi-image-to-3d/:id

मल्टी-इमेज से 3D टास्क प्राप्त करें

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

पैरामीटर

  • Name
    id
    Type
    path
    Description

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

रिटर्न

प्रतिक्रिया में मल्टी-इमेज से 3D टास्क ऑब्जेक्ट शामिल होता है। विवरण के लिए The Multi-Image to 3D Task Object सेक्शन देखें।

Request

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

Response

{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "multi-image-to-3d",
  "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=***",
    "stl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.stl?Expires=***",
    "pre_remeshed_glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/pre_remeshed_model.glb?Expires=***"
  },
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
  "thumbnail_urls": {
    "front": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_front.png?Expires=***",
    "right": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_right.png?Expires=***",
    "back": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_back.png?Expires=***",
    "left": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_left.png?Expires=***"
  },
  "texture_prompt": "",
  "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": 30
}

DELETE/openapi/v1/multi-image-to-3d/:id

मल्टी-इमेज से 3D टास्क हटाएँ

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

पाथ पैरामीटर

  • Name
    id
    Type
    path
    Description

    हटाए जाने वाले मल्टी-इमेज से 3D टास्क की ID।

रिटर्न

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

Request

DELETE
/openapi/v1/multi-image-to-3d/018a210d-8ba4-705c-b111-1f1776f7f578
curl --request DELETE \
  --url https://api.meshy.ai/openapi/v1/multi-image-to-3d/018a210d-8ba4-705c-b111-1f1776f7f578 \
  -H "Authorization: Bearer ${YOUR_API_KEY}"

Response

// Returns 200 Ok on success.

GET/openapi/v1/multi-image-to-3d

मल्टी-इमेज से 3D कार्यों की सूची

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

पैरामीटर

वैकल्पिक एट्रिब्यूट

  • Name
    page_num
    Type
    integer
    Description

    पेजिनेशन के लिए पेज संख्या। 1 से शुरू होती है और डिफ़ॉल्ट भी 1 है।

  • Name
    page_size
    Type
    integer
    Description

    पेज आकार सीमा। डिफ़ॉल्ट 10 आइटम है। अधिकतम अनुमत 50 आइटम हैं।

  • Name
    sort_by
    Type
    string
    Description

    सॉर्ट करने के लिए फ़ील्ड। उपलब्ध मान:

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

रिटर्न

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

Request

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

Response

[
  {
    "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
    "type": "multi-image-to-3d",
    "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=***",
      "pre_remeshed_glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/pre_remeshed_model.glb?Expires=***"
    },
    "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
    "thumbnail_urls": {
      "front": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_front.png?Expires=***",
      "right": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_right.png?Expires=***",
      "back": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_back.png?Expires=***",
      "left": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_left.png?Expires=***"
    },
    "texture_prompt": "",
    "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": 30
  }
]

GET/openapi/v1/multi-image-to-3d/:id/stream

मल्टी-इमेज से 3D टास्क स्ट्रीम करें

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

पैरामीटर

  • Name
    id
    Type
    path
    Description

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

रिटर्न

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

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

Request

GET
/openapi/v1/multi-image-to-3d/018a210d-8ba4-705c-b111-1f1776f7f578/stream
curl -N https://api.meshy.ai/openapi/v1/multi-image-to-3d/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",
  "type": "multi-image-to-3d",
  "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=***",
  "stl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.stl?Expires=***",
  "pre_remeshed_glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/pre_remeshed_model.glb?Expires=***"
  },
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
  "thumbnail_urls": {
  "front": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_front.png?Expires=***",
  "right": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_right.png?Expires=***",
  "back": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_back.png?Expires=***",
  "left": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_left.png?Expires=***"
  },
  "texture_prompt": "",
  "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": 30
}

मल्टी-इमेज से 3D टास्क ऑब्जेक्ट

मल्टी-इमेज से 3D टास्क ऑब्जेक्ट एक कार्य इकाई है जिसे Meshy कई इमेजों (1 से 4 तक, दोनों शामिल) से 3D मॉडल जनरेट करने के लिए ट्रैक करता है। इमेजें एक ही ऑब्जेक्ट की होनी चाहिए, आदर्श रूप से अलग-अलग व्यू या एंगल से। ऑब्जेक्ट में निम्नलिखित प्रॉपर्टीज़ हैं:

प्रॉपर्टीज़

  • Name
    id
    Type
    string
    Description

    टास्क के लिए विशिष्ट पहचानकर्ता। हालांकि हम टास्क ids के लिए implementation detail के रूप में k-sortable UUID का उपयोग करते हैं, आपको id के फॉर्मैट के बारे में कोई भी अनुमान नहीं लगाना चाहिए।

  • Name
    type
    Type
    string
    Description

    मल्टी-इमेज से 3D टास्क का प्रकार। मान multi-image-to-3d है।

  • Name
    model_urls
    Type
    object
    Description

    Meshy द्वारा जनरेट की गई टेक्सचरयुक्त 3D मॉडल फ़ाइल का डाउनलोड करने योग्य URL। यदि कोई फॉर्मैट जनरेट नहीं हुआ है, तो खाली string लौटाने के बजाय उस फॉर्मैट की प्रॉपर्टी छोड़ दी जाएगी।

    • 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 exports के साथ लौटाया जाता है।

    • Name
      stl
      Type
      string
      Description

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

    • Name
      3mf
      Type
      string
      Description

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

    • Name
      pre_remeshed_glb
      Type
      string
      Description

      रीमेशिंग से पहले मूल GLB आउटपुट का डाउनलोड करने योग्य URL।

  • Name
    thumbnail_url
    Type
    string
    Description

    मॉडल फ़ाइल की थंबनेल इमेज का डाउनलोड करने योग्य URL। मौजूद होने पर thumbnail_urls.front के बराबर, backwards compatibility के लिए रखा गया है।

  • Name
    alpha_thumbnail_url
    Type
    string
    Description

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

  • Name
    thumbnail_urls
    Type
    object
    Description

    जनरेट किए गए 3D मॉडल के चार cardinal-view थंबनेल के लिए डाउनलोड करने योग्य URLs। प्रत्येक मान 512×512 PNG का signed URL है, जिसे thumbnail_url जैसी ही materials और lighting के साथ render किया गया है। GLB डाउनलोड किए बिना batch pipelines में कई angles से मॉडल का preview करने के लिए उपयोगी।

    • Name
      front
      Type
      string
      Description

      Front view, vertical axis के चारों ओर 0° rotation (thumbnail_url से मेल खाता है)।

    • Name
      right
      Type
      string
      Description

      Right view, 90° rotation।

    • Name
      back
      Type
      string
      Description

      Back view, 180° rotation।

    • Name
      left
      Type
      string
      Description

      Left view, 270° rotation।

  • Name
    texture_prompt
    Type
    string
    Description

    वह text prompt जिसका उपयोग texturing process को guide करने के लिए किया गया था।

  • Name
    progress
    Type
    integer
    Description

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

  • Name
    started_at
    Type
    timestamp
    Description

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

  • Name
    created_at
    Type
    timestamp
    Description

    टास्क बनाए जाने का टाइमस्टैंप, milliseconds में।

  • Name
    expires_at
    Type
    timestamp
    Description

    टास्क result expire होने का टाइमस्टैंप, milliseconds में।

  • Name
    finished_at
    Type
    timestamp
    Description

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

  • Name
    status
    Type
    string
    Description

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

  • Name
    texture_urls
    Type
    array
    Description

    टास्क से जनरेट हुए टेक्सचर URL objects की array। सामान्यतः इसमें केवल एक टेक्सचर URL object होता है। प्रत्येक टेक्सचर URL में निम्नलिखित प्रॉपर्टीज़ होती हैं:

    • Name
      base_color
      Type
      string
      Description

      base color map image का डाउनलोड करने योग्य URL।

    • Name
      metallic
      Type
      string
      Description

      metallic map image का डाउनलोड करने योग्य URL।

    • Name
      normal
      Type
      string
      Description

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

    • Name
      roughness
      Type
      string
      Description

      roughness map image का डाउनलोड करने योग्य URL।

    • Name
      emission
      Type
      string
      Description

      emission map image का डाउनलोड करने योग्य URL।

  • Name
    preceding_tasks
    Type
    integer
    Description

    preceding tasks की संख्या।

  • Name
    task_error
    Type
    object
    Description

    failed tasks के लिए error details। पूरे task_error object reference के लिए एरर देखें।

  • Name
    consumed_credits
    Type
    integer
    Description

    इस टास्क द्वारा consume किए गए क्रेडिट की संख्या। तब मौजूद होता है जब टास्क status PENDING, IN_PROGRESS, या SUCCEEDED हो। FAILED tasks के लिए 0 लौटाता है (failure पर क्रेडिट refund कर दिए जाते हैं)।

Example Multi-Image to 3D Task Object

{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "multi-image-to-3d",
  "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=***",
    "stl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.stl?Expires=***",
    "pre_remeshed_glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/pre_remeshed_model.glb?Expires=***"
  },
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
  "thumbnail_urls": {
    "front": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_front.png?Expires=***",
    "right": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_right.png?Expires=***",
    "back": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_back.png?Expires=***",
    "left": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_left.png?Expires=***"
  },
  "texture_prompt": "",
  "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": 30,
}