PopNowDocs da API
Conteúdo principal

Referência da API do Meshy T2.5

Malhas mais limpas com até 30.000 faces a partir de uma foto ou uma frase, com rigging opcional

Com uma única chave de API da PopNow você chama o Meshy T2.5 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
Meshy
Resultado
Imagem
A partir de
$0.24 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.

Imagem para 3D

meshy/t2.5/image-to-3d

Preço

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

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
image_urlObrigatóriostring (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_limitOpcionalinteger30000de 100 a 30000Target triangle count, 100 to 30,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.7no 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_idOpcionalinteger92no mínimo 0Animation action applied when animation is on.

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

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"

Imagem para 3D

meshy/t2.5/text-to-3d

Preço

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

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
promptObrigatóriostring—até 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_limitOpcionalinteger30000de 100 a 30000Target triangle count, 100 to 30,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.7no 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_idOpcionalinteger92no mínimo 0Animation action applied when animation is on.
seedOpcionalinteger—de 0 a 2147483647Random seed for controlled comparisons.

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.

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

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