PopNowDocs de la API
Contenido principal

Referencia de la API de Meshy T2

Mallas ligeras listas para juegos de hasta 15.000 caras a partir de una foto o una frase

Con una sola clave de API de PopNow puedes llamar a Meshy T2 desde tu propio código. Aquí tienes los ID de modelo que debes enviar, cada campo de entrada que acepta, cuánto cuesta cada solicitud en USD y una petición que puedes pegar tal cual en la terminal.

Las descripciones de los parámetros vienen del esquema de entrada del modelo y solo están en inglés.

De un vistazo

Creado por
Meshy
Resultado
Imagen
Desde
$0.24 USD por solicitud

Los precios se muestran en USD y se cobran de tu saldo de PopNow. Al aceptar la tarea se reserva el importe máximo; al terminar se cobra el uso real y se libera el resto. Las tareas fallidas no se cobran. Consulta POST /api/v1/jobs/quote para obtener un presupuesto exacto antes de ejecutar.

Imagen a 3D

meshy/t2/image-to-3d

Precio

OpciónUSD
Predeterminado$0.24 por solicitud

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
image_urlObligatoriostring (uri)——Photo of one object: JPEG, PNG or WebP.
generate_textureOpcionalbooleantrue—Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh.
generate_pbrOpcionalbooleanfalse—Add metallic, roughness and normal maps to the texture.
texture_promptOpcionalstring——Optional description of the texture. Takes priority over texture_image_url.
texture_image_urlOpcionalstring (uri)——Optional reference image for the texture.
texture_resolutionOpcionalstring2k2k, 4k, 8kTexture resolution. 8k costs more.
face_limitOpcionalinteger15000de 100 a 15000Target triangle count, 100 to 15,000.
pose_modeOpcionalstring—a-pose, t-poseGenerate a character in an A-pose or T-pose, useful before rigging.
auto_sizeOpcionalbooleanfalse—Scale the model to an estimated real-world size.
enable_riggingOpcionalbooleanfalse—Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh.
rigging_height_metersOpcionalnumber1.7como mínimo 0Character height in meters used for rigging.
enable_animationOpcionalbooleanfalse—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_idOpcionalinteger92como mínimo 0Animation action applied when animation is on.

Solicitud de ejemplo

Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en POPNOW_API_KEY.

El ejemplo usa archivos de muestra de PopNow en image_url. Cámbialos por tus propios enlaces HTTPS públicos, archivos subidos o recursos guardados.

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 respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.

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"

Imagen a 3D

meshy/t2/text-to-3d

Precio

OpciónUSD
Predeterminado$0.24 por solicitud

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
promptObligatoriostring—hasta 600 caracteresDescribe the object to generate, up to 600 characters.
negative_promptOpcionalstring——Details to keep out of the model.
generate_textureOpcionalbooleantrue—Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh.
generate_pbrOpcionalbooleanfalse—Add metallic, roughness and normal maps to the texture.
texture_promptOpcionalstring——Optional description of the texture. Takes priority over texture_image_url.
texture_image_urlOpcionalstring (uri)——Optional reference image for the texture.
texture_resolutionOpcionalstring2k2k, 4k, 8kTexture resolution. 8k costs more.
face_limitOpcionalinteger15000de 100 a 15000Target triangle count, 100 to 15,000.
pose_modeOpcionalstring—a-pose, t-poseGenerate a character in an A-pose or T-pose, useful before rigging.
auto_sizeOpcionalbooleanfalse—Scale the model to an estimated real-world size.
enable_riggingOpcionalbooleanfalse—Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh.
rigging_height_metersOpcionalnumber1.7como mínimo 0Character height in meters used for rigging.
enable_animationOpcionalbooleanfalse—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_idOpcionalinteger92como mínimo 0Animation action applied when animation is on.
seedOpcionalinteger—de 0 a 2147483647Random seed for controlled comparisons.

Solicitud de ejemplo

Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en 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 respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.

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"

Siguientes pasos

En esta página