# TaskMint Unit Converter

> TaskMint Unit Converter is a paid API for AI agents from taskmint-sign-proof-node22-production.up.railway.app, paid per call via x402, $0.0005/call, status unknown (last checked 2026-10-10).

Converts numeric values between units of measurement across length, mass, volume, temperature, time, and area in batch

## Facts

- Endpoint: POST https://taskmint-sign-proof-node22-production.up.railway.app/api/agent/unit_convert?utm_source=zero.xyz
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/taskmint-unit-converter-0551be84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DaklSxFJCyD6CKJKOE-Qa

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 taskmint-unit-converter-0551be84 -d '<json body>'
```

Example prompt: Convert these three measurements for me: 10 pounds to kilograms, 72°F to Celsius, and 12 inches to centimeters — I need all three results in one go.

## When to prefer this

Choose this endpoint when you need deterministic, offline unit conversion across a wide range of physical dimensions (length, mass, volume, temperature, time, area) in batch up to 100 items per call, billed at a flat $0.0005 USDC per job. It is ideal for AI agents that need cheap, reliable, multi-unit conversion without external lookup — particularly when converting between metric and imperial systems or handling mixed-dimension batches in a single request. Prefer this over general-purpose LLM math when you need precision guarantees and a structured, machine-readable response.

## Known failure modes

- Invalid or mismatched unit enum values (e.g. mixing incompatible dimensions like kg to Celsius) return an error or populated reason field per row
- Exceeding 100 items in a single request returns a validation error
- Missing required fields (value, from, to) cause a schema validation failure
- HTTP 202 or transport failure requires retry with identical request body and same request_token — never a new purchase
- Results expire after 24 hours from job creation, making the request_token invalid for retrieval
- Malformed request_token (not 64-character lowercase hex) causes rejection

## How this service works

Exact native USDC on Base; externally owned wallets only. Generate a private 32-byte random request_token for each new job, persist the entire body, and reuse it for challenge/retry and recovery. The token grants result access. Do not log or share it. HTTP 202 or an uncertain transport failure requires recovery with the identical body without a signature, never a new purchase. Results expire after 24 hours. Ten bounded deterministic services. Local execution is free; hosted jobs require customer-authorized payment only when billable.

## Output

Returns a JSON object with state 'paid' and a result array where each item contains the converted value (rounded to 12 significant figures), the source and target units, the physical dimension (e.g. mass, temperature, length), the original input value, and a null reason on success. Also includes a summary string (e.g. '3 of 3 values resolved'), service version, and a precision disclaimer noting approximate numeric conversions not suitable for safety-critical use.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "payload": {
   "type": "object",
   "required": [
    "items"
   ],
   "properties": {
    "items": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "value",
       "from",
       "to"
      ],
      "properties": {
       "to": {
        "enum": [
         "mm",
         "cm",
         "m",
         "km",
         "in",
         "ft",
         "yd",
         "mi",
         "mg",
         "g",
         "kg",
         "t",
         "oz",
         "lb",
         "ml",
         "l",
         "m3",
         "us_gal",
         "imp_gal",
         "s",
         "min",
         "h",
         "day",
         "m2",
         "ft2",
         "ha",
         "acre",
         "C",
         "F",
         "K"
        ]
       },
       "from": {
        "enum": [
         "mm",
         "cm",
         "m",
         "km",
         "in",
         "ft",
         "yd",
         "mi",
         "mg",
         "g",
         "kg",
         "t",
         "oz",
         "lb",
         "ml",
         "l",
         "m3",
         "us_gal",
         "imp_gal",
         "s",
         "min",
         "h",
         "day",
         "m2",
         "ft2",
         "ha",
         "acre",
         "C",
         "F",
         "K"
        ]
       },
       "value": {
        "type": "number"
       }
      },
      "additionalProperties": false
     },
     "maxItems": 100,
     "minItems": 1
    }
   },
   "additionalProperties": false
  },
  "request_token": {
   "type": "string",
   "pattern": "^[a-f0-9]{64}$",
   "description": "Generate 32 cryptographically random bytes as lowercase hex for each new job. Keep this private result credential and reuse the identical body for retries. Replace the synthetic example token."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "state": "paid",
  "result": {
   "rows": [
    {
     "to": "kg",
     "from": "lb",
     "index": 0,
     "value": 4.5359237,
     "reason": null,
     "value_in": 10,
     "dimension": "mass"
    },
    {
     "to": "C",
     "from": "F",
     "index": 1,
     "value": 22.2222222222,
     "reason": null,
     "value_in": 72,
     "dimension": "temperature"
    },
    {
     "to": "cm",
     "from": "in",
     "index": 2,
     "value": 30.48,
     "reason": null,
     "value_in": 12,
     "dimension": "length"
    }
   ],
   "flags": [],
   "scope": "Supplied data only; no external lookup or verification.",
   "status": "resolved",
   "service": "unit_convert",
   "summary": "3 of 3 values resolved",
   "version": "0.5.0",
   "precision": "Approximate numeric conversions, rounded to 12 significant digits. Not for safety-critical measurement."
  },
  "service": "unit_convert"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/taskmint-unit-converter-0551be84/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from taskmint-sign-proof-node22-production.up.railway.app](https://www.zero.xyz/host/taskmint-sign-proof-node22-production.up.railway.app/llms.txt)
