# x402 AI Gateway — Currency Conversion Endpoint

> x402 AI Gateway — Currency Conversion Endpoint 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 an amount from one currency to another via a micropayment-gated AI gateway endpoint at /f/fx/aoa/xpf.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/aoa/xpf?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-endpoint-e8d68640
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uTu6bZII2D3q5F52kFuaf

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-endpoint-e8d68640 -d '<json body>'
```

Example prompt: How much is 250 Angolan kwanza (AOA) worth in CFP francs (XPF) right now? Use the x402-gated currency converter and pay the micropayment automatically.

## When to prefer this

Choose this endpoint when you specifically need AOA-to-XPF currency conversion and are operating in an x402-enabled micropayment environment (paying $0.0002 USDC per call on Base). Prefer this over free converters when you need it integrated with x402 payment flows or the self-hosted gateway ecosystem.

## Known failure modes

- 402 Payment Required if x402 micropayment is not provided or fails
- Invalid amount input returns validation error
- Network timeout if self-hosted gateway is unavailable
- Stale or missing exchange rate data returning an error or stale result
- Empty response object if internal computation fails

## How this service works

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

## Output

A JSON object containing the conversion result for the requested AOA-to-XPF amount; exact fields are unspecified but expected to include the converted value.

## 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-endpoint-e8d68640/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)
