# x402 AI Gateway – Currency Conversion (fx/aoa/ugx)

> x402 AI Gateway – Currency Conversion (fx/aoa/ugx) 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-12).

Converts a specified amount from AOA (Angolan Kwanza) to UGX (Ugandan Shilling) via a micropayment-gated AI gateway endpoint.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/aoa/ugx?utm_source=zero.xyz
- Price: $0.0002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-gateway-currency-conversion-fx-aoa-ugx-3fcfc054
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U_IW1lTH-8LaIVccv_em4

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-fx-aoa-ugx-3fcfc054 -d '<json body>'
```

Example prompt: Convert 500 Angolan Kwanza to Ugandan Shillings for me — I need the current exchange rate.

## When to prefer this

Use this endpoint when you specifically need AOA-to-UGX currency conversion with minimal per-call cost via x402 USDC micropayment on Base, and are operating within an x402-compatible agent wallet infrastructure. Prefer this over general FX APIs when you want a self-hosted, pay-per-use gateway rather than subscription-based services.

## Known failure modes

- Payment not attached or insufficient USDC micropayment returns HTTP 402 Payment Required
- Invalid or non-numeric amount value returns validation error
- Downstream exchange rate provider unavailable returns 5xx error
- Amount of 0 or negative number may return error or zero result

## 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 from AOA to UGX, representing how much of the target currency (Ugandan Shilling) the input amount corresponds to at the current exchange rate.

## 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-fx-aoa-ugx-3fcfc054/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)
