# x402 AI Gateway — Currency Conversion

> x402 AI Gateway — Currency Conversion 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 an amount of one currency to another via a micropayment-gated AI gateway endpoint using x402/USDC on Base.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/aoa/uzs?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-conversion-f3d83609
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CfEuq-tMaaJ788_bfQzjh

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

Example prompt: Convert 150 USD to Japanese Yen for me using the x402 gateway — just give me the converted amount.

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.0002 USDC) currency conversion that is callable by an AI agent via the x402 micropayment protocol. Prefer this when operating in an autonomous agent context already integrated with x402/Base payments, and when a lightweight, pay-per-call model is preferred over maintaining API key subscriptions to dedicated forex services.

## Known failure modes

- Payment not provided or insufficient USDC micropayment — returns 402 Payment Required
- Invalid or unsupported currency codes — returns an error or empty result
- Amount not specified — defaults to 1 unit of source currency
- Endpoint may return an opaque or partial response due to low schema completeness
- Network or gateway downtime resulting in 5xx errors

## 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 for the given input amount, likely including the result in the target currency and possibly the exchange 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-f3d83609/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)
