Catalog/geometry-solid-metrics

Geometry

3D solid volume/area API

Volume and surface area of common 3D solids: sphere, cylinder, cone, frustum, torus, box, pyramid, tetrahedron, ellipsoid (with slant heights and diagonals). Answers 'what is the volume and surface area of a cone?'.

Price$0.02per request
MethodPOST
Route/v1/geometry/solid-metrics
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
solidvolumesurface-areaspherecylinderconefrustumtorus3d
API URLhttps://x402.hexl.dev/v1/geometry/solid-metrics
Integration docs
Example request
{
  "shape": "cone",
  "radius": 3,
  "height": 4
}
Example response
{
  "shape": "cone",
  "volume": 37.699111843,
  "surfaceArea": 75.398223686,
  "lateralArea": 47.123889804,
  "slantHeight": 5
}
Input schema
{
  "type": "object",
  "properties": {
    "shape": {
      "type": "string",
      "enum": [
        "sphere",
        "cylinder",
        "cone",
        "frustum",
        "torus",
        "box",
        "pyramid",
        "tetrahedron",
        "ellipsoid"
      ],
      "examples": [
        "cone"
      ]
    },
    "radius": {
      "type": "number",
      "examples": [
        3
      ]
    },
    "height": {
      "type": "number",
      "examples": [
        4
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}