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

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

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/jod?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-converter-f06b6642
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ge2OsnxxqRYjtP6MpQn_9

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

Example prompt: Convert 250 US dollars to Japanese yen for me — use the x402-gated currency converter on fastapi.online.

## When to prefer this

Choose this endpoint when you need a micropayment-gated, self-hosted currency conversion that supports x402 USDC payments on Base — particularly useful in autonomous agent pipelines that already handle x402 payment flows and need lightweight per-call billing rather than subscription-based FX APIs.

## Known failure modes

- Payment failure: x402 micropayment of 0.0002 USDC not completed or rejected — endpoint returns 402 Payment Required
- Invalid amount: non-numeric or negative amount value returns a validation error
- Missing amount: omitting the amount field may default to 1 but could return an error depending on server state
- Service unavailability: self-hosted instance may be offline, returning 5xx errors
- Unsupported currency pair: requested currency pair not supported by the underlying model or data source

## How this service works

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

## Output

A JSON object containing the converted currency amount and potentially the exchange rate or conversion details for the specified source 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-f06b6642/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)
