Image to 3D mesh
$0.24
- Mesh-only GLB output
Meshy 3D API / สำหรับการสร้าง image-to-3D และ text-to-3D
ใช้ ผ่าน PiAPI เพื่อส่งงานสร้าง 3D แบบอะซิงโครนัสและรับแอสเซ็ต GLB ที่เสร็จสมบูรณ์
ชำระเงินต่อการสร้างที่สำเร็จผ่าน PiAPI
$0.24
from $0.36
from $0.24
ส่ง URL รูปภาพ แล้วเลือกผลลัพธ์แบบเมชอย่างเดียวหรือแบบมีพื้นผิวที่ความละเอียดพื้นผิว 2K, 4K หรือ 8K
เริ่มงานตัวอย่างข้อความเป็น 3D ด้วยพรอมต์ จากนั้นใช้ PiAPI task_id ของงานที่เสร็จแล้วเพื่อปรับแต่ง
คำขอปรับแต่งรับ preview_task_id และคืนโมเดล GLB ที่เสร็จสมบูรณ์ผ่านขั้นตอนการตรวจสอบสถานะงานแบบเดิม
ส่งงานไปยัง PiAPI ตรวจสอบสถานะงานเป็นระยะหรือใช้ webhook แล้วรับโมเดลที่เสร็จสมบูรณ์จาก output.model_file
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "meshy",
"task_type": "image-to-3d",
"input": {
"image_url": "YOUR_IMAGE_URL",
"should_texture": true,
"texture_resolution": "2k"
}
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'model_file
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "meshy",
"task_type": "text-to-3d",
"input": {
"mode": "preview",
"prompt": "A ceramic teapot",
"texture_resolution": "2k"
}
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'model_file
สร้างตัวอย่างด้วย mode=preview รอให้งานเสร็จ แล้วส่ง PiAPI task_id ของงานนั้นเป็น preview_task_id โดยใช้ mode=refine
ราคาประเมินเปลี่ยนตาม should_texture และ texture_resolution พื้นที่ทำงานจะแสดงราคาประเมินตามค่าที่เลือกก่อนส่งงาน
ดูเอกสาร Meshy API สำหรับสร้างงานและรับข้อมูลงานที่ลิงก์ไว้ในหน้านี้
More questions? See the API docs.