# JOB_ID is the id from the create response; poll until status is final
curl "https://api.mcpbytes.com/v1/jobs/$JOB_ID" \
-H "Authorization: Bearer $MCPBYTES_API_KEY"
# Once status is succeeded, download the model from result.files[].url
curl -fsSLo model.glb "$MODEL_URL"
{
"tool": "optimize_3d_model",
"status": "succeeded",
"result": {
"files": [
{
"name": "model.glb",
"bytes": 4143860,
"content_type": "model/gltf-binary",
"url": "https://api.mcpbytes.com/blob/dl/…"
},
{
"name": "generation.json",
"bytes": 2218,
"content_type": "application/json",
"url": "https://api.mcpbytes.com/blob/dl/…"
}
],
"notes": []
},
"compute_ms": 278600,
"credits_charged": 60
}