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

Converts a specified amount of a source currency, accessible via x402 micropayment (USDC on Base) before execution.

## Facts

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

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

Example prompt: Convert 250 USD to Japanese Yen using the x402 currency gateway — it costs a tiny USDC micropayment per call.

## When to prefer this

Choose this endpoint when you need a pay-per-call currency conversion with no subscription or API key setup, particularly in x402-compatible agent workflows where USDC micropayments on Base are already supported. Ideal for low-frequency, on-demand conversions where per-call billing at $0.0002 USDC is acceptable and you want a self-hosted, lightweight integration.

## Known failure modes

- Payment not received or insufficient USDC balance — HTTP 402 returned before execution
- Invalid or unsupported currency codes — may return error or empty result
- Amount not provided or malformed — defaults to 1 or returns validation error
- Service unavailable on self-hosted infrastructure — connection timeout or 503
- Ambiguous or missing target currency — incomplete conversion result

## How this service works

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

## Output

Returns an object containing the result of the currency conversion for the specified amount, likely including the converted value and possibly the exchange rate applied. Exact response fields are not fully specified in the schema beyond a generic object.

## 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-bd0df2c5/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)
