# 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 of a source currency (ISK/FX/ANG) via a micropayment-gated REST endpoint on a self-hosted AI gateway.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/isk?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-9b1622e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O6w4PNjZ_qG2chVyz2RVT

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

Example prompt: Convert 500 ISK to USD for me — it's a pay-per-call currency conversion endpoint that charges a tiny USDC micropayment per request.

## When to prefer this

Choose this endpoint when you need currency conversion for ISK, ANG, or FX pairs and are operating in an x402-enabled agent environment capable of paying USDC micropayments on Base. It is a pay-per-use alternative to subscription-based FX APIs, ideal for low-frequency or agent-driven conversion calls where cost per query matters.

## Known failure modes

- 402 Payment Required — x402 micropayment not completed or wallet has insufficient USDC
- Invalid amount input — non-numeric or negative amount values
- Unsupported currency pair — requested currency not supported by this endpoint
- Gateway timeout — self-hosted server may be offline or overloaded
- Empty or malformed JSON response — server-side inference error

## 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 value or exchange rate result for the requested amount and currency pair. The exact fields depend on the server implementation but are expected to include the converted amount and possibly the rate used.

## 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-9b1622e8/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)
