PopNowDokumentacja API
Treść główna

Tripo 3D Tools: dokumentacja API

Riggowanie, animacja, nowe tekstury i konwersja gotowego modelu 3D do GLB, FBX lub STL

Jednym kluczem API PopNow wywołasz Tripo 3D Tools 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
Tripo
Wynik
Obraz
Od
$0.072 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.

Animacja 3D

tripo/tools/animate

Cena

OpcjaUSD
Domyślnie$0.504 za zapytanie

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
mesh_urlWymaganestring——The 3D character to animate: a GLB, binary FBX, OBJ or STL file up to 90 MB. It does not need a skeleton; one is added in the same run.
animationsWymaganearray<object>—do 5 elementówOne to five preset motions, one per row. Each becomes a named clip in the file and adds to the price.
rig_typeOpcjonalnestringautoauto, biped, quadruped, hexapod, octopod, avian, serpentine, aquatic, othersSkeleton type. auto picks one from the shape; choose another for animals and creatures. Does not change the price.
bone_namingOpcjonalnestringtripotripo, mixamo, actorcore, unity, unreal, vrmBone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price.
output_formatOpcjonalnestringglbglb, fbxFile format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price.
in_placeOpcjonalnebooleanfalse—Play the motions on the spot, without forward movement (no root motion). Does not change the price.

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 mesh_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": "tripo/tools/animate",
  "input": {
    "mesh_url": "https://media.popnow.ai/image-to-3d/kettle-04641a.glb",
    "animations": [
      {
        "name": "idle"
      }
    ]
  }
}'

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"

Konwerter 3D

tripo/tools/convert

Cena

OpcjaUSD
Domyślnie$0.072 za zapytanie

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
mesh_urlWymaganestring——The 3D model to convert: a GLB, binary FBX, OBJ or STL file up to 90 MB. Skeleton and animation are carried over by default.
output_formatWymaganestring—glb, fbx, stlTarget format: glb for browsers and web games, fbx for animation software and engines, stl for 3D printing (geometry only). Does not change the price.
quad_meshOpcjonalnebooleanfalse—Remesh to four-sided polygons (about 10,000 faces unless face_limit is set). Requires output_format fbx. Uses the higher rate.
face_limitOpcjonalneinteger—od 48 do 2000000Maximum number of faces, 48 to 2,000,000. Leave empty to keep the original count. Setting it uses the higher rate.
texture_sizeOpcjonalneinteger4096od 128 do 8192Diffuse texture size in pixels, 128 to 8192. Any value other than 4096 uses the higher rate.
texture_formatOpcjonalnestringjpegjpeg, png, webpImage format of the exported textures. png or webp uses the higher rate.
pivot_to_bottomOpcjonalnebooleanfalse—Move the pivot to the centre of the model's base. Uses the higher rate.
scale_factorOpcjonalnenumber1od 0.001 do 1000Uniform scale for the exported model. Any value other than 1 uses the higher rate.
flatten_bottomOpcjonalnebooleanfalse—Flatten the underside of the model, useful for 3D printing. Uses the higher rate.
forward_axisOpcjonalnestring+x+x, -x, +y, -yAxis the model faces in the exported file. Does not change the price.
fbx_presetOpcjonalnestringblenderblender, 3dsmax, mixamo, bake_scaleCompatibility preset for FBX exports. Does not change the price.
bake_texturesOpcjonalnebooleantrue—Bake advanced materials into the base textures. Does not change the price.
keep_animationOpcjonalnebooleantrue—Keep skeleton and animation data. Turn off for a static mesh. Does not change the price.
in_placeOpcjonalnebooleanfalse—Remove forward movement from animation clips during export. Does not change the price.

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 mesh_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": "tripo/tools/convert",
  "input": {
    "mesh_url": "https://media.popnow.ai/image-to-3d/kettle-04641a.glb",
    "output_format": "glb",
    "flatten_bottom": false,
    "scale_factor": 1,
    "pivot_to_bottom": false,
    "texture_format": "jpeg",
    "texture_size": 4096,
    "quad_mesh": false
  }
}'

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"

Nowe tekstury 3D

tripo/tools/retexture

Cena

OpcjaUSD
Domyślnie$0.12 za zapytanie

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
mesh_urlWymaganestring——The 3D model to repaint: a GLB, binary FBX, OBJ or STL file up to 90 MB. The shape is kept; only the textures are rebuilt.
texture_promptOpcjonalnestring——What the new surface should look like: colours, materials, wear, markings. Give this, texture_image_url, or both.
texture_image_urlOpcjonalnestring (uri)——A picture to texture from. Alone it is matched onto the model; with texture_prompt it is used as the style reference.
texture_qualityOpcjonalnestringstandardstandard, fast, detailed, extremestandard (default) or fast at the base rate, detailed for higher-resolution maps at twice the base rate, extreme for 8K maps at three times the base rate.
generate_pbrOpcjonalnebooleantrue—Add metal-roughness and normal maps next to the base colour. On by default. Does not change the price.
remove_lightingOpcjonalnebooleantrue—Strip shadows and highlights from the reference picture before texturing. On by default. Does not change the price.
texture_alignmentOpcjonalnestringoriginal_imageoriginal_image, geometryFollow the colours of the reference picture (default) or the shape of the mesh. Does not change the price.
bake_texturesOpcjonalnebooleantrue—Bake advanced material effects into the standard texture maps for wider compatibility. On by default. Does not change the price.
texture_seedOpcjonalneinteger—od 0 do 2147483647Seed for the texture step. Change it for another variation on the same mesh.

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 mesh_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": "tripo/tools/retexture",
  "input": {
    "mesh_url": "https://media.popnow.ai/image-to-3d/kettle-04641a.glb",
    "texture_quality": "standard"
  }
}'

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"

Riggowanie 3D

tripo/tools/rig

Cena

OpcjaUSD
Domyślnie$0.36 za zapytanie

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
mesh_urlWymaganestring——The 3D model to rig: a GLB, binary FBX, OBJ or STL file up to 90 MB. Geometry and textures are kept; a skeleton is added.
rig_typeOpcjonalnestringautoauto, biped, quadruped, hexapod, octopod, avian, serpentine, aquatic, othersSkeleton type. auto picks one from the shape; choose another for animals and creatures. Does not change the price.
bone_namingOpcjonalnestringtripotripo, mixamo, actorcore, unity, unreal, vrmBone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price.
output_formatOpcjonalnestringglbglb, fbxFile format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price.

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 mesh_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": "tripo/tools/rig",
  "input": {
    "mesh_url": "https://media.popnow.ai/image-to-3d/kettle-04641a.glb"
  }
}'

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