# Geometry Calculator

> Geometry Calculator is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-30).

Computes area, perimeter, volume, and surface area for common 2D and 3D shapes given their dimensions.

## Facts

- Endpoint: GET https://api.gadgethumans.com/geometry?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/geometry-calculator-3e49fbc4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G_jHNWwkgfVveiX3QuzZq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability geometry-calculator-3e49fbc4
```

Example prompt: What's the area and perimeter of a rectangle that's 10 units wide and 4 units tall?

## When to prefer this

Use this endpoint when you need instant, CPU-only computation of standard geometric measurements for one of the six supported shapes (circle, square, rectangle, triangle, sphere, cylinder) and want a lightweight, low-cost API call with no external dependencies or latency.

## Known failure modes

- Missing required 'shape' parameter returns an error
- Unsupported shape name (not one of: circle, square, rectangle, triangle, sphere, cylinder) returns an error
- Missing required dimensions for the given shape (e.g. no radius for a circle) returns an error
- Non-numeric dimension values return a validation error

## How this service works

Compute area, perimeter, volume and surface area for common shapes. Pure CPU, instant.

## Output

Returns a JSON object with computed geometric measurements (area, perimeter, volume, surface area) relevant to the requested shape, calculated instantly on the server.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "shape"
     ],
     "properties": {
      "a": {
       "type": "number",
       "description": "Primary dimension"
      },
      "b": {
       "type": "number",
       "description": "Secondary dimension"
      },
      "shape": {
       "type": "string",
       "description": "circle, square, rectangle, triangle, sphere or cylinder"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/geometry-calculator-3e49fbc4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
