# x402 AI Gateway — Currency Conversion

> x402 AI Gateway — Currency Conversion 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 of one currency (XCD source) to another via a micropayment-gated AI gateway endpoint.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/aoa/xcd?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-conversion-e7aa5925
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zcNenchxBtunDCltRrXVn

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-conversion-e7aa5925 -d '<json body>'
```

Example prompt: Convert 50 East Caribbean Dollars (XCD) to Angolan Kwanza (AOA) and tell me how much I get back.

## When to prefer this

Choose this endpoint when you specifically need XCD-to-AOA currency conversion via a pay-per-call micropayment model (x402/USDC on Base), especially in autonomous agent workflows where you want to pay only for actual conversions without a subscription.

## Known failure modes

- Payment not provided or insufficient — returns HTTP 402 requiring x402 micropayment before execution
- Invalid or missing amount field — returns validation error
- Upstream exchange rate service unavailable — returns 5xx error
- Unsupported currency pair — may return empty or error response
- Network timeout on self-hosted infrastructure

## 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 converted currency value or exchange result for the specified amount from XCD to AOA, gated behind a $0.0002 USDC micropayment 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-conversion-e7aa5925/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)
