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Необязательно | boolean | true | — | Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh. |
generate_pbrНеобязательно | boolean | false | — | 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Необязательно | string | 2k | 2k, 4k, 8k | Texture resolution. 8k costs more. |
face_limitНеобязательно | integer | 15000 | от 100 до 15000 | Target triangle count, 100 to 15,000. |
pose_modeНеобязательно | string | — | a-pose, t-pose | Generate a character in an A-pose or T-pose, useful before rigging. |
auto_sizeНеобязательно | boolean | false | — | Scale the model to an estimated real-world size. |
enable_riggingНеобязательно | boolean | false | — | Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh. |
rigging_height_metersНеобязательно | number | 1.7 | не меньше 0 | Character height in meters used for rigging. |
enable_animationНеобязательно | 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_idНеобязательно | integer | 92 | не меньше 0 | Animation action applied when animation is on. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.
В примере в image_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.
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, чтобы получить уведомление.
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Необязательно | boolean | true | — | Paint a texture onto the mesh. Turn off for a lower-priced untextured mesh. |
generate_pbrНеобязательно | boolean | false | — | 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Необязательно | string | 2k | 2k, 4k, 8k | Texture resolution. 8k costs more. |
face_limitНеобязательно | integer | 15000 | от 100 до 15000 | Target triangle count, 100 to 15,000. |
pose_modeНеобязательно | string | — | a-pose, t-pose | Generate a character in an A-pose or T-pose, useful before rigging. |
auto_sizeНеобязательно | boolean | false | — | Scale the model to an estimated real-world size. |
enable_riggingНеобязательно | boolean | false | — | Add a humanoid skeleton to the character. Adds to the price. The rigged model is returned after the base mesh. |
rigging_height_metersНеобязательно | number | 1.7 | не меньше 0 | Character height in meters used for rigging. |
enable_animationНеобязательно | 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_idНеобязательно | integer | 92 | не меньше 0 | Animation action applied when animation is on. |
seedНеобязательно | integer | — | от 0 до 2147483647 | Random seed for controlled comparisons. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную 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/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, чтобы получить уведомление.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
