# Money Format

> Money Format is a paid API for AI agents from x402.agentindex.world, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-30).

Format a numeric amount with thousands separators, configurable decimal precision, and a currency symbol prefix.

## Facts

- Endpoint: POST https://x402.agentindex.world/money/format?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/money-format-e3e2d5d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uXCBCowb1rtz1_CjwlhMB

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 money-format-e3e2d5d2 -d '<json body>'
```

Example prompt: Format 1234567.89 as a dollar amount with 2 decimal places and a $ symbol — I need a clean, comma-separated string like $1,234,567.89.

## When to prefer this

Use this endpoint when you need a quick, consistent, server-side currency formatting call — especially within agent pipelines where locale-specific formatting logic would be error-prone to implement inline, or when you need to format amounts across varying decimal precisions and currency symbols without writing custom code.

## Known failure modes

- Invalid or missing amount field returns an error
- Decimals value outside 0-6 range rejected
- Non-numeric amount causes a 400/422 error
- Network timeout on the paid endpoint

## How this service works

Format a numeric amount with thousands separators, a chosen decimal precision and a currency symbol.

## Output

A formatted currency string with thousands separators applied, the specified number of decimal places, and the chosen currency symbol prepended — e.g. '$1,234,567.89'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "number",
   "title": "Amount"
  },
  "decimals": {
   "type": "integer",
   "title": "Decimals",
   "default": 2,
   "maximum": 6,
   "minimum": 0
  },
  "currency_symbol": {
   "type": "string",
   "title": "Currency Symbol",
   "default": "$"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "formatted": "$1,234,567.50"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/money-format-e3e2d5d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentindex.world](https://www.zero.xyz/host/x402.agentindex.world/llms.txt)
