PopNowДокументация API
Основное содержимое

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Необязательноstringautoauto, 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_namingНеобязательноstringtripotripo, mixamo, actorcore, unity, unreal, vrmBone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price.
output_formatНеобязательноstringglbglb, fbxFile format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price.
in_placeНеобязательноbooleanfalse—Play the motions on the spot, without forward movement (no root motion). Does not change the price.

Пример запроса

Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.

В примере в mesh_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.

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

В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.

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"

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, 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_meshНеобязательноbooleanfalse—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 до 2000000Maximum number of faces, 48 to 2,000,000. Leave empty to keep the original count. Setting it uses the higher rate.
texture_sizeНеобязательноinteger4096от 128 до 8192Diffuse texture size in pixels, 128 to 8192. Any value other than 4096 uses the higher rate.
texture_formatНеобязательноstringjpegjpeg, png, webpImage format of the exported textures. png or webp uses the higher rate.
pivot_to_bottomНеобязательноbooleanfalse—Move the pivot to the centre of the model's base. Uses the higher rate.
scale_factorНеобязательноnumber1от 0.001 до 1000Uniform scale for the exported model. Any value other than 1 uses the higher rate.
flatten_bottomНеобязательноbooleanfalse—Flatten the underside of the model, useful for 3D printing. Uses the higher rate.
forward_axisНеобязательноstring+x+x, -x, +y, -yAxis the model faces in the exported file. Does not change the price.
fbx_presetНеобязательноstringblenderblender, 3dsmax, mixamo, bake_scaleCompatibility preset for FBX exports. Does not change the price.
bake_texturesНеобязательноbooleantrue—Bake advanced materials into the base textures. Does not change the price.
keep_animationНеобязательноbooleantrue—Keep skeleton and animation data. Turn off for a static mesh. Does not change the price.
in_placeНеобязательноbooleanfalse—Remove forward movement from animation clips during export. Does not change the price.

Пример запроса

Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.

В примере в mesh_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.

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

В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.

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"

Новые текстуры для 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Необязательноstringstandardstandard, 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_pbrНеобязательноbooleantrue—Add metal-roughness and normal maps next to the base colour. On by default. Does not change the price.
remove_lightingНеобязательноbooleantrue—Strip shadows and highlights from the reference picture before texturing. On by default. Does not change the price.
texture_alignmentНеобязательноstringoriginal_imageoriginal_image, geometryFollow the colours of the reference picture (default) or the shape of the mesh. Does not change the price.
bake_texturesНеобязательноbooleantrue—Bake advanced material effects into the standard texture maps for wider compatibility. On by default. Does not change the price.
texture_seedНеобязательноinteger—от 0 до 2147483647Seed for the texture step. Change it for another variation on the same mesh.

Пример запроса

Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.

В примере в mesh_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.

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

В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.

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"

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Необязательноstringautoauto, 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_namingНеобязательноstringtripotripo, mixamo, actorcore, unity, unreal, vrmBone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price.
output_formatНеобязательноstringglbglb, fbxFile 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-ссылками, загруженными файлами или сохранёнными ассетами.

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

В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.

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"

Что дальше

На этой странице