Tripo 3D Tools: справочник по API
Риггинг, анимация, новые текстуры и конвертация готовой 3D-модели в GLB, FBX или STL
С одним ключом PopNow API вы вызываете Tripo 3D Tools прямо из своего кода. Здесь собраны ID модели, которые нужно передать, все поля, которые она принимает, стоимость запроса в USD и готовый запрос — его можно вставить в терминал и запустить.
Описания параметров взяты из входной схемы модели и пока доступны только на английском.
Кратко
- Разработчик
- Tripo
- Результат
- Изображение
- От
- $0.072 USD за запрос
Цены указаны в USD, оплата списывается с вашего баланса PopNow. При принятии задачи резервируется максимальная сумма, после завершения оплачивается фактическое использование, а остаток освобождается. Неудачные задачи не оплачиваются. Точную стоимость перед запуском можно узнать через POST /api/v1/jobs/quote.
3D-анимация
tripo/tools/animate
Цена
| Вариант | USD |
|---|---|
По умолчанию | $0.504 за запрос |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
mesh_urlОбязательно | 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. |
animationsОбязательно | array<object> | — | до 5 элементов | One to five preset motions, one per row. Each becomes a named clip in the file and adds to the price. |
rig_typeНеобязательно | 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_namingНеобязательно | 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_formatНеобязательно | 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_placeНеобязательно | boolean | false | — | Play the motions on the spot, without forward movement (no root motion). Does not change the price. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.
В примере в mesh_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.
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"
}
]
}
}'В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"3D-конвертер
tripo/tools/convert
Цена
| Вариант | USD |
|---|---|
По умолчанию | $0.072 за запрос |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
mesh_urlОбязательно | 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_formatОбязательно | 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_meshНеобязательно | 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_limitНеобязательно | integer | — | от 48 до 2000000 | Maximum number of faces, 48 to 2,000,000. Leave empty to keep the original count. Setting it uses the higher rate. |
texture_sizeНеобязательно | integer | 4096 | от 128 до 8192 | Diffuse texture size in pixels, 128 to 8192. Any value other than 4096 uses the higher rate. |
texture_formatНеобязательно | string | jpeg | jpeg, png, webp | Image format of the exported textures. png or webp uses the higher rate. |
pivot_to_bottomНеобязательно | boolean | false | — | Move the pivot to the centre of the model's base. Uses the higher rate. |
scale_factorНеобязательно | number | 1 | от 0.001 до 1000 | Uniform scale for the exported model. Any value other than 1 uses the higher rate. |
flatten_bottomНеобязательно | boolean | false | — | Flatten the underside of the model, useful for 3D printing. Uses the higher rate. |
forward_axisНеобязательно | string | +x | +x, -x, +y, -y | Axis the model faces in the exported file. Does not change the price. |
fbx_presetНеобязательно | string | blender | blender, 3dsmax, mixamo, bake_scale | Compatibility preset for FBX exports. Does not change the price. |
bake_texturesНеобязательно | boolean | true | — | Bake advanced materials into the base textures. Does not change the price. |
keep_animationНеобязательно | boolean | true | — | Keep skeleton and animation data. Turn off for a static mesh. Does not change the price. |
in_placeНеобязательно | boolean | false | — | Remove forward movement from animation clips during export. Does not change the price. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.
В примере в mesh_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.
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
}
}'В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Новые текстуры для 3D
tripo/tools/retexture
Цена
| Вариант | USD |
|---|---|
По умолчанию | $0.12 за запрос |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
mesh_urlОбязательно | 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_promptНеобязательно | string | — | — | What the new surface should look like: colours, materials, wear, markings. Give this, texture_image_url, or both. |
texture_image_urlНеобязательно | 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_qualityНеобязательно | 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_pbrНеобязательно | boolean | true | — | Add metal-roughness and normal maps next to the base colour. On by default. Does not change the price. |
remove_lightingНеобязательно | boolean | true | — | Strip shadows and highlights from the reference picture before texturing. On by default. Does not change the price. |
texture_alignmentНеобязательно | 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_texturesНеобязательно | boolean | true | — | Bake advanced material effects into the standard texture maps for wider compatibility. On by default. Does not change the price. |
texture_seedНеобязательно | integer | — | от 0 до 2147483647 | Seed for the texture step. Change it for another variation on the same mesh. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.
В примере в mesh_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.
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"
}
}'В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"3D-риггинг
tripo/tools/rig
Цена
| Вариант | USD |
|---|---|
По умолчанию | $0.36 за запрос |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
mesh_urlОбязательно | 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_typeНеобязательно | 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_namingНеобязательно | 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_formatНеобязательно | string | glb | glb, fbx | File format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.
В примере в mesh_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.
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"
}
}'В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
