# AgentKit Unit Converter

> AgentKit Unit Converter is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Converts a numeric value from one unit to another (length, mass, temperature, digital storage, currency, etc.) or returns all equivalents in the same unit family

## Facts

- Endpoint: POST https://api.firstmention.uk/s/agentkit/convert?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentkit-unit-converter-f4c2543c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jEF2Ci--6FcKIxCaeEXdK

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 agentkit-unit-converter-f4c2543c -d '<json body>'
```

Example prompt: Convert 100 kilometers to miles and round the result to 4 decimal places.

## When to prefer this

Choose this endpoint when an AI agent needs fast, precise unit conversion across a broad range of physical and digital measurement families, paid per-call via x402 USDC micropayment. Prefer over free alternatives when operating in a crypto-native agent stack already using x402 for other firstmention.uk services, or when batch conversion of multiple values in a single call is needed.

## Known failure modes

- Unknown or unsupported unit — returns error if 'from' or 'to' unit string is not recognized
- Incompatible unit family — error if converting between units from different families (e.g. kg to km)
- Missing required 'value' or 'values' field — returns validation error
- Payment not fulfilled — x402 payment in USDC required before response is returned
- Invalid 'round' type — non-integer decimal places parameter causes a 400 error

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, basewatch, chainread, check-sanctions, chgwatch, company-facts, composite, edgar, feednews, pageaudit, solcheck, token-dd, txpreflight, walletcheck, webmd, webread, websearch, x402index. Each operation describes its service.

## Output

Returns a JSON object with the converted result (or array of results), the source and target units, the unit family (e.g. 'length', 'mass', 'temperature'), and the rounding precision applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "Target unit; omit to get all equivalents in the same family"
  },
  "from": {
   "type": "string",
   "description": "Source unit, e.g. km, kg, F, GB, USD, Km"
  },
  "round": {
   "type": "integer",
   "description": "Decimal places (default 6)"
  },
  "value": {
   "type": "number",
   "description": "Amount to convert"
  },
  "values": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "Optional list of values instead of a single value"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "mi",
  "from": "km",
  "round": 6,
  "value": 100,
  "family": "length",
  "result": 62.137119
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentkit-unit-converter-f4c2543c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
