# x402 AI Gateway — Currency Converter (FX/ANG/LKR)

> x402 AI Gateway — Currency Converter (FX/ANG/LKR) 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 a source currency to ANG or LKR, gated behind an x402 micropayment of $0.0002 USDC on Base.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/lkr?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-currency-converter-fx-ang-lkr-b34555ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L7D9xS7P7CAGFbd85GWBk

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-currency-converter-fx-ang-lkr-b34555ab -d '<json body>'
```

Example prompt: Convert 250 USD to LKR and tell me how much I'd get back — use the x402 currency converter.

## When to prefer this

Choose this endpoint when you need programmatic currency conversion specifically for ANG (Netherlands Antillean guilder) or LKR (Sri Lankan rupee) and are operating in an x402-enabled agent environment that can automatically handle USDC micropayments on Base. It is particularly suited for agents already integrated with the fastapi.online gateway ecosystem.

## Known failure modes

- 402 Payment Required if x402 micropayment is not provided or fails
- Invalid amount type if a non-numeric value is passed
- Unsupported currency pair if the source currency is not recognized
- Network timeout or service unavailability from self-hosted infrastructure
- Empty or malformed response object if the underlying FX data source is unavailable

## How this service works

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

## Output

Returns an object containing the converted value and likely the exchange rate for the requested currency pair (source amount to ANG or LKR), after a $0.0002 USDC x402 micropayment is settled on Base.

## 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-currency-converter-fx-ang-lkr-b34555ab/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)
