# 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-16).

Converts a specified amount from one currency to another, gated behind an x402 USDC micropayment on Base.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/aoa/zwl?utm_source=zero.xyz
- Price: $0.0002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-gateway-currency-conversion-endpoint-93cfc7d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_98f_d5jgj1yRz6HyXdaTV

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-93cfc7d4 -d '<json body>'
```

Example prompt: Convert 250 USD to ZWL for me — I need to know how much that is in Zimbabwean dollars right now.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call currency conversion with no subscription required — particularly suited for autonomous agents that can handle x402 micropayments natively on Base. Ideal for infrequent or unpredictable conversion needs where a flat $0.0002 USDC per call is preferable to API key management.

## Known failure modes

- Missing or invalid currency codes return an error response
- Amount not provided defaults to 1 but may cause confusion
- Payment required (402) if x402 micropayment header is missing or malformed
- Unsupported currency pair may return an error or empty result
- Network timeout from the self-hosted gateway

## 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 amount and likely the exchange rate used for the conversion between the source and target currency pair.

## 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-93cfc7d4/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)
