मल्टी-इमेज से 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का उपयोग करता है।प्रत्येक इमेज एक
.jpg,.jpeg,.png, या.webpफ़ाइल होनी चाहिए, जो अधिकतम 20 MB की हो, प्रत्येक दिशा में कम से कम 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भेजें
- 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 उसके क्रेडिट रिफंड कर देता है।प्रत्येक टेक्सचर मॉडल क्या करता है और किसे चुनना चाहिए, यह जानने के लिए मॉडल देखें।
- Name
- enable_pbr
- Type
- boolean
- डिफ़ॉल्ट false
- Description
बेस कलर के अलावा मेटैलिक, रफनेस, और नॉर्मल मैप भी जनरेट करना है या नहीं। Meshy 6 टेक्सचर मॉडल एक इमिशन मैप भी जनरेट करता है, सिवाय
texture_resolution: 8kपर।texture_model: meshy-n1के साथ,true400रिटर्न करता है।
- 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>। इमेज एक.jpg,.jpeg,.png, या.webpफ़ाइल होनी चाहिए, जो अधिकतम 20 MB की हो, प्रत्येक दिशा में कम से कम 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: ultra2: high3: medium4: low
- 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: एक A पोज़t-pose: एक T पोज़""(खाली स्ट्रिंग): कोई विशेष पोज़ नहीं
- 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के साथ,true400रिटर्न करता है।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टेक्सचर। मॉडल देखें।
रिक्वेस्ट को ठीक करें, फिर इसे फिर से भेजें। एरर देखें।
- मिसिंग पैरामीटर: न तो
- Name
401 - Unauthorized- Description
API की मौजूद नहीं है या अमान्य है।
Authorizationहेडर जांचें।
- Name
402 - Payment Required- Description
उदाहरण के लिए:
- अपर्याप्त क्रेडिट: अकाउंट के पास इस टास्क के लिए पर्याप्त क्रेडिट नहीं हैं, या अकाउंट ने क्रेडिट लिमिट तक पहुंच गया है। अपना क्रेडिट बैलेंस जांचें, फिर पुनः प्रयास करें।
- फ्री प्लान: टास्क बनाने के लिए पेड प्लान आवश्यक है। अपने सब्सक्रिप्शन सेटिंग्स में अपना प्लान अपग्रेड करें, फिर पुनः प्रयास करें।
- Name
403 - Forbidden- Description
कंटेंट मॉडरेशन ने prompt या किसी इनपुट इमेज को ब्लॉक कर दिया। इनपुट बदलें, फिर पुनः प्रयास करें।
- Name
404 - Not Found- Description
input_task_idआपके किसी भी टास्क से मेल नहीं खाता। टास्क ID जांचें, फिर रिक्वेस्ट फिर से भेजें।
- Name
429 - Too Many Requests- Description
आपने अपनी रेट लिमिट पार कर ली है। प्रतीक्षा करें, फिर पुनः प्रयास करें। रेट लिमिट देखें।
मल्टी-इमेज से 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 टास्क फेल होने पर क्रेडिट वापस कर देता है।