PopNowDokumentacja API
Treść główna

Meshy T2: dokumentacja API

Lekkie siatki gotowe do gier, do 15 000 ścian, ze zdjęcia lub jednego zdania

Jednym kluczem API PopNow wywołasz Meshy T2 z własnego kodu. Znajdziesz tu identyfikatory modelu, które trzeba wysłać, każde pole wejściowe, koszt zapytania w USD i gotowe zapytanie do wklejenia w terminalu.

Opisy parametrów pochodzą ze schematu wejściowego modelu i są dostępne tylko po angielsku.

W skrócie

Twórca
Meshy
Wynik
Obraz
Od
$0.24 USD za zapytanie

Ceny są podane w USD, a opłaty są pobierane z Twojego salda PopNow. Przy przyjęciu zadania rezerwowana jest maksymalna kwota, po zakończeniu rozliczane jest rzeczywiste zużycie, a reszta zostaje zwolniona. Nieudane zadania są bezpłatne. Dokładną wycenę przed uruchomieniem uzyskasz przez POST /api/v1/jobs/quote.

Obraz na 3D

meshy/t2/image-to-3d

Cena

OpcjaUSD
Domyślnie$0.24 za zapytanie

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
image_urlWymaganestring (uri)——Photo of one object: JPEG, PNG or WebP.
generate_textureOpcjonalnebooleantrue—Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh.
generate_pbrOpcjonalnebooleanfalse—Add metallic, roughness and normal maps to the texture.
texture_promptOpcjonalnestring——Optional description of the texture. Takes priority over texture_image_url.
texture_image_urlOpcjonalnestring (uri)——Optional reference image for the texture.
texture_resolutionOpcjonalnestring2k2k, 4k, 8kTexture resolution. 8k costs more.
face_limitOpcjonalneinteger15000od 100 do 15000Target triangle count, 100 to 15,000.
pose_modeOpcjonalnestring—a-pose, t-poseGenerate a character in an A-pose or T-pose, useful before rigging.
auto_sizeOpcjonalnebooleanfalse—Scale the model to an estimated real-world size.
enable_riggingOpcjonalnebooleanfalse—Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh.
rigging_height_metersOpcjonalnenumber1.7co najmniej 0Character height in meters used for rigging.
enable_animationOpcjonalnebooleanfalse—Rig and animate the character. Adds to the price and includes rigging. Models are returned in order: base mesh, rigged model, animated model.
animation_action_idOpcjonalneinteger92co najmniej 0Animation action applied when animation is on.

Przykładowe zapytanie

To zapytanie działa w obecnej postaci; pominięte pola mają wartości domyślne. Najpierw zapisz klucz w zmiennej POPNOW_API_KEY.

Przykład używa w image_url przykładowych plików PopNow. Zamień je na własne publiczne linki HTTPS, przesłane pliki albo zapisane zasoby.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "meshy/t2/image-to-3d",
  "input": {
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "enable_animation": false,
    "enable_rigging": false,
    "texture_resolution": "2k",
    "generate_texture": true
  }
}'

Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Obraz na 3D

meshy/t2/text-to-3d

Cena

OpcjaUSD
Domyślnie$0.24 za zapytanie

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
promptWymaganestring—do 600 znakówDescribe the object to generate, up to 600 characters.
negative_promptOpcjonalnestring——Details to keep out of the model.
generate_textureOpcjonalnebooleantrue—Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh.
generate_pbrOpcjonalnebooleanfalse—Add metallic, roughness and normal maps to the texture.
texture_promptOpcjonalnestring——Optional description of the texture. Takes priority over texture_image_url.
texture_image_urlOpcjonalnestring (uri)——Optional reference image for the texture.
texture_resolutionOpcjonalnestring2k2k, 4k, 8kTexture resolution. 8k costs more.
face_limitOpcjonalneinteger15000od 100 do 15000Target triangle count, 100 to 15,000.
pose_modeOpcjonalnestring—a-pose, t-poseGenerate a character in an A-pose or T-pose, useful before rigging.
auto_sizeOpcjonalnebooleanfalse—Scale the model to an estimated real-world size.
enable_riggingOpcjonalnebooleanfalse—Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh.
rigging_height_metersOpcjonalnenumber1.7co najmniej 0Character height in meters used for rigging.
enable_animationOpcjonalnebooleanfalse—Rig and animate the character. Adds to the price and includes rigging. Models are returned in order: base mesh, rigged model, animated model.
animation_action_idOpcjonalneinteger92co najmniej 0Animation action applied when animation is on.
seedOpcjonalneinteger—od 0 do 2147483647Random seed for controlled comparisons.

Przykładowe zapytanie

To zapytanie działa w obecnej postaci; pominięte pola mają wartości domyślne. Najpierw zapisz klucz w zmiennej POPNOW_API_KEY.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "meshy/t2/text-to-3d",
  "input": {
    "prompt": "A bright, cheerful scene with soft natural light",
    "enable_animation": false,
    "enable_rigging": false,
    "texture_resolution": "2k",
    "generate_texture": true
  }
}'

Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Co dalej

Na tej stronie