Skip to main content

3d models

Meshy 3D API / 画像から3D・テキストから3Dを生成

使用するモデル: をPiAPI経由で利用し、非同期の3D生成タスクを送信して、完成したGLBアセットを取得します。

今すぐ始める!

Meshy 3D APIの料金

PiAPI経由で成功した生成ごとにお支払いください。

Image to 3D mesh

$0.24

  • Mesh-only GLB output

Image to 3D textured

from $0.36

  • 2k — $0.36
  • 4k — $0.36
  • 8k — $0.42

Text preview → refine

from $0.24

  • Preview — $0.24
  • Refine 2K/4K — $0.12
  • Refine 8K — $0.18

Meshy 3D APIの機能

画像から3Dを生成

画像URLを送信し、メッシュのみの出力か、テクスチャ解像度が2K、4K、8Kのテクスチャ付き出力を選択します。

テキストから3Dのプレビュー

プロンプトでテキストから3Dのプレビュータスクを開始し、完了後にそのPiAPI task_idをリファインに使用します。

完成したプレビューをリファイン

リファインリクエストはpreview_task_idを受け取り、同じタスクのポーリング手順で完成したGLBモデルを返します。

非同期タスクAPI

PiAPIにタスクを送信し、ステータスをポーリングするかwebhookを利用して、完成したモデルをoutput.model_fileから取得します。

クイックスタート

Create your API key

Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.

Top up credits

Add credits on the billing page when you are ready to scale beyond the free tier.

Call the API

POST your first task following the API docs, then poll the task until the result is ready.

Iterate in the playground

Prototype prompts and settings in the the playground above before wiring them into your product.

Create a task

curl -X POST 'https://api.piapi.ai/api/v1/task' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "meshy",
  "task_type": "image-to-3d",
  "input": {
    "image_url": "YOUR_IMAGE_URL",
    "should_texture": true,
    "texture_resolution": "2k"
  }
}'

Retrieve the result

curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
  -H 'X-API-Key: YOUR_API_KEY'

model_file

Pricing

  • default: $0.36 / generation
  • mesh-only: $0.24 / generation
  • 2k: $0.36 / generation
  • 4k: $0.36 / generation
  • 8k: $0.42 / generation

Meshy 3D APIのよくある質問

テキストから3Dのプレビューとリファインはどう使いますか?

mode=previewでプレビューを作成し、完了を待ちます。そのPiAPI task_idをpreview_task_idとして、mode=refineで送信します。

画像から3Dのリクエストの料金はどう決まりますか?

見積もりはshould_textureとtexture_resolutionによって変わります。ワークスペースでは送信前に、選択した設定の見積もりが表示されます。

リクエストのスキーマはどこにありますか?

このページからリンクされているMeshyのタスク作成・タスク取得APIドキュメントをご覧ください。

More questions? See the API docs.