Image to 3D mesh
$0.24
- Mesh-only GLB output
Meshy 3D API / do generowania image-to-3D i text-to-3D
Użyj przez PiAPI, aby wysyłać asynchroniczne zadania generowania 3D i pobierać ukończony zasób GLB.
Płać za każdą udaną generację przez PiAPI.
$0.24
from $0.36
from $0.24
Wyślij adres URL obrazu i wybierz samą siatkę lub model z teksturami o rozdzielczości 2K, 4K albo 8K.
Rozpocznij zadanie podglądu tekstu na 3D za pomocą opisu, a po ukończeniu użyj jego identyfikatora PiAPI task_id do dopracowania modelu.
Żądanie dopracowania przyjmuje preview_task_id i zwraca ukończony model GLB za pomocą tego samego mechanizmu odpytywania o stan zadania.
Wyślij zadanie do PiAPI, odpytuj o jego stan lub użyj webhooka, a następnie pobierz gotowy model z 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
Utwórz podgląd za pomocą mode=preview, poczekaj na jego ukończenie, a następnie wyślij jego PiAPI task_id jako preview_task_id z mode=refine.
Szacowana cena zależy od should_texture i texture_resolution. Obszar roboczy pokazuje cenę dla wybranych ustawień przed wysłaniem zadania.
Zobacz dokumentację Meshy API dotyczącą tworzenia i pobierania zadań, do której prowadzą linki na tej stronie.
More questions? See the API docs.