# x402 AI Gateway — FX/HKD Currency Converter

> x402 AI Gateway — FX/HKD 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 (likely foreign exchange to HKD) using a micropayment-gated AI API endpoint, returning the converted value.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/hkd?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-fx-hkd-currency-converter-732ede35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qh6Gp1Qh7FIQ1QOZrGMw6

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-fx-hkd-currency-converter-732ede35 -d '<json body>'
```

Example prompt: Convert 500 USD to Hong Kong dollars for me — what's the current exchange rate and how much would I get?

## When to prefer this

Use this endpoint when you need a quick, low-cost ($0.0002 USDC) FX conversion to HKD and are operating in an x402-enabled micropayment environment on Base. Ideal for agents that need programmatic currency lookups without a subscription-based FX API key.

## Known failure modes

- Missing or invalid amount parameter returns an error or default of 1
- Payment not completed (x402 micropayment required before execution)
- Unsupported source currency returns an error
- Exchange rate data unavailable or stale
- Malformed request body returns HTTP 422 or 400

## 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 in HKD, likely including the source amount, exchange rate applied, and the resulting HKD 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-fx-hkd-currency-converter-732ede35/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)
