Skip to main content

3d models

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.

Zacznij teraz!

Cennik Meshy 3D API

Płać za każdą udaną generację przez PiAPI.

Image to 3D mesh

$0.24

  • Mesh-only GLB output

Image to 3D textured

from $0.36

  • 2k — $0.36
  • 4k — $0.36
  • 8k — $0.42

Text preview → refine

from $0.24

  • Preview — $0.24
  • Refine 2K/4K — $0.12
  • Refine 8K — $0.18

Funkcje Meshy 3D API

Generowanie image-to-3D

Wyślij adres URL obrazu i wybierz samą siatkę lub model z teksturami o rozdzielczości 2K, 4K albo 8K.

Podgląd text-to-3D

Rozpocznij zadanie podglądu tekstu na 3D za pomocą opisu, a po ukończeniu użyj jego identyfikatora PiAPI task_id do dopracowania modelu.

Dopracowywanie ukończonych podglądów

Żądanie dopracowania przyjmuje preview_task_id i zwraca ukończony model GLB za pomocą tego samego mechanizmu odpytywania o stan zadania.

Asynchroniczne API zadań

Wyślij zadanie do PiAPI, odpytuj o jego stan lub użyj webhooka, a następnie pobierz gotowy model z output.model_file.

Szybki start

Create your API key

Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.

Top up credits

Add credits on the billing page when you are ready to scale beyond the free tier.

Call the API

POST your first task following the API docs, then poll the task until the result is ready.

Iterate in the playground

Prototype prompts and settings in the the playground above before wiring them into your product.

Create a task

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"
  }
}'

Retrieve the result

curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
  -H 'X-API-Key: YOUR_API_KEY'

model_file

Pricing

  • default: $0.36 / generation
  • mesh-only: $0.24 / generation
  • 2k: $0.36 / generation
  • 4k: $0.36 / generation
  • 8k: $0.42 / generation

Najczęściej zadawane pytania Meshy 3D API

Jak działają podgląd i dopracowanie w trybie tekst na 3D?

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.

Jak ustalana jest cena żądań obraz na 3D?

Szacowana cena zależy od should_texture i texture_resolution. Obszar roboczy pokazuje cenę dla wybranych ustawień przed wysłaniem zadania.

Gdzie znajdę schemat żądania?

Zobacz dokumentację Meshy API dotyczącą tworzenia i pobierania zadań, do której prowadzą linki na tej stronie.

More questions? See the API docs.