auto_sizeboolean
Estimate the object's real-world size and scale the model to it.
Default: false
meshy/resizeMeshy Resize scales an existing 3D model to a real-world height or longest side, or estimates the size automatically.
Try the model
What would you like to do next?
Select an example to load its inputs and result into the playground.
{
"model_url": "https://static.sandbase.ai/examples/406c41fa-77b3-4fc4-86e9-6283e7acf112/input/b463e310-7d5f-447f-8be2-d053fcdeef1c.glb",
"resize_height": 1.8
}{
"model_url": "https://static.sandbase.ai/examples/eb08a657-0af2-4636-99f6-f7d6acf87ef4/input/c2f43e93-7e34-4b95-961c-99f48c21e3d4.glb",
"origin_at": "bottom",
"resize_longest_side": 0.45
}Meshy Resize scales an existing 3D model to a real-world height or longest side, or estimates the size automatically.
| 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. |
resize_height | number 0– | — | Target height in meters. Send exactly one of resize_height, resize_longest_side or auto_size. |
resize_longest_side | number 0– | — | Target length of the longest side in meters. |
auto_size | boolean | false | Estimate the object's real-world size and scale the model to it. |
origin_at | bottom / center | "bottom" | Where to place the model origin. |
url: Resized GLB.$0.04 per model.
Start building
Submit this model through the 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/resize",
"auto_size": false,
"model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
"origin_at": "bottom"
}
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"Create a SandBase API key and set it in your server environment. All requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep the key on your server. Do not expose it in browser code or commit it to a repository.
POST to /v1/run with this model ID and its inputs. The request example above includes submission and polling.
Use the returned run ID to poll until the status is completed, failed or timeout. Read output only after completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Pass a publicly accessible file URL in the model’s image, video or audio field. Supported formats and limits are shown beside each Playground input.
Use the upload or replace control on supported image fields in the Playground. Video URL fields accept a hosted driving video; they do not imply video-upload support.
auto_sizebooleanEstimate the object's real-world size and scale the model to it.
Default: false
model_urlstringrequiredURL of the 3D model (GLB, GLTF, FBX, OBJ or STL) as a public URL or data URI.
origin_atstringWhere to place the model origin.
Default: "bottom"
Possible values: "bottom", "center"
resize_heightnumberTarget height in meters. Send exactly one of resize_height, resize_longest_side or auto_size.
Minimum: 0
resize_longest_sidenumberTarget length of the longest side in meters.
Minimum: 0
{
"model": "meshy/resize",
"auto_size": false,
"model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
"origin_at": "bottom"
}A completed run exposes its result in output. The following is the model’s saved example, not a new generation.
[
{
"url": "https://static.sandbase.ai/examples/406c41fa-77b3-4fc4-86e9-6283e7acf112/output/3c587a2f-14b2-450c-b27b-637e8bce671c.glb"
}
]