# x402 AI Gateway — Currency Conversion (FX KES)

> x402 AI Gateway — Currency Conversion (FX KES) 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-13).

Converts a specified amount of a source currency, likely to/from Kenyan Shillings (KES), via a self-hosted AI gateway requiring an x402 USDC micropayment on Base.

## Facts

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

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-fx-kes-a0bf1019 -d '<json body>'
```

Example prompt: Convert 250 US dollars to Kenyan Shillings for me using the x402 micropayment gateway.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call currency conversion without committing to a subscription-based FX API. Particularly suited for AI agents that make infrequent FX lookups and want to pay only $0.0002 USDC per conversion via the x402 protocol on Base. Ideal when integrating into crypto-native or Web3 agent workflows already using USDC micropayments.

## Known failure modes

- Payment not included or insufficient USDC micropayment — returns HTTP 402 Payment Required
- Invalid or unsupported source currency code — likely returns an error or empty result
- Amount of 0 or negative value — may return error or zero result
- Network or gateway downtime — returns 5xx server error
- Malformed request body — returns 422 validation error

## 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 amount, likely including the exchange rate applied and the resulting value in the target currency (KES or equivalent), computed at the time of the micropayment-gated API call.

## 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-fx-kes-a0bf1019/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)
