# x402 AI Gateway – Currency Amount Conversion Endpoint

> x402 AI Gateway – Currency Amount 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-12).

Converts a specified amount of a source currency via a self-hosted AI gateway, gated by an x402 USDC micropayment on Base.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/npr?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-currency-amount-conversion-endpoint-74d1edba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ooqCtDHOu1XsTTpBNGCjJ

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-conversion-endpoint-74d1edba -d '<json body>'
```

Example prompt: Convert 250 units of the source currency using the x402 AI gateway — it'll charge a tiny USDC micropayment per call on Base.

## When to prefer this

Choose this endpoint when you need a pay-per-call, micropayment-gated currency conversion that integrates with the x402/USDC payment rail on Base, particularly in autonomous agent workflows where on-chain payments are preferred over subscription APIs.

## Known failure modes

- 402 Payment Required if USDC micropayment on Base is not provided or insufficient
- Invalid input if amount is not a valid number
- Timeout or 5xx if the self-hosted inference backend is unavailable
- Malformed response if the upstream AI gateway encounters an internal error
- Rejected payment if the x402 facilitator cannot verify the transaction

## 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. The exact fields depend on the endpoint's internal logic, but typically includes the converted amount or related financial data.

## 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-conversion-endpoint-74d1edba/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)
