# x402 AI Gateway — Currency Amount Converter

> x402 AI Gateway — Currency Amount 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-11).

Converts a specified amount of a source currency, gated behind an x402 USDC micropayment on Base before execution.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/lyd?utm_source=zero.xyz
- Price: $0.0002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-gateway-currency-amount-converter-28dd0bd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VyZybZ_sus_bE_KXhwr4w

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-amount-converter-28dd0bd8 -d '<json body>'
```

Example prompt: Convert 250 units of currency for me using the x402 AI Gateway — I need the converted result and I'm fine paying the USDC micropayment per call.

## When to prefer this

Choose this endpoint when you need a pay-per-call currency conversion via a self-hosted AI gateway that uses x402 USDC micropayments on Base, and you want a lightweight, low-cost ($0.0002 per call) option without API key management overhead.

## Known failure modes

- Payment not included or insufficient USDC micropayment — returns HTTP 402 Payment Required
- Invalid or missing amount parameter — returns validation error
- Unsupported currency pair — may return empty or error response
- Network timeout on the self-hosted gateway — returns 503 or connection error
- Malformed request body — returns 422 Unprocessable Entity

## 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 result of the currency conversion computation for the specified amount.

## 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-amount-converter-28dd0bd8/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)
