# ETH Unit Converter with USD Valuation

> ETH Unit Converter with USD Valuation is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Converts between wei, gwei, and ether (or arbitrary-decimal ERC20 token amounts) with big-integer precision, and optionally computes USD value from a caller-supplied price.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/eth-unit-converter
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eth-unit-converter-with-usd-valuation-ca10343b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ivmhSnhMqF7pQQjYzusml

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 eth-unit-converter-with-usd-valuation-ca10343b -d '<json body>'
```

Example prompt: Convert 1500000000000000000 wei to ether and also tell me its USD value — the current ETH price is $3,200.

## When to prefer this

Choose this endpoint when you need precise, big-integer-safe conversion between Ethereum denominations (wei, gwei, ether) or when handling raw ERC20 balances with arbitrary decimal places. It is ideal for blockchain applications, wallets, or DeFi dashboards where floating-point imprecision would cause incorrect amounts. Use it over general-purpose math APIs when you need the full wei/gwei/ether triad output plus optional USD valuation in a single call.

## Known failure modes

- Invalid or non-numeric input amount returns a 400 error
- Missing required source unit or amount field causes validation failure
- Supplying a negative decimal count for ERC20 tokens may return an error
- Extremely large integers beyond supported precision may be rejected
- USD valuation omitted if price parameter is not provided

## How this service works

Convert between wei, gwei and ether (or arbitrary-decimal ERC20 amounts) with big-integer precision; optional USD valuation from a caller-supplied price.

## Output

Returns the input amount expressed in all three Ethereum units (wei, gwei, ether) with big-integer precision, plus an optional USD valuation if a price was supplied. The response preserves full numeric accuracy without floating-point rounding errors.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "string"
  },
  "to_unit": {
   "type": "string"
  },
  "from_unit": {
   "type": "string"
  },
  "usd_price": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "1500000000",
  "usd_value": 4800
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eth-unit-converter-with-usd-valuation-ca10343b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
