model_urlstring必須
URL of the 3D model (GLB, GLTF, FBX, OBJ or STL) as a public URL or data URI.
meshy/uv-unwrapMeshy UV Unwrap creates a clean UV layout for an existing 3D model before texturing.
モデルを試す

次に何をしますか?
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Meshy UV Unwrap creates a clean UV layout for an existing 3D model before texturing.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the 3D model (GLB, GLTF, FBX, OBJ or STL) as a public URL or data URI. |
url: GLB with new UVs.thumbnail: Preview image.$0.20 per model. The mesh can have at most 40,000 faces.
開発を始める
このモデルをSandBase Unified Run API経由で送信します。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "meshy/uv-unwrap",
"model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
このモデルIDと入力を使って /v1/run にPOSTしてください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun IDを使って、ステータスがcompleted、failed、timeoutになるまでポーリングしてください。出力はcompleted後にのみ読み取ってください。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"モデルのimage、video、またはaudioフィールドに、公開アクセス可能なファイルURLを指定してください。対応形式と制限は各Playground入力の横に表示されます。
Playgroundの対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
model_urlstring必須URL of the 3D model (GLB, GLTF, FBX, OBJ or STL) as a public URL or data URI.
{
"model": "meshy/uv-unwrap",
"model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb"
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"poster": "https://static.sandbase.ai/examples/972f9ac7-cc4c-4437-9a83-ac90c09aa574/output/33cb2343-39fb-4bc5-8ca8-5caa11c7a113.png",
"thumbnail": "https://static.sandbase.ai/examples/972f9ac7-cc4c-4437-9a83-ac90c09aa574/output/33cb2343-39fb-4bc5-8ca8-5caa11c7a113.png",
"url": "https://static.sandbase.ai/examples/972f9ac7-cc4c-4437-9a83-ac90c09aa574/output/328391fc-b7de-4353-9305-063e23daf7b1.glb"
}
]