# x402 AI Gateway — FX/ANG/KHR Currency Converter

> x402 AI Gateway — FX/ANG/KHR Currency Converter is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0002/call, status unknown (last checked 2026-10-11).

Converts a specified amount from one currency (ANG or KHR context) using a micropayment-gated AI gateway endpoint.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/khr?utm_source=zero.xyz
- Price: $0.0002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-gateway-fx-ang-khr-currency-converter-7a0d8d71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GjbCMgDcRTVDIeo1ZcmkJ

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 x402-ai-gateway-fx-ang-khr-currency-converter-7a0d8d71 -d '<json body>'
```

Example prompt: Convert 50 ANG to KHR for me — pay the micropayment automatically and give me the converted amount.

## When to prefer this

Choose this endpoint when you specifically need ANG (Netherlands Antillean guilder) to KHR (Cambodian riel) currency conversion and are operating in an x402-enabled micropayment environment on Base. Suitable for agents that can autonomously pay tiny USDC fees per call rather than requiring a monthly API subscription.

## Known failure modes

- Payment failure if USDC balance insufficient or x402 micropayment rejected
- Invalid or missing 'amount' field returns validation error
- Exchange rate data unavailable returns empty or error response
- Network timeout if self-hosted gateway is overloaded
- Unsupported currency pair may return empty result or error

## How this service works

Self-hosted AI API gateway. Expensive endpoints require an x402 micropayment (USDC on Base) before executing.

## Output

Returns a JSON object containing the result of the currency conversion, likely including the converted amount and possibly the exchange rate used, for the ANG/KHR currency pair.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "number",
   "description": "Amount of the source currency to convert (default 1)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-gateway-fx-ang-khr-currency-converter-7a0d8d71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
