Image to 3D mesh
$0.24
- Mesh-only GLB output
Meshy 3D API / für die 3D-Generierung aus Bildern und Text
Nutzen Sie über PiAPI, um asynchrone Aufgaben zur 3D-Generierung zu senden und ein fertiges GLB-Asset abzurufen.
Bezahlen Sie pro erfolgreicher Generierung über PiAPI.
$0.24
from $0.36
from $0.24
Senden Sie eine Bild-URL und wählen Sie eine Ausgabe nur mit Mesh oder mit Texturen in einer Texturauflösung von 2K, 4K oder 8K.
Starten Sie mit einem Prompt eine Text-zu-3D-Vorschauaufgabe und verwenden Sie nach Abschluss deren PiAPI task_id für die Verfeinerung.
Die Verfeinerungsanfrage nimmt preview_task_id entgegen und gibt über denselben Ablauf zur Statusabfrage ein fertiges GLB-Modell zurück.
Senden Sie eine Aufgabe an PiAPI, fragen Sie ihren Status regelmäßig ab oder verwenden Sie einen Webhook und rufen Sie das fertige Modell aus output.model_file ab.
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
Erstellen Sie eine Vorschau mit mode=preview, warten Sie auf deren Abschluss und senden Sie dann die PiAPI task_id als preview_task_id mit mode=refine.
Die Schätzung hängt von should_texture und texture_resolution ab. Der Arbeitsbereich zeigt vor dem Absenden die Schätzung für die gewählten Einstellungen an.
Lesen Sie die auf dieser Seite verlinkte Meshy-API-Dokumentation zum Erstellen und Abrufen von Aufgaben.
More questions? See the API docs.