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

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

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/gyd?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-amount-converter-9f74e536
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WsE8-Y7UR6B3QBWvKWXck

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

Example prompt: Convert 250 units of currency using the x402-gated AI gateway — just send the amount as 250 and get back the converted result.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call currency conversion without committing to a subscription, and when your agent infrastructure already supports x402 micropayments in USDC on Base. It is ideal for low-volume or sporadic conversion needs where per-call pricing at $0.0002 USDC is cost-effective.

## Known failure modes

- Payment not provided or insufficient USDC micropayment returns HTTP 402 Payment Required
- Invalid or missing 'amount' field returns a 422 Unprocessable Entity error
- Server-side inference or conversion failure returns a 500 Internal Server Error
- Network timeout if the self-hosted gateway is overloaded or offline

## 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 currency conversion result for the given input amount; exact fields vary but include the converted 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-currency-amount-converter-9f74e536/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)
