# PrimeAPI Length Converter

> PrimeAPI Length Converter is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.147418/call, status unknown (last checked 2026-09-14).

Converts a length value from one unit of measurement to another (e.g. meters to feet, inches to centimeters)

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/tools/convert/length
- Price: $0.147418/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-length-converter-50dd6bfd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TVRfKDI88jezkwXv4ctJ3

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 primeapi-length-converter-50dd6bfd -d '<json body>'
```

Example prompt: Convert 6.5 feet to centimeters for me.

## When to prefer this

Use this endpoint when an AI agent needs a quick, pay-per-call length unit conversion without managing API keys. Suitable for one-off conversions between common or obscure length units within automated workflows that already support x402 USDC payments on Base.

## Known failure modes

- Invalid or unrecognized unit names return an error
- Missing value or query parameter returns a 400-level error
- Ambiguous query string fails to parse source or target unit
- Payment not included or insufficient USDC results in 402 Payment Required
- Malformed input (non-numeric value) causes conversion failure

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns the converted length value in the requested target unit, typically including the numeric result and unit label.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/primeapi-length-converter-50dd6bfd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
