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
- Identyfikatory modelu
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
| Opcja | USD |
|---|---|
Domyślnie | $0.504 za zapytanie |
Parametry
| Pole | Typ | Domyślnie | Dozwolone wartości | Do czego służy |
|---|---|---|---|---|
mesh_urlWymagane | string | — | — | 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. |
animationsWymagane | array<object> | — | do 5 elementów | One to five preset motions, one per row. Each becomes a named clip in the file and adds to the price. |
rig_typeOpcjonalne | string | auto | auto, biped, quadruped, hexapod, octopod, avian, serpentine, aquatic, others | Skeleton type. auto picks one from the shape; choose another for animals and creatures. Does not change the price. |
bone_namingOpcjonalne | string | tripo | tripo, mixamo, actorcore, unity, unreal, vrm | Bone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price. |
output_formatOpcjonalne | string | glb | glb, fbx | File format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price. |
in_placeOpcjonalne | boolean | false | — | 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.
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.
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
| Opcja | USD |
|---|---|
Domyślnie | $0.072 za zapytanie |
Parametry
| Pole | Typ | Domyślnie | Dozwolone wartości | Do czego służy |
|---|---|---|---|---|
mesh_urlWymagane | string | — | — | 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_formatWymagane | string | — | glb, fbx, stl | Target 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_meshOpcjonalne | boolean | false | — | Remesh to four-sided polygons (about 10,000 faces unless face_limit is set). Requires output_format fbx. Uses the higher rate. |
face_limitOpcjonalne | integer | — | od 48 do 2000000 | Maximum number of faces, 48 to 2,000,000. Leave empty to keep the original count. Setting it uses the higher rate. |
texture_sizeOpcjonalne | integer | 4096 | od 128 do 8192 | Diffuse texture size in pixels, 128 to 8192. Any value other than 4096 uses the higher rate. |
texture_formatOpcjonalne | string | jpeg | jpeg, png, webp | Image format of the exported textures. png or webp uses the higher rate. |
pivot_to_bottomOpcjonalne | boolean | false | — | Move the pivot to the centre of the model's base. Uses the higher rate. |
scale_factorOpcjonalne | number | 1 | od 0.001 do 1000 | Uniform scale for the exported model. Any value other than 1 uses the higher rate. |
flatten_bottomOpcjonalne | boolean | false | — | Flatten the underside of the model, useful for 3D printing. Uses the higher rate. |
forward_axisOpcjonalne | string | +x | +x, -x, +y, -y | Axis the model faces in the exported file. Does not change the price. |
fbx_presetOpcjonalne | string | blender | blender, 3dsmax, mixamo, bake_scale | Compatibility preset for FBX exports. Does not change the price. |
bake_texturesOpcjonalne | boolean | true | — | Bake advanced materials into the base textures. Does not change the price. |
keep_animationOpcjonalne | boolean | true | — | Keep skeleton and animation data. Turn off for a static mesh. Does not change the price. |
in_placeOpcjonalne | boolean | false | — | 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.
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.
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
| Opcja | USD |
|---|---|
Domyślnie | $0.12 za zapytanie |
Parametry
| Pole | Typ | Domyślnie | Dozwolone wartości | Do czego służy |
|---|---|---|---|---|
mesh_urlWymagane | string | — | — | 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_promptOpcjonalne | string | — | — | What the new surface should look like: colours, materials, wear, markings. Give this, texture_image_url, or both. |
texture_image_urlOpcjonalne | string (uri) | — | — | A picture to texture from. Alone it is matched onto the model; with texture_prompt it is used as the style reference. |
texture_qualityOpcjonalne | string | standard | standard, fast, detailed, extreme | standard (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_pbrOpcjonalne | boolean | true | — | Add metal-roughness and normal maps next to the base colour. On by default. Does not change the price. |
remove_lightingOpcjonalne | boolean | true | — | Strip shadows and highlights from the reference picture before texturing. On by default. Does not change the price. |
texture_alignmentOpcjonalne | string | original_image | original_image, geometry | Follow the colours of the reference picture (default) or the shape of the mesh. Does not change the price. |
bake_texturesOpcjonalne | boolean | true | — | Bake advanced material effects into the standard texture maps for wider compatibility. On by default. Does not change the price. |
texture_seedOpcjonalne | integer | — | od 0 do 2147483647 | Seed 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.
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.
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
| Opcja | USD |
|---|---|
Domyślnie | $0.36 za zapytanie |
Parametry
| Pole | Typ | Domyślnie | Dozwolone wartości | Do czego służy |
|---|---|---|---|---|
mesh_urlWymagane | string | — | — | 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_typeOpcjonalne | string | auto | auto, biped, quadruped, hexapod, octopod, avian, serpentine, aquatic, others | Skeleton type. auto picks one from the shape; choose another for animals and creatures. Does not change the price. |
bone_namingOpcjonalne | string | tripo | tripo, mixamo, actorcore, unity, unreal, vrm | Bone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price. |
output_formatOpcjonalne | string | glb | glb, fbx | File 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.
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.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
