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任意 | 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 | 30000 | 100〜30000 | Target triangle count, 100 to 30,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.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 を付けて通知を受け取ります。
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任意 | 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 | 30000 | 100〜30000 | Target triangle count, 100 to 30,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.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 を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
