PopNowDocs API
Contenu principal

Référence API de Tripo 3D Tools

Riggez, animez, retexturez et convertissez un modèle 3D fini en GLB, FBX ou STL

Une seule clé API PopNow suffit pour appeler Tripo 3D Tools depuis votre code. Vous trouverez ici les identifiants de modèle à envoyer, chaque champ d’entrée accepté, le coût d’une requête en USD et une requête à coller telle quelle dans un terminal.

Les descriptions des paramètres proviennent du schéma d’entrée du modèle et ne sont disponibles qu’en anglais.

En bref

Éditeur
Tripo
Résultat
Image
À partir de
$0.072 USD par requête

Les prix sont affichés en USD et les frais sont déduits de votre solde PopNow. Le montant maximal est réservé à la réception de la tâche, puis la consommation réelle est facturée à la fin et le solde libéré. Les tâches en échec ne sont pas facturées. Obtenez un devis exact avant de lancer avec POST /api/v1/jobs/quote.

Animation 3D

tripo/tools/animate

Prix

OptionUSD
Par défaut$0.504 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
mesh_urlObligatoirestring——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.
animationsObligatoirearray<object>—jusqu’à 5 élémentsOne to five preset motions, one per row. Each becomes a named clip in the file and adds to the price.
rig_typeFacultatifstringautoauto, 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_namingFacultatifstringtripotripo, mixamo, actorcore, unity, unreal, vrmBone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price.
output_formatFacultatifstringglbglb, fbxFile format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price.
in_placeFacultatifbooleanfalse—Play the motions on the spot, without forward movement (no root motion). Does not change the price.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans mesh_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

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

La réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

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"

Convertisseur 3D

tripo/tools/convert

Prix

OptionUSD
Par défaut$0.072 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
mesh_urlObligatoirestring——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_formatObligatoirestring—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_meshFacultatifbooleanfalse—Remesh to four-sided polygons (about 10,000 faces unless face_limit is set). Requires output_format fbx. Uses the higher rate.
face_limitFacultatifinteger—de 48 à 2000000Maximum number of faces, 48 to 2,000,000. Leave empty to keep the original count. Setting it uses the higher rate.
texture_sizeFacultatifinteger4096de 128 à 8192Diffuse texture size in pixels, 128 to 8192. Any value other than 4096 uses the higher rate.
texture_formatFacultatifstringjpegjpeg, png, webpImage format of the exported textures. png or webp uses the higher rate.
pivot_to_bottomFacultatifbooleanfalse—Move the pivot to the centre of the model's base. Uses the higher rate.
scale_factorFacultatifnumber1de 0.001 à 1000Uniform scale for the exported model. Any value other than 1 uses the higher rate.
flatten_bottomFacultatifbooleanfalse—Flatten the underside of the model, useful for 3D printing. Uses the higher rate.
forward_axisFacultatifstring+x+x, -x, +y, -yAxis the model faces in the exported file. Does not change the price.
fbx_presetFacultatifstringblenderblender, 3dsmax, mixamo, bake_scaleCompatibility preset for FBX exports. Does not change the price.
bake_texturesFacultatifbooleantrue—Bake advanced materials into the base textures. Does not change the price.
keep_animationFacultatifbooleantrue—Keep skeleton and animation data. Turn off for a static mesh. Does not change the price.
in_placeFacultatifbooleanfalse—Remove forward movement from animation clips during export. Does not change the price.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans mesh_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

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

La réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

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"

Retexturage 3D

tripo/tools/retexture

Prix

OptionUSD
Par défaut$0.12 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
mesh_urlObligatoirestring——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_promptFacultatifstring——What the new surface should look like: colours, materials, wear, markings. Give this, texture_image_url, or both.
texture_image_urlFacultatifstring (uri)——A picture to texture from. Alone it is matched onto the model; with texture_prompt it is used as the style reference.
texture_qualityFacultatifstringstandardstandard, 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_pbrFacultatifbooleantrue—Add metal-roughness and normal maps next to the base colour. On by default. Does not change the price.
remove_lightingFacultatifbooleantrue—Strip shadows and highlights from the reference picture before texturing. On by default. Does not change the price.
texture_alignmentFacultatifstringoriginal_imageoriginal_image, geometryFollow the colours of the reference picture (default) or the shape of the mesh. Does not change the price.
bake_texturesFacultatifbooleantrue—Bake advanced material effects into the standard texture maps for wider compatibility. On by default. Does not change the price.
texture_seedFacultatifinteger—de 0 à 2147483647Seed for the texture step. Change it for another variation on the same mesh.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans mesh_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

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

La réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

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

Prix

OptionUSD
Par défaut$0.36 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
mesh_urlObligatoirestring——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_typeFacultatifstringautoauto, 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_namingFacultatifstringtripotripo, mixamo, actorcore, unity, unreal, vrmBone naming convention for biped skeletons (Tripo, Mixamo, ActorCore, Unity, Unreal or VRM). Does not change the price.
output_formatFacultatifstringglbglb, fbxFile format of the result: glb for browsers and web engines, fbx for animation software. Does not change the price.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans mesh_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

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

La réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

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"

Pour aller plus loin

Sur cette page