Image to 3D mesh
$0.24
- Mesh-only GLB output
Meshy 3D API / untuk pembuatan image-to-3D dan text-to-3D
Gunakan melalui PiAPI untuk mengirim tugas pembuatan 3D asinkron dan mengambil aset GLB yang selesai.
Bayar untuk setiap pembuatan yang berhasil melalui PiAPI.
$0.24
from $0.36
from $0.24
Kirim URL gambar dan pilih keluaran berupa mesh saja atau keluaran bertekstur dengan resolusi tekstur 2K, 4K, atau 8K.
Mulai tugas pratinjau teks ke 3D dengan prompt, lalu gunakan task_id PiAPI dari tugas yang sudah selesai untuk penyempurnaan.
Permintaan penyempurnaan menerima preview_task_id dan mengembalikan model GLB yang selesai melalui alur polling tugas yang sama.
Kirim tugas ke PiAPI, periksa statusnya secara berkala atau gunakan webhook, lalu ambil model yang selesai dari 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
Buat pratinjau dengan mode=preview, tunggu hingga selesai, lalu kirim task_id PiAPI sebagai preview_task_id dengan mode=refine.
Estimasi berubah sesuai should_texture dan texture_resolution. Ruang kerja menampilkan estimasi yang dipilih sebelum tugas dikirim.
Lihat dokumentasi API Meshy untuk membuat tugas dan mengambil tugas yang ditautkan dari halaman ini.
More questions? See the API docs.