मल्टी-इमेज से 3D API
एक ही वस्तु की अलग-अलग कोणों से ली गई एक से चार इमेज से 3D मॉडल जनरेट करें।
मल्टी-इमेज से 3D टास्क बनाएं
यह एक मल्टी-इमेज से 3D टास्क बनाता है। यह टास्क बैकग्राउंड में चलता है। टास्क में आमतौर पर कितना समय लगता है, यह जानने के लिए Processing times देखें। टास्क में मौजूद फ़ील्ड्स के लिए The Multi-Image to 3D task object देखें।
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भेजें
आपके प्रोजेक्ट के लिए कौन-सा मॉडल सही है, जैसे कोई वास्तविक ऑब्जेक्ट या 3D प्रिंट, यह जानने के लिए Models देखें।
- Name
- geometry_resolution
- Type
- string
- डिफ़ॉल्ट standard
- Description
कितनी ज्यामिति डिटेल जनरेट करनी है।
उपलब्ध वैल्यूज़:
standard2k: 2048³ पर Ultra पास चलाता है। इसके लिए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
क्या बेस कलर के अलावा metallic, roughness, और normal मैप भी जनरेट करने हैं। Meshy 6 टेक्सचर मॉडल एक emission मैप भी जनरेट करता है, सिवाय
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 emission मैप जनरेट नहीं करता।
- 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 टेक्सचर मॉडल आवश्यक है। इसे इनमें से किसी एक के साथ भेजें:ai_modelमेंmeshy-7.1,latest, या डेप्रिकेटेडmeshy-7texture_modelमेंmeshy-7याmeshy-n1
आप इसे
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: एक quad-dominant मेश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या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 विज़न से ऑब्जेक्ट की वास्तविक दुनिया की ऊँचाई का अनुमान लगाना है और मॉडल को उसके अनुसार रीसाइज़ करना है या नहीं। Meshy ओरिजिन को नीचे रखता है जब तक आप
origin_atसेट नहीं करते।
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
रिक्वेस्ट चल नहीं सकती। एरर मैसेज बताता है कि कौन-सी समस्या मिली। उदाहरण के लिए:
- Missing parameter: न तो
image_urlsभेजा गया और न हीinput_task_id। - Invalid input task:
input_task_id,SUCCEEDEDटेक्स्ट से इमेज या इमेज से इमेज टास्क नहीं है, या मल्टी-व्यू टास्क नहीं है। - Invalid image count:
image_urlsयाtexture_image_urlsमें 1 से 4 इमेज नहीं हैं। - Invalid image format:
image_urlsमें मौजूद कोई इमेज सपोर्टेड फॉर्मेट में नहीं है। - Conflicting texture inputs:
texture_image_urlsकोtexture_image_url,texture_prompt, याshould_texture: falseके साथ भेजा गया। - Unsupported model for multi-view texture:
texture_image_urlsकोmeshy-6याmeshy-6-liteवालेai_modelके साथ भेजा गया, जब तक किtexture_model,meshy-7याmeshy-n1न हो। - Unreachable URL: Meshy,
image_urlsयाtexture_image_urlsमें मौजूद किसी इमेज को डाउनलोड नहीं कर सकता। - Image too large:
image_urls,texture_image_url, याtexture_image_urlsमें मौजूद कोई इमेज 20 MB से अधिक की है। - Invalid image size:
image_urls,texture_image_url, याtexture_image_urlsमें मौजूद किसी इमेज की साइड 32 पिक्सेल से छोटी है, या 178,956,970 पिक्सेल (चौड़ाई × ऊँचाई) से अधिक है। - Unsupported resolution for multi-image input:
geometry_resolution,"4k"है, जिसे यह एंडपॉइंट सपोर्ट नहीं करता।2kयाstandardका उपयोग करें। - Unsupported model for image options:
image_enhancement,ai_model: "meshy-6-lite"के साथ भेजा गया, याremove_lighting,ai_model: "meshy-6-lite"और इसके डिफ़ॉल्ट टेक्सचर मॉडल के साथ भेजा गया। - Invalid texture model:
texture_modelकिसी वैध टेक्सचर मॉडल का नाम नहीं है। - Texture model not available: एक टेक्सचर्ड रिक्वेस्ट में
texture_model,meshy-6याmeshy-6-liteभेजा गया। मल्टी-इमेज से 3D केवल उन्हीं टेक्सचर मॉडल को स्वीकार करता है जो कई व्यू से टेक्सचर करते हैं।meshy-7याmeshy-n1भेजें, याtexture_modelको छोड़ दें। - Unsupported option for the texture model: रिक्वेस्ट टेक्सचर मॉडल से ऐसा विकल्प माँगती है जिसे वह सपोर्ट नहीं करता, जैसे
meshy-n1के साथenable_pbr: trueयाmeshy-6-liteके साथ4kटेक्सचर। Models देखें।
रिक्वेस्ट को ठीक करें, फिर इसे दोबारा भेजें। Errors देखें।
- Missing parameter: न तो
- Name
401 - Unauthorized- Description
API की गायब है या अमान्य है।
Authorizationहेडर जाँचें।
- Name
402 - Payment Required- Description
उदाहरण के लिए:
- Insufficient credits: अकाउंट के पास इस टास्क के लिए पर्याप्त क्रेडिट नहीं हैं, या अकाउंट ने क्रेडिट लिमिट तक पहुँच गया है। अपना क्रेडिट बैलेंस जाँचें, फिर दोबारा कोशिश करें।
- Free plan: टास्क बनाने के लिए पेड प्लान आवश्यक है। अपनी सब्सक्रिप्शन सेटिंग्स में अपना प्लान अपग्रेड करें, फिर दोबारा कोशिश करें।
- Name
403 - Forbidden- Description
कंटेंट moderation ने 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 टास्क फेल होने पर क्रेडिट वापस कर देता है।