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.