PopNowAPI ドキュメント
本文

Meshy T2.5 API リファレンス

写真や一文から、最大30,000面のよりきれいなメッシュを生成。リギングも可能

PopNow の API キー 1 つで、Meshy T2.5 を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。

パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。

概要

開発元
Meshy
出力
画像
最安
$0.24 USD 1 リクエストあたり

料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。

画像から3D

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

料金

オプションUSD
既定$0.24 1 リクエストあたり

パラメーター

フィールド型既定値指定できる値説明
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任意integer30000100〜30000Target triangle count, 100 to 30,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.70 以上Character 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任意integer920 以上Animation 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.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
  }
}'

レスポンスにはすぐに 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.5/text-to-3d

料金

オプションUSD
既定$0.24 1 リクエストあたり

パラメーター

フィールド型既定値指定できる値説明
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任意integer30000100〜30000Target triangle count, 100 to 30,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.70 以上Character 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任意integer920 以上Animation 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.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
  }
}'

レスポンスにはすぐに 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"

次に読む

このページの内容