Image to 3D mesh
$0.24
- Mesh-only GLB output
Meshy 3D API / pour générer de la 3D à partir d’images et de texte
Utilisez via PiAPI pour envoyer des tâches asynchrones de génération 3D et récupérer une ressource GLB terminée.
Payez pour chaque génération réussie via PiAPI.
$0.24
from $0.36
from $0.24
Envoyez l’URL d’une image et choisissez un maillage seul ou une sortie texturée avec une résolution de texture de 2K, 4K ou 8K.
Lancez une tâche d’aperçu de texte vers 3D avec un prompt, puis utilisez son task_id PiAPI une fois la tâche terminée pour l’affinage.
La requête d’affinage accepte preview_task_id et renvoie un modèle GLB terminé via le même processus d’interrogation des tâches.
Envoyez une tâche à PiAPI, interrogez son statut ou utilisez un webhook, puis récupérez le modèle terminé depuis 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
Créez un aperçu avec mode=preview, attendez qu’il soit terminé, puis envoyez son task_id PiAPI comme preview_task_id avec mode=refine.
L’estimation varie selon should_texture et texture_resolution. L’espace de travail affiche l’estimation correspondant aux réglages choisis avant l’envoi.
Consultez la documentation des API de création et de récupération des tâches Meshy accessible depuis cette page.
More questions? See the API docs.