Référence API de Meshy T2.5
Maillages plus propres jusqu’à 30 000 faces à partir d’une photo ou d’une phrase, rigging en option
Une seule clé API PopNow suffit pour appeler Meshy T2.5 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
- Identifiants de modèle
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.5/image-to-3d
Prix
| Option | USD |
|---|---|
Par défaut | $0.24 par requête |
Paramètres
| Champ | Type | Valeur par défaut | Valeurs admises | Rôle |
|---|---|---|---|---|
image_urlObligatoire | string (uri) | — | — | Photo of one object: JPEG, PNG or WebP. |
generate_textureFacultatif | boolean | true | — | Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh. |
generate_pbrFacultatif | boolean | false | — | Add metallic, roughness and normal maps to the texture. |
texture_promptFacultatif | string | — | — | Optional description of the texture. Takes priority over texture_image_url. |
texture_image_urlFacultatif | string (uri) | — | — | Optional reference image for the texture. |
texture_resolutionFacultatif | string | 2k | 2k, 4k, 8k | Texture resolution. 8k costs more. |
face_limitFacultatif | integer | 30000 | de 100 à 30000 | Target triangle count, 100 to 30,000. |
pose_modeFacultatif | string | — | a-pose, t-pose | Generate a character in an A-pose or T-pose, useful before rigging. |
auto_sizeFacultatif | boolean | false | — | Scale the model to an estimated real-world size. |
enable_riggingFacultatif | boolean | false | — | Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh. |
rigging_height_metersFacultatif | number | 1.7 | au moins 0 | Character height in meters used for rigging. |
enable_animationFacultatif | boolean | false | — | 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_idFacultatif | integer | 92 | au moins 0 | Animation 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.
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.5/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.
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.5/text-to-3d
Prix
| Option | USD |
|---|---|
Par défaut | $0.24 par requête |
Paramètres
| Champ | Type | Valeur par défaut | Valeurs admises | Rôle |
|---|---|---|---|---|
promptObligatoire | string | — | jusqu’à 600 caractères | Describe the object to generate, up to 600 characters. |
negative_promptFacultatif | string | — | — | Details to keep out of the model. |
generate_textureFacultatif | boolean | true | — | Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh. |
generate_pbrFacultatif | boolean | false | — | Add metallic, roughness and normal maps to the texture. |
texture_promptFacultatif | string | — | — | Optional description of the texture. Takes priority over texture_image_url. |
texture_image_urlFacultatif | string (uri) | — | — | Optional reference image for the texture. |
texture_resolutionFacultatif | string | 2k | 2k, 4k, 8k | Texture resolution. 8k costs more. |
face_limitFacultatif | integer | 30000 | de 100 à 30000 | Target triangle count, 100 to 30,000. |
pose_modeFacultatif | string | — | a-pose, t-pose | Generate a character in an A-pose or T-pose, useful before rigging. |
auto_sizeFacultatif | boolean | false | — | Scale the model to an estimated real-world size. |
enable_riggingFacultatif | boolean | false | — | Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh. |
rigging_height_metersFacultatif | number | 1.7 | au moins 0 | Character height in meters used for rigging. |
enable_animationFacultatif | boolean | false | — | 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_idFacultatif | integer | 92 | au moins 0 | Animation action applied when animation is on. |
seedFacultatif | integer | — | de 0 à 2147483647 | Random 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.
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.5/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.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
