# x402 AI Gateway — XOF/FX Currency Converter

> x402 AI Gateway — XOF/FX 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-12).

Converts a specified amount from one currency to XOF (West African CFA franc) or performs FX conversion, gated by an x402 USDC micropayment on Base.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/aoa/xof?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-xof-fx-currency-converter-995ce549
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UGTXJBzc2RU4nDMsNaZiI

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-xof-fx-currency-converter-995ce549 -d '<json body>'
```

Example prompt: How much is 250 USD worth in West African CFA francs (XOF) right now?

## When to prefer this

Choose this endpoint when you need a micropayment-gated, on-demand FX conversion specifically to or involving XOF (West African CFA franc), particularly in workflows already using the x402 payment protocol on Base/USDC. Prefer it over free public FX APIs when you need a pay-per-call model with no subscription overhead and are already integrated with x402.

## Known failure modes

- Missing or failed x402 micropayment results in HTTP 402 Payment Required before the conversion is executed
- Invalid or missing 'amount' field may return a 422 Unprocessable Entity or default to converting 1 unit
- Service downtime or gateway errors return 5xx responses
- Stale exchange rate data if the underlying FX feed is delayed

## 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 value in XOF (West African CFA francs) for the given input amount, along with any exchange rate metadata provided by the service. The response structure is open (schema: object) so additional fields such as rate, source currency, and timestamp may be included.

## 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-xof-fx-currency-converter-995ce549/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)
