# Bicycle Climb Gradient & VAM Calculator

> Bicycle Climb Gradient & VAM Calculator is a paid API for AI agents from bike-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Calculates gradient percent and angle from rise and distance, plus climbing rate (VAM) and time to climb at a given rate.

## Facts

- Endpoint: GET https://bike-calc.x402tookit.com/climb-gradient?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bicycle-climb-gradient-vam-calculator-1ceaf0dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cdkgvq_qaqumDrOxcgXDn

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 bicycle-climb-gradient-vam-calculator-1ceaf0dc
```

Example prompt: What's the gradient percent and angle for a climb with 350 metres of vertical gain over 4500 metres of road distance, and how long would it take to ride at a VAM of 900?

## When to prefer this

Choose this endpoint when you need to compute cycling climb metrics — gradient, angle, VAM, or climb time — from raw rise and distance figures. It is purpose-built for cycling fitness and route analysis, combining geometric gradient calculation with sport-specific metrics like VAM in a single call.

## Known failure modes

- Missing required riseMeters or distanceMeters parameters returns an error
- Non-numeric values for numeric parameters cause validation failure
- Extremely large or zero/negative distance values may produce undefined or error responses
- VAM of zero would cause division-by-zero for time calculation

## How this service works

Gradient percent and angle from rise and distance, plus climbing rate (VAM) and the time to climb at a given rate.

## Output

Returns grade percent, angle in degrees, feet climbed, horizontal run in metres, road distance in metres, VAM in metres per hour, average speed in km/h, and minutes to climb — along with metadata fields like summary, verdict, category, and disclaimer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "riseMeters",
      "distanceMeters"
     ],
     "properties": {
      "vam": {
       "type": "number",
       "description": "Climbing rate in metres per hour, to get the time (default 1000)"
      },
      "riseMeters": {
       "type": "number",
       "description": "Vertical gain in metres"
      },
      "timeMinutes": {
       "type": "number",
       "description": "Time taken in minutes, to get the VAM instead"
      },
      "distanceMeters": {
       "type": "number",
       "description": "Distance along the road in metres (horizontal run is derived)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "category": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "riseMeters": {
       "type": [
        "null",
        "number"
       ]
      },
      "feetClimbed": {
       "type": [
        "null",
        "number"
       ]
      },
      "angleDegrees": {
       "type": [
        "null",
        "number"
       ]
      },
      "gradePercent": {
       "type": [
        "null",
       
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bicycle-climb-gradient-vam-calculator-1ceaf0dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bike-calc.x402tookit.com](https://www.zero.xyz/host/bike-calc.x402tookit.com/llms.txt)
