PopNowDocs API
Contenu principal

Référence API de Meshy T2

Maillages légers prêts pour le jeu jusqu’à 15 000 faces à partir d’une photo ou d’une phrase

Une seule clé API PopNow suffit pour appeler Meshy T2 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
Meshy
Résultat
Image
À partir de
$0.24 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.

Image en 3D

meshy/t2/image-to-3d

Prix

OptionUSD
Par défaut$0.24 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
image_urlObligatoirestring (uri)——Photo of one object: JPEG, PNG or WebP.
generate_textureFacultatifbooleantrue—Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh.
generate_pbrFacultatifbooleanfalse—Add metallic, roughness and normal maps to the texture.
texture_promptFacultatifstring——Optional description of the texture. Takes priority over texture_image_url.
texture_image_urlFacultatifstring (uri)——Optional reference image for the texture.
texture_resolutionFacultatifstring2k2k, 4k, 8kTexture resolution. 8k costs more.
face_limitFacultatifinteger15000de 100 à 15000Target triangle count, 100 to 15,000.
pose_modeFacultatifstring—a-pose, t-poseGenerate a character in an A-pose or T-pose, useful before rigging.
auto_sizeFacultatifbooleanfalse—Scale the model to an estimated real-world size.
enable_riggingFacultatifbooleanfalse—Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh.
rigging_height_metersFacultatifnumber1.7au moins 0Character height in meters used for rigging.
enable_animationFacultatifbooleanfalse—Rig and animate the character. Adds to the price and includes rigging. Models are returned in order: base mesh, rigged model, animated model.
animation_action_idFacultatifinteger92au moins 0Animation action applied when animation is on.

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 image_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": "meshy/t2/image-to-3d",
  "input": {
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "enable_animation": false,
    "enable_rigging": false,
    "texture_resolution": "2k",
    "generate_texture": true
  }
}'

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"

Image en 3D

meshy/t2/text-to-3d

Prix

OptionUSD
Par défaut$0.24 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
promptObligatoirestring—jusqu’à 600 caractèresDescribe the object to generate, up to 600 characters.
negative_promptFacultatifstring——Details to keep out of the model.
generate_textureFacultatifbooleantrue—Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh.
generate_pbrFacultatifbooleanfalse—Add metallic, roughness and normal maps to the texture.
texture_promptFacultatifstring——Optional description of the texture. Takes priority over texture_image_url.
texture_image_urlFacultatifstring (uri)——Optional reference image for the texture.
texture_resolutionFacultatifstring2k2k, 4k, 8kTexture resolution. 8k costs more.
face_limitFacultatifinteger15000de 100 à 15000Target triangle count, 100 to 15,000.
pose_modeFacultatifstring—a-pose, t-poseGenerate a character in an A-pose or T-pose, useful before rigging.
auto_sizeFacultatifbooleanfalse—Scale the model to an estimated real-world size.
enable_riggingFacultatifbooleanfalse—Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh.
rigging_height_metersFacultatifnumber1.7au moins 0Character height in meters used for rigging.
enable_animationFacultatifbooleanfalse—Rig and animate the character. Adds to the price and includes rigging. Models are returned in order: base mesh, rigged model, animated model.
animation_action_idFacultatifinteger92au moins 0Animation action applied when animation is on.
seedFacultatifinteger—de 0 à 2147483647Random seed for controlled comparisons.

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.

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": "meshy/t2/text-to-3d",
  "input": {
    "prompt": "A bright, cheerful scene with soft natural light",
    "enable_animation": false,
    "enable_rigging": false,
    "texture_resolution": "2k",
    "generate_texture": true
  }
}'

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