Meshy N1 API リファレンス
参考画像1枚で3Dモデルに新しい質感を。形状はそのまま
PopNow の API キー 1 つで、Meshy N1 を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- Meshy
- 出力
- 画像
- 最安
- $0.48 USD 1 リクエストあたり
- モデル ID
料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。
3Dリテクスチャ
meshy/n1/retexture
料金
| オプション | USD |
|---|---|
既定 | $0.48 1 リクエストあたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
mesh_url必須 | string | — | — | The 3D model to texture: a GLB, binary FBX, OBJ or STL file up to 90 MB. The shape is kept as it is; only the texture is replaced. |
reference_image_urls任意 | array<string> | — | 4 件まで | One to four photos or renders of the object itself, front view first. Use these or reference_image_url, not both. |
reference_image_url任意 | string | — | — | One image that sets the look of the texture (colours, materials, markings). Use this or reference_image_urls, not both. |
keep_original_uv任意 | boolean | true | — | Reuse the UV layout already in the model. Turn off to let the model unwrap the mesh again. A model without UVs gets new ones either way. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の mesh_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/n1/retexture",
"input": {
"mesh_url": "https://media.popnow.ai/image-to-3d/kettle-04641a.glb"
}
}'レスポンスにはすぐに 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"
