PopNowДокументация API
Основное содержимое

Meshy T2: справочник по API

Лёгкие игровые сетки до 15 000 полигонов из фото или одной фразы

С одним ключом PopNow API вы вызываете Meshy T2 прямо из своего кода. Здесь собраны ID модели, которые нужно передать, все поля, которые она принимает, стоимость запроса в USD и готовый запрос — его можно вставить в терминал и запустить.

Описания параметров взяты из входной схемы модели и пока доступны только на английском.

Кратко

Разработчик
Meshy
Результат
Изображение
От
$0.24 USD за запрос

Цены указаны в USD, оплата списывается с вашего баланса PopNow. При принятии задачи резервируется максимальная сумма, после завершения оплачивается фактическое использование, а остаток освобождается. Неудачные задачи не оплачиваются. Точную стоимость перед запуском можно узнать через POST /api/v1/jobs/quote.

Изображение в 3D

meshy/t2/image-to-3d

Цена

ВариантUSD
По умолчанию$0.24 за запрос

Параметры

ПолеТипПо умолчаниюДопустимые значенияНазначение
image_urlОбязательноstring (uri)——Photo of one object: JPEG, PNG or WebP.
generate_textureНеобязательноbooleantrue—Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh.
generate_pbrНеобязательноbooleanfalse—Add metallic, roughness and normal maps to the texture.
texture_promptНеобязательноstring——Optional description of the texture. Takes priority over texture_image_url.
texture_image_urlНеобязательноstring (uri)——Optional reference image for the texture.
texture_resolutionНеобязательноstring2k2k, 4k, 8kTexture resolution. 8k costs more.
face_limitНеобязательноinteger15000от 100 до 15000Target triangle count, 100 to 15,000.
pose_modeНеобязательноstring—a-pose, t-poseGenerate a character in an A-pose or T-pose, useful before rigging.
auto_sizeНеобязательноbooleanfalse—Scale the model to an estimated real-world size.
enable_riggingНеобязательноbooleanfalse—Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh.
rigging_height_metersНеобязательноnumber1.7не меньше 0Character height in meters used for rigging.
enable_animationНеобязательноbooleanfalse—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_idНеобязательноinteger92не меньше 0Animation action applied when animation is on.

Пример запроса

Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.

В примере в image_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.

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

В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.

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"

Изображение в 3D

meshy/t2/text-to-3d

Цена

ВариантUSD
По умолчанию$0.24 за запрос

Параметры

ПолеТипПо умолчаниюДопустимые значенияНазначение
promptОбязательноstring—до 600 символовDescribe the object to generate, up to 600 characters.
negative_promptНеобязательноstring——Details to keep out of the model.
generate_textureНеобязательноbooleantrue—Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh.
generate_pbrНеобязательноbooleanfalse—Add metallic, roughness and normal maps to the texture.
texture_promptНеобязательноstring——Optional description of the texture. Takes priority over texture_image_url.
texture_image_urlНеобязательноstring (uri)——Optional reference image for the texture.
texture_resolutionНеобязательноstring2k2k, 4k, 8kTexture resolution. 8k costs more.
face_limitНеобязательноinteger15000от 100 до 15000Target triangle count, 100 to 15,000.
pose_modeНеобязательноstring—a-pose, t-poseGenerate a character in an A-pose or T-pose, useful before rigging.
auto_sizeНеобязательноbooleanfalse—Scale the model to an estimated real-world size.
enable_riggingНеобязательноbooleanfalse—Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh.
rigging_height_metersНеобязательноnumber1.7не меньше 0Character height in meters used for rigging.
enable_animationНеобязательноbooleanfalse—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_idНеобязательноinteger92не меньше 0Animation action applied when animation is on.
seedНеобязательноinteger—от 0 до 2147483647Random seed for controlled comparisons.

Пример запроса

Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную 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
  }
}'

В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.

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"

Что дальше

На этой странице