Image to 3D mesh
$0.24
- Mesh-only GLB output
Meshy 3D API / voor image-to-3D- en text-to-3D-generatie
Gebruik via PiAPI om asynchrone 3D-generatietaken te verzenden en een voltooid GLB-asset op te halen.
Betaal per geslaagde generatie via PiAPI.
$0.24
from $0.36
from $0.24
Stuur een afbeeldings-URL en kies uitvoer met alleen een mesh of met texturen op een textuurresolutie van 2K, 4K of 8K.
Start met een prompt een voorbeeldtaak voor tekst naar 3D en gebruik na voltooiing de PiAPI task_id voor verfijning.
De verfijningsaanvraag accepteert preview_task_id en geeft via dezelfde cyclus van statusopvragen een voltooid GLB-model terug.
Dien een taak in bij PiAPI, vraag regelmatig de status op of gebruik een webhook en haal het voltooide model op uit 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
Maak een voorbeeld met mode=preview, wacht tot het voltooid is en stuur de PiAPI task_id vervolgens als preview_task_id met mode=refine.
De schatting verandert met should_texture en texture_resolution. De werkruimte toont de schatting voor de gekozen instellingen voordat je de taak indient.
Bekijk de Meshy API-documentatie voor het aanmaken en ophalen van taken via de links op deze pagina.
More questions? See the API docs.