मल्टी-इमेज से 3D API
एक ही वस्तु की अलग-अलग कोणों से ली गई एक से चार इमेज से 3D मॉडल जनरेट करें।
मल्टी-इमेज से 3D टास्क बनाना
मल्टी-इमेज से 3D टास्क बनाता है। यह टास्क बैकग्राउंड में चलता है। टास्क में आमतौर पर कितना समय लगता है, इसके लिए देखें Processing times। टास्क में मौजूद फ़ील्ड के लिए देखें मल्टी-इमेज से 3D टास्क ऑब्जेक्ट।
Request
# 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 Ultra 2K geometry, 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>"
],
"ai_model": "meshy-7.1",
"geometry_resolution": "2k",
"should_texture": true,
"enable_pbr": true,
"target_formats": ["glb"]
}'
# Textured with Meshy N1 from the input images, the first as the front view
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 front view image url or base64-encoded data URI>",
"<your back view image url or base64-encoded data URI>"
],
"ai_model": "meshy-7.1",
"texture_model": "meshy-n1"
}'
Response
{
"result": "018a210d-8ba4-705c-b111-1f1776f7f578"
}
पैरामीटर
- Name
- input_task_id
- Type
- string
- आवश्यक
- Description
जब तक आप
image_urlsनहीं भेजते, यह ज़रूरी है। किसी टेक्स्ट से इमेज या इमेज से इमेज टास्क की ID, जिसमें मल्टी-व्यू टास्क भी शामिल है। Meshy इसकी एक से चार इमेज को इनपुट के रूप में उपयोग करता है। यह टास्क वही होना चाहिए जिसे आपने API से बनाया हो और जिसकी स्थितिSUCCEEDEDहो।
- Name
- image_urls
- Type
- array
- आवश्यक
- Description
जब तक आप
input_task_idनहीं भेजते, यह ज़रूरी है। एक से चार इमेज, प्रत्येक को पब्लिक URL या data URI के रूप में भेजें, जैसेdata:image/jpeg;base64,<your base64-encoded image data>। यदि आप दोनों भेजते हैं, तो Meshyinput_task_idका उपयोग करता है।प्रत्येक इमेज अधिकतम 20 MB की
.jpg,.jpeg,.png, या.webpफ़ाइल होनी चाहिए, जिसकी प्रत्येक भुजा कम से कम 32 पिक्सेल हो, और अधिकतम 178,956,970 पिक्सेल (चौड़ाई × ऊँचाई) हो। चार से अधिक इमेज भेजने पर400मिलता है।सर्वश्रेष्ठ परिणामों के लिए, इमेज में एक ही वस्तु को अलग-अलग कोणों से दिखाया जाना चाहिए।
meshy-7.1याlatestके साथ, Meshy पहली इमेज को फ्रंट व्यू के रूप में उपयोग करता है, और बाकी का क्रम मायने नहीं रखता।
- Name
- ai_model
- Type
- string
- डिफ़ॉल्ट latest
- Description
वह AI मॉडल जो 3D मॉडल जनरेट करता है।
उपलब्ध मान:
latest: Meshy 7.1meshy-7.1meshy-6meshy-6-litemeshy-7: डेप्रिकेटेड, इसके बजायmeshy-7.1भेजें। यह 31 दिसंबर, 2026 को रिटायर हो जाएगा।
किस मॉडल आपके प्रोजेक्ट के लिए उपयुक्त है, जैसे कोई वास्तविक वस्तु या 3D प्रिंट, इसके लिए देखें Models।
- Name
- geometry_resolution
- Type
- string
- डिफ़ॉल्ट standard
- Description
कितना ज्यामिति विवरण जनरेट करना है।
उपलब्ध मान:
standard2k: Ultra पास को 2048³ पर चलाता है। इसके लिएmeshy-7.1,latest, या डेप्रिकेटेडmeshy-7ज़रूरी है।
- Name
- ultra_mode
- Type
- boolean
- ⚠ पुराना
- डिफ़ॉल्ट false
- Description
इसके बजाय
geometry_resolutionभेजें।ultra_mode: true,geometry_resolution: "2k"के समान है।
- Name
- should_texture
- Type
- boolean
- डिफ़ॉल्ट true
- Description
क्या टेक्सचर जनरेट करना है।
trueटेक्सचर्ड मॉडल देता है, औरfalseटेक्सचर स्टेप को छोड़ देता है और बिना टेक्सचर वाला मेश देता है।
should_texture = true- Name
- texture_model
- Type
- string
- डिफ़ॉल्ट depends on ai_model
- Description
वह AI मॉडल जो उसी टास्क में, कई व्यू से 3D मॉडल को टेक्सचर करता है। अपने
ai_modelके लिए डिफ़ॉल्ट टेक्सचर मॉडल उपयोग करने के लिए इसे छोड़ दें। इससे क्रेडिट लागत नहीं बदलती।उपलब्ध मान:
meshy-7: Meshy 7, PBR मैप और 8K तक के टेक्सचर के साथmeshy-n1: Meshy N1, केवल संदर्भ इमेज से 2K बेस कलर टेक्सचर
हर
ai_modelदोनों को स्वीकार करता है।meshy-6याmeshy-6-liteके साथ टेक्सचर्ड रिक्वेस्ट400देती है, और वही होता है उस विकल्प के लिए जिसे चुना गया टेक्सचर मॉडल सपोर्ट नहीं करता।should_texture: falseके साथ, Meshytexture_modelको नज़रअंदाज़ करता है, लेकिन अज्ञात मान पर फिर भी400मिलता है।meshy-n1के साथ, Meshytexture_image_urlsयाtexture_image_urlसे, या जब आप दोनों में से कोई नहीं भेजते तो इनपुट इमेज से टेक्सचर करता है। पहली इमेज फ्रंट व्यू होती है। 7,999,999 ट्राएंगल से अधिक वाला जनरेट किया गया मॉडल टास्क को विफल कर देता है, और Meshy इसके क्रेडिट रिफंड कर देता है।हर टेक्सचर मॉडल क्या करता है और कौन सा चुनें, इसके लिए देखें Models।
- Name
- enable_pbr
- Type
- boolean
- डिफ़ॉल्ट false
- Description
क्या बेस कलर के अलावा मेटैलिक, रफनेस, और नॉर्मल मैप भी जनरेट करने हैं। Meshy 6 टेक्सचर मॉडल एक एमिशन मैप भी जनरेट करता है, सिवाय
texture_resolution: 8kके।texture_model: meshy-n1के साथ,trueभेजने पर400मिलता है।
- Name
- texture_resolution
- Type
- string
- डिफ़ॉल्ट 2k
- Description
बेस कलर टेक्सचर का साइज़। बड़ा साइज़ अधिक सतह विवरण कैप्चर करता है।
उपलब्ध मान:
2k: 2048×20484k: 4096×40968k: 8192×8192
4kऔर8kके लिए Meshy 7 या Meshy 6 टेक्सचर मॉडल ज़रूरी है, और अन्य के साथ400मिलता है।8kपर, Meshy एमिशन मैप जनरेट नहीं करता।
- Name
- hd_texture
- Type
- boolean
- ⚠ पुराना
- डिफ़ॉल्ट false
- Description
इसके बजाय
texture_resolutionभेजें।hd_texture: true,texture_resolution: "4k"के समान है। यदि आप दोनों भेजते हैं, तो Meshytexture_resolutionका उपयोग करता है।
- Name
- texture_prompt
- Type
- string
- Description
टेक्सचर को निर्देशित करने वाला टेक्स्ट, अधिकतम 800 अक्षर। इससे लंबा टेक्स्ट
400देता है।texture_model: meshy-n1के साथ, इसे भेजने पर400मिलता है।
- Name
- texture_image_url
- Type
- string
- Description
टेक्सचर को निर्देशित करने वाली एक 2D इमेज, पब्लिक URL या data URI के रूप में, जैसे
data:image/jpeg;base64,<your base64-encoded image data>। इमेज अधिकतम 20 MB की.jpg,.jpeg,.png, या.webpफ़ाइल होनी चाहिए, जिसकी प्रत्येक भुजा कम से कम 32 पिक्सेल हो, और अधिकतम 178,956,970 पिक्सेल (चौड़ाई × ऊँचाई) हो।यदि आप
texture_image_urlऔरtexture_promptदोनों भेजते हैं, तो Meshytexture_promptका उपयोग करता है।texture_model: meshy-n1के साथ, Meshy इस इमेज को फ्रंट व्यू के रूप में उपयोग करके टेक्सचर करता है।जब इमेज में आकार 3D मॉडल से काफी अलग होता है, तो टेक्सचर अच्छी तरह से नहीं बन सकता।
- Name
- texture_image_urls
- Type
- string[]
- Description
वस्तु की अलग-अलग व्यू से एक से चार इमेज जो टेक्सचर को निर्देशित करती हैं। Meshy पहली इमेज को फ्रंट व्यू के रूप में उपयोग करता है। अन्य व्यू (बाएँ, पीछे, दाएँ) का क्रम मायने नहीं रखता।
प्रत्येक इमेज
texture_image_urlके समान नियमों का पालन करती है। यह पब्लिक URL या data URI है,.jpg,.jpeg,.png, या.webpफॉर्मेट में, अधिकतम 20 MB की, प्रत्येक भुजा कम से कम 32 पिक्सेल की, और अधिकतम 178,956,970 पिक्सेल (चौड़ाई × ऊँचाई) की।ये इमेज केवल टेक्सचर को निर्देशित करती हैं और
image_urlsपर निर्भर नहीं करतीं। दोनों सूचियों में अलग-अलग इमेज और इमेज की अलग-अलग संख्या हो सकती है।texture_image_urlsके लिए Meshy 7 या Meshy N1 टेक्सचर मॉडल ज़रूरी है। इसे इनमें से किसी एक के साथ भेजें:meshy-7.1,latest, या डेप्रिकेटेडmeshy-7काai_modelmeshy-7याmeshy-n1काtexture_model
आप इसे
texture_image_urlयाtexture_promptके साथ नहीं भेज सकते।
- Name
- should_remesh
- Type
- boolean
- डिफ़ॉल्ट true (meshy-6-lite), false (other models)
- Description
क्या जनरेशन के बाद मॉडल को रीमेश करना है। सबसे उच्च-गुणवत्ता वाले 3D मॉडल के लिए, इसे
falseसेट करें।
should_remesh = true- Name
- topology
- Type
- string
- डिफ़ॉल्ट triangle
- Description
रीमेश किए गए मॉडल का फेस टाइप।
उपलब्ध मान:
quad: एक क्वाड-प्रधान मेशtriangle: एक डेसिमेटेड ट्राएंगल मेश
texture_model: meshy-n1के साथ, जब मॉडल रीमेश किया जाता है तोquad400देता है, जोmeshy-6-liteडिफ़ॉल्ट रूप से करता है।
- Name
- target_polycount
- Type
- integer
- डिफ़ॉल्ट 30000
- Description
लक्षित फेस की संख्या,
100से300000तक। परिणाम मॉडल की ज्यामिति के आधार पर लक्ष्य से अलग हो सकता है। इस सीमा से बाहर मान400देता है।
- Name
- decimation_mode
- Type
- integer
- Description
स्तर के अनुसार अनुकूली फेस गणना। जब आप इसे सेट करते हैं, तो Meshy
target_polycountको नज़रअंदाज़ करता है।उपलब्ध मान:
1: अल्ट्रा2: उच्च3: मध्यम4: निम्न
- Name
- save_pre_remeshed_model
- Type
- boolean
- डिफ़ॉल्ट false
- Description
क्या रीमेश से पहले का GLB भी सहेजना है, जो
model_urls.pre_remeshed_glbमें लौटाया जाता है।
- Name
- symmetry_mode
- Type
- string
- ⚠ पुराना
- डिफ़ॉल्ट auto
- Description
इसे छोड़ दें। यह आउटपुट को प्रभावित नहीं करता।
उपलब्ध मान:
off: कोई सममिति नहींauto: इनपुट ज्यामिति पर आधारित सममितिon: लागू की गई सममिति
- Name
- pose_mode
- Type
- string
- Description
किसी कैरेक्टर मॉडल के लिए पोज़,
a-poseयाt-pose। कोई पोज़ नहीं पाने के लिए,pose_modeऔरis_a_t_poseदोनों को छोड़ दें।
- Name
- is_a_t_pose
- Type
- boolean
- ⚠ पुराना
- डिफ़ॉल्ट false
- Description
इसके बजाय
pose_modeभेजें। क्या मॉडल को A या T पोज़ में जनरेट करना है।
- Name
- image_enhancement
- Type
- boolean
- डिफ़ॉल्ट true
- Description
क्या जनरेट करने से पहले इनपुट इमेज को ऑप्टिमाइज़ करना है।
falseइनपुट इमेज का बिल्कुल वैसा ही रूप बनाए रखता है, बिना किसी स्टाइल प्रोसेसिंग के। यह केवलmeshy-6,meshy-7.1, याlatestके साथ सपोर्टेड है। इसेmeshy-6-liteके साथ भेजने पर400मिलता है।
- Name
- remove_lighting
- Type
- boolean
- डिफ़ॉल्ट true
- Description
क्या बेस कलर टेक्सचर से हाइलाइट्स और शैडो हटाने हैं। साफ परिणाम आपकी खुद की लाइटिंग में बेहतर काम करता है। इसे केवल Meshy 6 टेक्सचर मॉडल उपयोग करता है, और
texture_resolution: 8kपर यह हमेशा लाइटिंग हटा देता है।texture_model: meshy-n1के साथ,trueभेजने पर400मिलता है।ai_model: meshy-6-liteऔर इसके डिफ़ॉल्ट टेक्सचर मॉडल के साथ, इसे भेजने पर400मिलता है।
- Name
- moderation
- Type
- boolean
- डिफ़ॉल्ट false
- Description
क्या इनपुट को हानिकारक सामग्री के लिए स्क्रीन करना है। Meshy प्रत्येक इनपुट इमेज,
texture_image_urlयाtexture_image_urlsमें प्रत्येक इमेज, औरtexture_promptमें टेक्स्ट को स्क्रीन करता है। यदि Meshy को हानिकारक सामग्री मिलती है, तो रिक्वेस्ट400लौटाती है और Meshy टास्क नहीं बनाता।
- Name
- target_formats
- Type
- string[]
- Description
जनरेट करने के लिए 3D फ़ाइल फॉर्मेट। Meshy केवल आपकी सूचीबद्ध फॉर्मेट जनरेट करके लौटाता है, जिससे टास्क छोटा हो सकता है।
उपलब्ध मान:
glbobjfbxstlusdz3mf
यदि आप इसे छोड़ देते हैं, तो Meshy
3mfको छोड़कर हर फॉर्मेट जनरेट करता है। Meshy3mfतभी जनरेट करता है जब आप इसे सूचीबद्ध करते हैं।
- Name
- auto_size
- Type
- boolean
- डिफ़ॉल्ट false
- Description
क्या AI विज़न से वस्तु की वास्तविक-दुनिया की ऊँचाई का अनुमान लगाना है और मॉडल को उसके अनुसार रीसाइज़ करना है। जब तक आप
origin_atसेट नहीं करते, Meshy ओरिजिन को नीचे रखता है।
auto_size = true- Name
- origin_at
- Type
- string
- डिफ़ॉल्ट bottom
- Description
मॉडल का ओरिजिन कहाँ रखना है,
bottomयाcenter।
- Name
- alpha_thumbnail
- Type
- boolean
- डिफ़ॉल्ट false
- Description
क्या पारदर्शी बैकग्राउंड (RGBA) के साथ एक प्रीव्यू भी रेंडर करना है, जो टास्क पाने पर
alpha_thumbnail_urlमें लौटाया जाता है।thumbnail_urlनहीं बदलता।
- Name
- multi_view_thumbnails
- Type
- boolean
- डिफ़ॉल्ट false
- Description
क्या फ्रंट, राइट, बैक, और लेफ्ट प्रीव्यू भी रेंडर करने हैं, जो टास्क पाने पर
thumbnail_urlsमें लौटाए जाते हैं।thumbnail_urlनहीं बदलता और अब भी फ्रंट व्यू दिखाता है। इससे टास्क में लगभग 5 सेकंड जुड़ जाते हैं।
रिटर्न
प्रतिक्रिया के result फ़ील्ड में नए मल्टी-इमेज से 3D टास्क की ID होती है।
विफलता के तरीके
- Name
400 - Bad Request- Description
रिक्वेस्ट नहीं चल सकती। एरर संदेश बताता है कि कौन सी समस्या मिली। उदाहरण के लिए:
- पैरामीटर गायब है: न तो
image_urlsभेजा गया और न हीinput_task_id। - अमान्य इनपुट टास्क:
input_task_idएकSUCCEEDEDटेक्स्ट से इमेज या इमेज से इमेज टास्क नहीं है, या मल्टी-व्यू वाला नहीं है। - अमान्य इमेज गणना:
image_urlsयाtexture_image_urlsमें 1 से 4 इमेज नहीं हैं। - अमान्य इमेज फॉर्मेट:
image_urlsमें कोई इमेज किसी सपोर्टेड फॉर्मेट में नहीं है। - परस्पर विरोधी टेक्सचर इनपुट:
texture_image_urlsकोtexture_image_urlके साथ,texture_promptके साथ, याshould_texture: falseके साथ भेजा गया। - मल्टी-व्यू टेक्सचर के लिए असमर्थित मॉडल:
texture_image_urlsकोmeshy-6याmeshy-6-liteकेai_modelके साथ भेजा गया, जब तकtexture_model,meshy-7याmeshy-n1न हो। - अनुपलब्ध URL: Meshy
image_urlsयाtexture_image_urlsमें किसी इमेज को डाउनलोड नहीं कर सकता। - इमेज बहुत बड़ी है:
image_urls,texture_image_url, याtexture_image_urlsमें कोई इमेज 20 MB से अधिक की है। - अमान्य इमेज साइज़:
image_urls,texture_image_url, याtexture_image_urlsमें किसी इमेज की भुजा 32 पिक्सेल से छोटी है, या 178,956,970 पिक्सेल (चौड़ाई × ऊँचाई) से अधिक है। - मल्टी-इमेज इनपुट के लिए असमर्थित रिज़ॉल्यूशन:
geometry_resolution,"4k"है, जिसे यह एंडपॉइंट सपोर्ट नहीं करता।2kयाstandardउपयोग करें। - इमेज विकल्पों के लिए असमर्थित मॉडल:
image_enhancement,ai_model: "meshy-6-lite"के साथ भेजा गया, याremove_lighting,ai_model: "meshy-6-lite"और इसके डिफ़ॉल्ट टेक्सचर मॉडल के साथ भेजा गया। - अमान्य टेक्सचर मॉडल:
texture_modelकिसी मान्य टेक्सचर मॉडल का नाम नहीं है। - टेक्सचर मॉडल उपलब्ध नहीं: टेक्सचर्ड रिक्वेस्ट ने
meshy-6याmeshy-6-liteकाtexture_modelभेजा। मल्टी-इमेज से 3D केवल उन टेक्सचर मॉडल को स्वीकार करता है जो कई व्यू से टेक्सचर करते हैं।meshy-7याmeshy-n1भेजें, याtexture_modelको छोड़ दें। - टेक्सचर मॉडल के लिए असमर्थित विकल्प: रिक्वेस्ट टेक्सचर मॉडल से ऐसा विकल्प माँगती है जिसे वह सपोर्ट नहीं करता, जैसे
meshy-n1के साथenable_pbr: trueयाmeshy-6-liteके साथ4kटेक्सचर। देखें Models।
रिक्वेस्ट को ठीक करें, फिर इसे फिर से भेजें। देखें Errors।
- पैरामीटर गायब है: न तो
- Name
401 - Unauthorized- Description
API की गायब है या अमान्य है।
Authorizationहेडर जाँचें।
- Name
402 - Payment Required- Description
उदाहरण के लिए:
- अपर्याप्त क्रेडिट: खाते में इस टास्क के लिए पर्याप्त क्रेडिट नहीं हैं, या खाता क्रेडिट सीमा तक पहुँच गया है। अपना क्रेडिट बैलेंस जाँचें, फिर दोबारा कोशिश करें।
- फ्री प्लान: टास्क बनाने के लिए पेड प्लान ज़रूरी है। अपनी subscription settings में अपना प्लान अपग्रेड करें, फिर दोबारा कोशिश करें।
- Name
403 - Forbidden- Description
कंटेंट मॉडरेशन ने prompt या किसी इनपुट इमेज को ब्लॉक कर दिया। इनपुट बदलें, फिर दोबारा कोशिश करें।
- Name
404 - Not Found- Description
input_task_idआपके किसी भी टास्क से मेल नहीं खाती। टास्क ID जाँचें, फिर रिक्वेस्ट फिर से भेजें।
- Name
429 - Too Many Requests- Description
आपने अपनी रेट लिमिट पार कर ली है। प्रतीक्षा करें, फिर दोबारा कोशिश करें। देखें Rate limits।
मल्टी-इमेज से 3D टास्क प्राप्त करें
यह किसी मल्टी-इमेज से 3D टास्क को उसकी ID के ज़रिए लौटाता है।
Request
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"
}
],
"preceding_tasks": 0,
"task_error": null,
"consumed_credits": 30
}
पैरामीटर
- Name
- id
- Type
- path
- Description
क्रिएट रिस्पॉन्स से प्राप्त टास्क ID।
रिटर्न वैल्यू
मल्टी-इमेज से 3D टास्क को डिलीट करें
किसी मल्टी-इमेज से 3D टास्क को उसके मॉडल्स और डेटा सहित स्थायी रूप से डिलीट करता है। आप डिलीट को अनडू नहीं कर सकते।
Request
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
// 200 OK on success, with an empty body.
//
// 409 Conflict when the task is IN_PROGRESS. The task keeps 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."
}
Path parameters
- Name
- id
- Type
- path
- Description
डिलीट करने वाले टास्क की ID।
टास्क स्टेटस
किसी PENDING टास्क को डिलीट करने पर, इसे बनाते समय उपयोग किए गए क्रेडिट वापस कर दिए जाते हैं।
किसी IN_PROGRESS टास्क को डिलीट नहीं किया जा सकता। रिक्वेस्ट 409 Conflict
रिटर्न करती है, और टास्क चलता रहता है। Meshy शुरू हो चुके टास्क को रिफंड नहीं करता,
इसलिए इसे डिलीट करने पर आपको क्रेडिट और रिजल्ट दोनों का नुकसान होगा। इसके
SUCCEEDED, FAILED, या CANCELED होने की प्रतीक्षा करें, फिर उसे डिलीट करें।
किसी फाइनल स्टेटस (SUCCEEDED, FAILED, या CANCELED) वाले टास्क को डिलीट करने पर
इसके क्रेडिट वापस नहीं किए जाते।
Returns
टास्क के डिलीट होने पर 200 OK, या टास्क के IN_PROGRESS होने पर 409 Conflict।
मल्टी-इमेज से 3D टास्क की सूची
आपके मल्टी-इमेज से 3D टास्क की सूची लौटाता है।
Request
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"
}
],
"preceding_tasks": 0,
"task_error": null,
"consumed_credits": 30
}
]
पैरामीटर
- Name
- page_num
- Type
- integer
- डिफ़ॉल्ट 1
- Description
लौटाया जाने वाला पेज नंबर, अधिकतम
255तक। इससे बड़ा मान400लौटाता है।
- Name
- page_size
- Type
- integer
- डिफ़ॉल्ट 10
- Description
प्रति पेज टास्क की संख्या, अधिकतम
100तक।
- Name
- sort_by
- Type
- string
- Description
सॉर्ट ऑर्डर।
उपलब्ध मान:
+created_at: सबसे पुराना पहले-created_at: सबसे नया पहले
रिटर्न
मल्टी-इमेज से 3D टास्क ऑब्जेक्ट्स की एक पेजिनेटेड सूची।
मल्टी-इमेज से 3D टास्क को स्ट्रीम करें
मल्टी-इमेज से 3D टास्क के अपडेट्स को Server-Sent Events (SSE) के रूप में स्ट्रीम करता है।
Request
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.
// These examples are shortened. Each event holds the full task object.
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"
}
],
"preceding_tasks": 0,
"task_error": null,
"consumed_credits": 30
}
पैरामीटर
- Name
- id
- Type
- path
- Description
क्रिएट रिस्पॉन्स से मिला टास्क ID।
रिटर्न
मल्टी-इमेज से 3D टास्क ऑब्जेक्ट्स की एक स्ट्रीम Server-Sent Events के रूप में।
हर इवेंट में पूरा टास्क ऑब्जेक्ट होता है, उसी फॉर्मेट में जो Get एंडपॉइंट रिटर्न करता है। जब तक टास्क PENDING या IN_PROGRESS स्थिति में है, तब तक इसके रिजल्ट फील्ड्स में अभी कोई वैल्यू नहीं होती।
मल्टी-इमेज से 3D टास्क ऑब्जेक्ट
एक मल्टी-इमेज से 3D टास्क ऑब्जेक्ट किसी ऑब्जेक्ट की एक से चार इमेज से 3D मॉडल के एक जनरेशन का वर्णन करता है। यह स्टेटस, progress, और टास्क सफल होने पर मॉडल फ़ाइलों को रखता है।
Properties
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"
}
],
"preceding_tasks": 0,
"task_error": null,
"consumed_credits": 30
}
- Name
- id
- Type
- string
- Description
टास्क ID। इसे एक ऑपेक स्ट्रिंग मानें, और इसके फॉर्मेट पर निर्भर न रहें।
- Name
- type
- Type
- string
- Description
टास्क टाइप, हमेशा
multi-image-to-3d।
- Name
- model_urls
- Type
- object
- Description
जनरेट किए गए 3D मॉडल के लिए डाउनलोड URL, प्रत्येक फ़ाइल फॉर्मेट के लिए एक। जिस फॉर्मेट को टास्क ने जनरेट नहीं किया, उसकी कोई key नहीं होती, खाली स्ट्रिंग के बजाय।
- Name
glb- Type
- string
- Description
GLB फ़ाइल।
- Name
fbx- Type
- string
- Description
FBX फ़ाइल।
- Name
obj- Type
- string
- Description
OBJ फ़ाइल।
- Name
usdz- Type
- string
- Description
USDZ फ़ाइल।
- Name
mtl- Type
- string
- Description
MTL फ़ाइल, जब मॉडल में टेक्सचर होते हैं तो OBJ फ़ाइल के साथ दी जाती है।
- Name
stl- Type
- string
- Description
STL फ़ाइल।
- Name
3mf- Type
- string
- Description
3MF फ़ाइल। केवल तब मौजूद होती है जब
target_formatsमें3mfशामिल हो।
- Name
pre_remeshed_glb- Type
- string
- Description
रीमेश से पहले की GLB फ़ाइल। केवल तब मौजूद होती है जब आपने टास्क
should_remesh: trueऔरsave_pre_remeshed_model: trueदोनों के साथ बनाया हो।
- Name
- thumbnail_url
- Type
- string
- Description
मॉडल की प्रीव्यू इमेज के लिए डाउनलोड URL। जब
thumbnail_urls.frontफ़ील्ड मौजूद हो, तो यह उसके समान होता है।
- Name
- alpha_thumbnail_url
- Type
- string
- Description
thumbnail_urlके पारदर्शी बैकग्राउंड (RGBA) वाले वर्शन के लिए डाउनलोड URL। केवल तब मौजूद होता है जब आपने टास्कalpha_thumbnail: trueके साथ बनाया हो और Meshy ने पारदर्शी प्रीव्यू रेंडर किया हो।
- Name
- thumbnail_urls
- Type
- object
- Description
4D मॉडल के चार दिशाओं से प्रीव्यू के लिए डाउनलोड URL। प्रत्येक एक 512×512 PNG के लिए साइन किया हुआ URL है, जिसे
thumbnail_urlके समान मटेरियल और लाइटिंग के साथ रेंडर किया गया है। आप GLB डाउनलोड किए बिना मॉडल को कई कोणों से प्रीव्यू करने के लिए इनका उपयोग कर सकते हैं।केवल तब मौजूद होता है जब आपने टास्क
multi_view_thumbnails: trueके साथ बनाया हो और टास्कSUCCEEDEDतक पहुँच गया हो। बिनाmulti_view_thumbnails: trueके बनाए गए टास्क में यह फ़ील्ड नहीं होती।- Name
- front
- Type
- string
- Description
फ्रंट व्यू, वर्टिकल अक्ष के चारों ओर 0° पर। यह
thumbnail_urlसे मेल खाता है।
- Name
- right
- Type
- string
- Description
राइट व्यू, 90° पर।
- Name
- back
- Type
- string
- Description
बैक व्यू, 180° पर।
- Name
- left
- Type
- string
- Description
लेफ्ट व्यू, 270° पर।
- Name
- texture_prompt
- Type
- string
- Description
वह टेक्स्ट prompt जिसने टेक्सचर का मार्गदर्शन किया।
- Name
- texture_image_urls
- Type
- string[]
- Description
आपके द्वारा टास्क बनाने में इस्तेमाल की गई टेक्सचर रेफरेंस इमेज के लिए डाउनलोड URL, जिस क्रम में आपने उन्हें भेजा था। केवल तब मौजूद होता है जब आपने टास्क
texture_image_urlsके साथ बनाया हो।
- Name
- ultra_mode
- Type
- boolean
- ⚠ पुराना
- Description
इसके बजाय
geometry_resolutionपढ़ें।
- Name
- geometry_resolution
- Type
- string
- Description
जिस Ultra टियर पर टास्क चला, जो
2kहै।standardटास्क में यह फ़ील्ड नहीं होती।
- Name
- progress
- Type
- integer
- Description
टास्क का कितना हिस्सा पूरा हो चुका है, प्रतिशत के रूप में। यह तब तक
0रहता है जब तक टास्क शुरू नहीं होता और सफल होने पर100हो जाता है।
- Name
- started_at
- Type
- timestamp
- Description
टास्क शुरू होने का समय, Unix मिलीसेकंड में। यह तब तक
0रहता है जब तक टास्क शुरू नहीं होता।
- Name
- created_at
- Type
- timestamp
- Description
टास्क बनाए जाने का समय, Unix मिलीसेकंड में।
- Name
- expires_at
- Type
- timestamp
- Description
वह समय जब टास्क के रिज़ल्ट एक्सपायर होते हैं, Unix मिलीसेकंड में।
- Name
- finished_at
- Type
- timestamp
- Description
टास्क पूरा होने का समय, Unix मिलीसेकंड में। यह तब तक
0रहता है जब तक टास्क पूरा नहीं होता।
- Name
- status
- Type
- string
- Description
टास्क स्टेटस, इनमें से एक:
PENDING,IN_PROGRESS,SUCCEEDED,FAILED, याCANCELED।
- Name
- texture_urls
- Type
- array
- Description
टास्क द्वारा जनरेट किए गए टेक्सचर मैप के लिए डाउनलोड URL, ऑब्जेक्ट्स की एक array के रूप में। इसमें आमतौर पर एक ऑब्जेक्ट होता है। प्रत्येक ऑब्जेक्ट में ये फ़ील्ड होते हैं:
- Name
base_color- Type
- string
- Description
बेस कलर मैप।
- Name
metallic- Type
- string
- Description
मेटैलिक मैप। जब आपने टास्क
enable_pbr: falseके साथ बनाया हो, तो शामिल नहीं होता।
- Name
normal- Type
- string
- Description
नॉर्मल मैप। जब आपने टास्क
enable_pbr: falseके साथ बनाया हो, तो शामिल नहीं होता।
- Name
roughness- Type
- string
- Description
रफनेस मैप। जब आपने टास्क
enable_pbr: falseके साथ बनाया हो, तो शामिल नहीं होता।
- Name
emission- Type
- string
- Description
एमिशन मैप। केवल तभी शामिल होता है जब आपने टास्क इन सभी के साथ बनाया हो:
ai_model: meshy-6, इसके डिफ़ॉल्ट टेक्सचर मॉडल के साथenable_pbr: true2kया4kकाtexture_resolution
- Name
- preceding_tasks
- Type
- integer
- Description
कतार में इस टास्क से आगे मौजूद टास्क की संख्या। यह मान केवल तभी सार्थक होता है जब टास्क
PENDINGहो।
- Name
- task_error
- Type
- object
- Description
टास्क फेल होने पर एरर विवरण। यह
nullहोता है जब तक स्टेटसFAILEDन हो। देखें एरर।
- Name
- consumed_credits
- Type
- integer
- Description
टास्क द्वारा इस्तेमाल किए गए क्रेडिट की संख्या। यह तब मौजूद होता है जब स्टेटस
PENDING,IN_PROGRESS, याSUCCEEDEDहो।FAILEDटास्क के लिए यह0होता है, क्योंकि Meshy टास्क फेल होने पर क्रेडिट वापस कर देता है।