PopNowDocs da API
Conteúdo principal

Referência da API do Tripo 3D Tools

Rigging, animação, nova textura e conversão de um modelo 3D pronto para GLB, FBX ou STL

Com uma única chave de API da PopNow você chama o Tripo 3D Tools direto do seu código. Aqui estão os IDs de modelo a enviar, cada campo de entrada aceito, quanto custa cada requisição em USD e um exemplo que você cola no terminal e roda.

As descrições dos parâmetros vêm do schema de entrada do modelo e estão disponíveis só em inglês.

Resumo

Desenvolvedor
Tripo
Resultado
Imagem
A partir de
$0.072 USD por requisição

Os preços são exibidos em USD e os valores são descontados do seu saldo PopNow. Ao aceitar a tarefa, o valor máximo é reservado; ao concluir, o uso real é cobrado e o restante liberado. Tarefas com falha não são cobradas. Consulte POST /api/v1/jobs/quote para obter uma cotação exata antes de executar.

Animação 3D

tripo/tools/animate

Preço

OpçãoUSD
Padrão$0.504 por requisição

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
mesh_urlObrigatóriostring——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.
animationsObrigatórioarray<object>—até 5 itensOne to five preset motions, one per row. Each becomes a named clip in the file and adds to the price.
rig_typeOpcionalstringautoauto, 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_namingOpcionalstringtripotripo, mixamo, actorcore, unity, unreal, vrmBone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price.
output_formatOpcionalstringglbglb, fbxFile format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price.
in_placeOpcionalbooleanfalse—Play the motions on the spot, without forward movement (no root motion). Does not change the price.

Exemplo de requisição

Esta requisição roda do jeito que está; os campos que você omitir usam o valor padrão. Antes, coloque sua chave em POPNOW_API_KEY.

O exemplo usa arquivos de amostra da PopNow em mesh_url. Troque pelos seus próprios links HTTPS públicos, uploads ou assets salvos.

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

A resposta já traz um taskId. Busque o resultado com GET /api/v1/jobs/recordInfo ou inclua callBackUrl para ser avisado.

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"

Conversor 3D

tripo/tools/convert

Preço

OpçãoUSD
Padrão$0.072 por requisição

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
mesh_urlObrigatóriostring——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_formatObrigatóriostring—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_meshOpcionalbooleanfalse—Remesh to four-sided polygons (about 10,000 faces unless face_limit is set). Requires output_format fbx. Uses the higher rate.
face_limitOpcionalinteger—de 48 a 2000000Maximum number of faces, 48 to 2,000,000. Leave empty to keep the original count. Setting it uses the higher rate.
texture_sizeOpcionalinteger4096de 128 a 8192Diffuse texture size in pixels, 128 to 8192. Any value other than 4096 uses the higher rate.
texture_formatOpcionalstringjpegjpeg, png, webpImage format of the exported textures. png or webp uses the higher rate.
pivot_to_bottomOpcionalbooleanfalse—Move the pivot to the centre of the model's base. Uses the higher rate.
scale_factorOpcionalnumber1de 0.001 a 1000Uniform scale for the exported model. Any value other than 1 uses the higher rate.
flatten_bottomOpcionalbooleanfalse—Flatten the underside of the model, useful for 3D printing. Uses the higher rate.
forward_axisOpcionalstring+x+x, -x, +y, -yAxis the model faces in the exported file. Does not change the price.
fbx_presetOpcionalstringblenderblender, 3dsmax, mixamo, bake_scaleCompatibility preset for FBX exports. Does not change the price.
bake_texturesOpcionalbooleantrue—Bake advanced materials into the base textures. Does not change the price.
keep_animationOpcionalbooleantrue—Keep skeleton and animation data. Turn off for a static mesh. Does not change the price.
in_placeOpcionalbooleanfalse—Remove forward movement from animation clips during export. Does not change the price.

Exemplo de requisição

Esta requisição roda do jeito que está; os campos que você omitir usam o valor padrão. Antes, coloque sua chave em POPNOW_API_KEY.

O exemplo usa arquivos de amostra da PopNow em mesh_url. Troque pelos seus próprios links HTTPS públicos, uploads ou assets salvos.

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

A resposta já traz um taskId. Busque o resultado com GET /api/v1/jobs/recordInfo ou inclua callBackUrl para ser avisado.

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"

Retexturização 3D

tripo/tools/retexture

Preço

OpçãoUSD
Padrão$0.12 por requisição

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
mesh_urlObrigatóriostring——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_promptOpcionalstring——What the new surface should look like: colours, materials, wear, markings. Give this, texture_image_url, or both.
texture_image_urlOpcionalstring (uri)——A picture to texture from. Alone it is matched onto the model; with texture_prompt it is used as the style reference.
texture_qualityOpcionalstringstandardstandard, 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_pbrOpcionalbooleantrue—Add metal-roughness and normal maps next to the base colour. On by default. Does not change the price.
remove_lightingOpcionalbooleantrue—Strip shadows and highlights from the reference picture before texturing. On by default. Does not change the price.
texture_alignmentOpcionalstringoriginal_imageoriginal_image, geometryFollow the colours of the reference picture (default) or the shape of the mesh. Does not change the price.
bake_texturesOpcionalbooleantrue—Bake advanced material effects into the standard texture maps for wider compatibility. On by default. Does not change the price.
texture_seedOpcionalinteger—de 0 a 2147483647Seed for the texture step. Change it for another variation on the same mesh.

Exemplo de requisição

Esta requisição roda do jeito que está; os campos que você omitir usam o valor padrão. Antes, coloque sua chave em POPNOW_API_KEY.

O exemplo usa arquivos de amostra da PopNow em mesh_url. Troque pelos seus próprios links HTTPS públicos, uploads ou assets salvos.

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

A resposta já traz um taskId. Busque o resultado com GET /api/v1/jobs/recordInfo ou inclua callBackUrl para ser avisado.

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"

Rigging 3D

tripo/tools/rig

Preço

OpçãoUSD
Padrão$0.36 por requisição

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
mesh_urlObrigatóriostring——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_typeOpcionalstringautoauto, 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_namingOpcionalstringtripotripo, mixamo, actorcore, unity, unreal, vrmBone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price.
output_formatOpcionalstringglbglb, fbxFile format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price.

Exemplo de requisição

Esta requisição roda do jeito que está; os campos que você omitir usam o valor padrão. Antes, coloque sua chave em POPNOW_API_KEY.

O exemplo usa arquivos de amostra da PopNow em mesh_url. Troque pelos seus próprios links HTTPS públicos, uploads ou assets salvos.

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

A resposta já traz um taskId. Busque o resultado com GET /api/v1/jobs/recordInfo ou inclua callBackUrl para ser avisado.

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"

Próximos passos

Nesta página